简体   繁体   English

Twilio/TwiML:处理 webhook url 后呼叫突然挂断

[英]Twilio/TwiML: Call hangs up abruptly after processing webhook url

I am working on processing a simple end to end call in Twilio using TwiMl bin.我正在使用 TwiMl bin 在 Twilio 中处理一个简单的端到端呼叫。 I am facing issues after I process the verb using a webhook url.使用 webhook url 处理动词后,我遇到了问题。 Once the url is processed, the call abruptly hangs up without processing the next steps defined in the TwiML bin.处理 url 后,调用会突然挂断,而不处理 TwiML bin 中定义的后续步骤。 Attached is the screenshot of my TwiMl bin along with the webhook url附件是我的 TwiMl bin 和 webhook url 的屏幕截图

TwiML Bin TwiML Bin

webhook网络钩子

The code executes correctly till the verb.代码正确执行,直到动词。 Post webhook hook execution I expect the call to get passed on the TwiMl bin and process Can you help me with your current location but that doesn't happen instead the call hangs up.发布 webhook 钩子执行我希望调用能够通过 TwiMl bin 和 process 你能帮助我了解你当前的位置,但这并没有发生,而是挂断了电话。

The recording action URL is not returning additional TwiML to keep the call up.录制操作 URL 不会返回额外的 TwiML 以保持调用。

Reference here.参考这里。 TwiML Record Verb https://www.twilio.com/docs/voice/twiml/record#attributes-action TwiML 记录动词https://www.twilio.com/docs/voice/twiml/record#attributes-action

When the recording finishes, Twilio requests TwiML from your action URL, it doesn't continue on with the contents of the existing TwiM Bin.录制完成后,Twilio 从您的操作 URL 请求 TwiML,它不会继续使用现有 TwiM Bin 的内容。

Since you are only return a single Say verb, the call ends after that.由于您只返回一个 Say 动词,因此调用在此之后结束。

You can investigate the TwiML Redirect verb and another TwiML Bin to continue the exchange.您可以调查 TwiML Redirect 动词和另一个 TwiML Bin 以继续交换。

Alan艾伦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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