標題: READ command problem - User disconnected [打印本頁] 作者: ttmuskie 時間: 2013-10-28 22:39 標題: READ command problem - User disconnected
I'm using my asterisk as the gateway to route calls to China.
Here is the flow:
Cell phone (PSTN) > Asterisk (SIP Trunk) > China PSTN (mobile phone or land line)
So, I dial into my asterisk, using the READ command to capture the China phone number and dial to China:
Read(input_no,privacy-prompt,15)
複製代碼
My problem is, ASTERISK cut my line (cli shown: "User disconnected") while I'm still keying the China phone number. How to fix it?作者: 角色 時間: 2013-10-28 23:28
You have to use the waitexten command to read the telephone and direct your call to wherever you like.作者: ttmuskie 時間: 2013-10-29 09:56
本帖最後由 ttmuskie 於 2013-10-29 09:57 編輯
waitexten() only support single digit?
And, it seems can't use the goto() to route to other context?作者: 角色 時間: 2013-10-29 13:56
Just like other dialplan, after a number of time, the entered digits will be sent out.作者: candenn 時間: 2013-11-5 08:34
try
Read(input_no,privacy-prompt,15,,,30)
複製代碼
應該係你未入晒電話號碼時個 function timeout。所以試試把timeout 加到30 秒再看看。