返回列表 發帖

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:
  1. 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?

You have to use the waitexten command to read the telephone and direct your call to wherever you like.

TOP

本帖最後由 ttmuskie 於 2013-10-29 09:57 編輯

waitexten() only support single digit?

And, it seems can't use the goto() to route to other context?

TOP

Just like other dialplan, after a number of time, the entered digits will be sent out.

TOP

try
  1. Read(input_no,privacy-prompt,15,,,30)
複製代碼
應該係你未入晒電話號碼時個 function timeout。所以試試把timeout 加到30 秒再看看。

TOP

返回列表