Detecting when call had been answered using Dial verb

烈酒焚心 提交于 2019-12-24 06:53:47

问题


I need a way to find out when an outgoing call has been answered when using the dial twiml verb so I can notify the user making the call. I know I can get the status after the call has ended with the action param but that is not what I need. Is there a way to lookup the status of a live call?

Thanks


回答1:


Try using the 'url' attribute of the <Number> tag. This is requested after the Dial leg is answered but before the two calls are joined. You can return the minimal TwiML response <Response/> for this url if you don't want any action to take place on call.

https://www.twilio.com/docs/api/twiml/number#attributes-url



来源:https://stackoverflow.com/questions/25234361/detecting-when-call-had-been-answered-using-dial-verb

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