> 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:[EMAIL PROTECTED])
; Didn't work? Connect to 9500
exten => _123495XX,2,Goto(extensions,9500,1)
Hope this helps.
--Will Glynn
Freedom Healthcare Group
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users