[asterisk-users] Determining invalid extensions.
Phil Finkler
PhilF at iqconsultinginc.com
Fri Dec 22 12:53:52 MST 2006
Hi all,
I'm trying to incorporate using the i extension in my callplan to
determine if someone enters an invalid extension. My internal
extensions are all 3 digits (100-104). The problem is, the callplan
doesn't see that say, extension 600 is invalid, it just goes back to the
beginning of the callplan and repeats. If I enter a single digit, it
works perfectly. Anyone have any ideas? Here's the incoming callplan.
[voicepulse-in]
exten => _XX.,1,Answer
exten => _XX.,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5
seconds
exten => _XX.,n,Set(TIMEOUT(response)=10) ; Set Response Timeout to 10
seconds
exten => _XX.,n,Background(thank-you-for-calling)
exten => _XX.,n(restart),Background(enter-ext-of-person)
exten => _XX.,n,WaitExten
exten => 100,1,Macro(stdexten,100,Sip/100)
exten => 100,100,Hangup()
exten => 101,1,Macro(stdexten,101,Sip/101)
exten => 101,100,Hangup()
exten => 102,1,Macro(stdexten,102,Sip/102)
exten => 102,100,Hangup()
exten => 103,1,Macro(stdexten,103,Sip/103)
exten => 103,100,Hangup()
exten => 104,1,Macro(stdexten,104,Sip/104)
exten => 104,100,Hangup()
exten => 105,1,Macro(stdexten,105,Sip/105)
exten => 105,100,Hangup()
exten => i,1,Playback(invalid)
exten => i,2,Goto(_XX.,restart)
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup()
Thanks,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061222/634b238f/attachment.htm
More information about the asterisk-users
mailing list