Twilio Call Forwarding Number Always Blank

别来无恙 提交于 2019-12-11 19:44:29

问题


I'm currently trying to connect two users via twillio and am masking their identities. I am doing this by having:

User A dials my Twillio # ---> hits my app URL endpoint --> dials User B and has the call ID show up as my Twillio #

When trying this, the TwiML is being rendered with the dialed/forwarded number always blank. Even when I hardcode it, Twillio never forward the call anywhere.

def make_twillio_call_PSTN
incoming_number = params[:From]
#strip +1 from number
incoming_number = incoming_number.byte_slice(2,10)
  response = Twilio::TwiML::Response.new do |r|
    r.Dial callerId: MY_TWILIO_MOBILE do |d|
      d.Number MY_NUMBER
    end
  render xml: response.to_xml
end

end

来源:https://stackoverflow.com/questions/31661249/twilio-call-forwarding-number-always-blank

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!