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

时间:2012-11-28 13:22:03

标签: java twilio twiml

我有一个以下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> 

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

我该怎么做?

1 个答案:

答案 0 :(得分:2)

尝试:

<?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>