繁体   English   中英

如何使用 Twilio 在通话之间收集密钥?

[英]How to gather a key in between the call using Twilio?

我有以下TwiML文件:

<?xml version="1.0" encoding="UTF-8" ?>
 <Response>     
   <Say> Your call is going to transfer the Receptionist </Say>
     <Dial maxLength="180">
        <Number> 442-333-7271 </Number>
        <Gather numDigits = "9" action = "_actionURL" method="GET">
        <Say> Please press 9 </Say>
    </Gather>
    </Dial> 

根据上面的代码,如果接收者在通话之间按9 ,我想将流程重定向到_actionURL

我该怎么做?

尝试:

<?xml version="1.0" encoding="UTF-8" ?>
 <Response>     
  <Gather numDigits = "9" action = "_actionURL" method="GET">
   <Say> Your call is going to transfer the Receptionist, please press 9 to go somewhere else </Say>
   <Dial maxLength="180">442-333-7271</Dial>
  </Gather>
 </Response>

暂无
暂无

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

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