Use IfMachine in TwiML when using <Dial>

☆樱花仙子☆ 提交于 2019-11-28 13:25:56
Sisir

No Twiml Doesn't support (AMD) ifMachine parameter. I've contacted Twilio about this issue and below is there response.

Hi Sisir,

Thanks for the question. No, AMD is not supported by TwiML, only by the API. This means that IfMachine and AnsweredBy are only valid for calls initiated by the REST API.

This was a deliberate exclusion when we released AMD. The way machine detection works is it listens to the answering party for a second before connecting the call. Then if it hears audio patterns that sound like a human, it lets the calls connect.

The problem with calls on is that there is usually a user on the line already waiting for the called party to pick up. So, if the machine detection "eats" the first second of the call, the person already on the phone doesn't hear the called party say "Hello." This causes a bit of an awkward silence.

Best Regards,

Twilio Customer Support

So, if you want to use there AMD feature you MUST use REST API.

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