2012-11-28 22 views
1

我有以下TwiML文件:如何在使用Twilio的通話之間收集密鑰?

<?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呼叫之間。

我應該怎麼做?

+0

我不認爲你可以把裏面的'' @ – ajtrichards

+0

我socialrel8那麼應該怎麼做了''動詞? –

+0

您是否在帳戶頁面的Twilio控制檯中收到任何錯誤? – ajtrichards

回答

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> 
+0

感謝您的回答。我現在無法測試,但根據您的代碼,它會撥打電話號碼,如果有人按下任何9位數字,它會根據actionURL重定向呼叫。 或它會完成通話然後等待收集密鑰? –

+0

等待您的回覆... –

+0

目前我無法測試它。所以你請測試。 – ajtrichards

相關問題