使用拨号动词检测何时接听了电话 [英] Detecting when call had been answered using Dial verb
问题描述
在使用拨号 twiml 动词时,我需要一种方法来确定何时接听了拨出电话,以便我可以通知拨打电话的用户.我知道我可以在通话结束后通过操作参数获得状态,但这不是我需要的.有没有办法查询实时通话的状态?
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?
谢谢
推荐答案
尝试使用
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
这篇关于使用拨号动词检测何时接听了电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!