[Asterisk-Users] Handling invalid extensions
William Glynn
wglynn at freedomhealthcare.org
Fri Aug 20 09:42:55 MST 2004
> Is there any other way that we should be 'supposed' to do this
> functionality?
I would probably do something like this:
[macro-siphandset]
exten => s,1,Dial(SIP/${ARG1},16,tr)
exten => s,2,Voicemail(u${ARG1})
exten => s,102,Voicemail(b${ARG1})
; do whatever you want your normal SIP handsets to do here
[extensions]
exten => 950X,Macro(siphandset,${EXTEN})
exten => 951X,Macro(siphandset,${EXTEN})
exten => 9521,Macro(siphandset,${EXTEN})
exten => 9537,Macro(siphandset,${EXTEN})
exten => 9543,Macro(siphandset,${EXTEN})
; ...
; define patterns matching all assigned extensions
[inbound]
; Attempt to connect to extensions/xxxx
exten => _123495XX,1,Dial(Local/${EXTEN:4}@extensions)
; Didn't work? Connect to 9500
exten => _123495XX,2,Goto(extensions,9500,1)
Hope this helps.
--Will Glynn
Freedom Healthcare Group
More information about the asterisk-users
mailing list