使用拨号动词检测何时接听了电话 [英] Detecting when call had been answered using Dial verb

查看:31
本文介绍了使用拨号动词检测何时接听了电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用拨号 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?

谢谢

推荐答案

尝试使用 的 'url' 属性;标签.这是在 Dial 支路被应答之后但在两个呼叫加入之前请求的.您可以返回最小的 TwiML 响应 <Response/>如果您不想在通话时执行任何操作,请访问此网址.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆