简体   繁体   English

Twilio:Twiml.Gather()不读取密钥

[英]Twilio: Twiml.Gather() does not read keys

My response is as follows: 我的回答如下:

2012-02-13T09:04:38+00:00 app[web.1]: <?xml version="1.0" encoding="UTF-8"?>
2012-02-13T09:04:38+00:00 app[web.1]: <Response>
2012-02-13T09:04:38+00:00 app[web.1]:   <Say>
2012-02-13T09:04:38+00:00 app[web.1]:       press 1 for sales and go away now
2012-02-13T09:04:38+00:00 app[web.1]:   </Say>
2012-02-13T09:04:38+00:00 app[web.1]:   <Say>
2012-02-13T09:04:38+00:00 app[web.1]:       testeeee
2012-02-13T09:04:38+00:00 app[web.1]:   </Say>
2012-02-13T09:04:38+00:00 app[web.1]:   <Gather action="http://xxxx.herokuapp.com/ivr" numDigits="1"/>
2012-02-13T09:04:38+00:00 app[web.1]: </Response>

But it seems that the Gather is not working. 但是,似乎Gather无法正常工作。 It does not recognize when I hit a key. 当我按下按键时,它无法识别。 Why? 为什么?

Add another Say such as: 添加另一个“说”,例如:

<Say>This is after the Gather</Say>

after the Gather. 在聚会之后。 Then if pressing your phone digits is really not getting recognized, the 5 second default timeout will be surpassed and then Twilio will fall through to the Say that you just added and you will hear that. 然后,如果确实无法识别按您的电话号码,则将超过5秒的默认超时,然后Twilio进入您刚刚添加的“说”,您将听到。 There is a chance that the Gather is actually POSTing to the action above but that url is not responding correctly. Gather实际上有可能正在发布到上述操作,但该URL没有正确响应。 This way you will be able to know where the problem is. 这样,您将能够知道问题出在哪里。

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

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