我已經開發了一個網絡,將兩個人連接到本教程後面的電話: https://www.twilio.com/docs/tutorials/click-to-call-node-express 並且一切工作正常。Twilio點擊通話並收集數字
現在我需要收集被調用者的一位數字以執行一個命令。
閱讀Twilio文檔,似乎我無法使用收集直到Dial動詞結束,但這樣呼叫關閉,被叫方無法對數字進行任何處理。
我想這沒有成功,撥號工作正常,但永遠不會執行數字回調:
twimlResponse.say(
'Please wait for the other person to join the call'
);
twimlResponse.dial({
timeLimit: 30
})
twimlResponse.dial(to_number)
const gather = twimlResponse.gather({
input: 'dtmf',
timeout: 30,
numDigits: 1,
action: url // the url is the callback that should handle the digit entered
});
它是Twilio的限制?任何解決方法或替代呼叫策略?
嘿法布里奇奧,你需要進行收集被叫方的一端連接之前,或在談話中? – philnash
我需要在通話結束時執行聚會,作爲被叫方在與另一方通話後應執行的最終動作。 –