1
我遵循GAS團隊的本教程。 Adding voice and SMS to Google Apps using Twilio and Apps Script 但是,當我修改TwiML as per the Twilio Docs在超時時添加<Redirect>
時,出現「應用程序錯誤」。我注意到使用Google Apps腳本連接Twilio
<Response>
<Gather action="https://script.google.com/macros/s/SCRIPT_ID/exec" numDigits="1" timeout="10">
<Say>Welcome to Yard Stars</Say>
<Say>To schedule a Sprinkler Service visit, press 1.</Say>
<Say>To discuss a new Sprinkler System, press 2.</Say>
<Say>To speak with someone in accounting, press 3.</Say>
</Gather>
<Say>Sorry, I didn't get your response.</Say>
<Redirect method="GET">https://script.google.com/macros/s/SCRIPT_ID/exec</Redirect>
</Response>
一件事是,氣體送回「傳輸編碼分塊」,這Twilio不支持。 但它似乎隻影響重定向呼叫。
任何想法的解決方法如何我可以重定向調用一個Apps腳本?
您可以發佈您正在使用的https://script.google.com/macros/s/SCRIPT_ID/exec腳本的示例嗎?問題可能在那裏。 – Weehooey 2013-03-16 14:11:31
@weehooey,我在下面回答了我自己的問題......我使用的腳本是有效的,正如我在下面寫的,這個問題與twilio處理Google Apps腳本的「分塊」響應有關。 – Brian 2013-03-17 12:14:00