问题
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