简体   繁体   中英

Specifying Twilio Incoming and Outgoing Callbacks using TwiML App

I have a number which I have configured to use a TwiML App. In the App itself, I have set the VoiceURL and StatusCallback on the Voice section.

The issue is, the callback is triggered when there is an incoming call to the Twilio-bought number.

However, if I place an outgoing call from the Twilio-bought number, the callback is not triggered.

Is this the expected behaviour, that the TwiML app callback is only triggered on incoming calls? If this is not the intended behaviour, any pointers on what may be going wrong?

That is expected, that statusCallback URL handles only the incoming call leg.

If you are forwarding that call(which creates another call leg), you can use the parameter of the name name of the Number noun to capture events.

If you are using the REST API to make an outbound call, it has a statusCallback parameter as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM