Hi, I’m having trouble crafting a dialplan that would allow for a type of call-in system. What I would like to do is answer the call, and play a ringing tone for 4 seconds. At any time during that one cycle of ringing, if the caller dials a number (we’ll say 4), he’ll be prompted for a DISA password. If the caller doesn’t dial the correct number during the one ring cycle, he will be sent to a different context. How can I go about doing this?
exten => s,1,Answer(); bring up the channel so we can listen. This marks the call as answered, and a payphone caller won’t get their quarter back.
exten => s,2,Playtones(ring) ; play ringing down the line
exten => s,3,WaitExten(4) ; and wait 4 seconds while listening to an exten
exten => s,4,Goto(somewhere-else,s,1) ; if none comes in, goto somewhere-else,s,1
exten => 4,1,DISA(blah blah blah) ; if they press 4 above, this will run
[somewhere-else]
exten => s,1,your normal menu starts here…
Sorry for the delay in my reply, and thanks for your response. What you told me to do isn’t working completely. When a call comes in, the ringing tone does play for 4 seconds, and if I don’t do anything, it does goto whatever I specify in s,4. However, if I dial a 4, I see this in the console:
After seeing that, I actually made an i extension, but I still get that same error message. What do you think is wrong?