If you observe my FreeWorldDialUp incoming calls context (shown below), you will notice I have configured my asterisk-1.4.19.1 with several extensions using a 4-digit number. The context of this FreeWorldDialUp incoming calls will play an IVR (this is where the caller is given an option to enter an extension number), check for CID number, transfer the caller to certain extensions based on his/her CID number, or set to wait until time out using the WaitExten() function. So far, so good with one exception that the caller can ONLY enter a single digit number while my extensions are all 4-digit numbers. Does anyone here know how to remedy this problem so that my callers can enter a 4-digit extension?
Here is my FreeWorldDialUp incoming context I used:
[code][incoming_calls_on_FreeWorldDialUp]
exten=>FWD,1,NoOP(Incoming: Free World Dial Up)
exten=>FWD,n,Macro(cid_grab_num)
exten=>FWD,n,GotoIf($[${INCID} != 666666]?:internal,1001,1)
exten=>FWD,n,GotoIf($[${INCID} != 777777]?:internal,1002,1)
exten=>FWD,n,Goto(incoming_calls_on_FreeWorldDialUp,announce,1)
exten=>announce,1,Background(if-u-know-ext-dial&otherwise&pls-stay-on-line)
exten=>announce,n,WaitExten()
exten=>i,1,Playback(pbx-invalid)
exten=>i,n,HangUp()
exten=>t,1,Playback(pls-hold-while-try)
exten=>t,n,Macro(extension,1003)[/code]