[Asterisk-Users] Macro DialPlan

scott scott at mysecretworld.co.uk
Fri Jan 6 03:27:44 MST 2006


Hi All

I am trying to simplify a dialplan for a few thousand users.
Would what I have below work?

If someone dials exten 710001 would it go through answer and then to the macro to try dialing the SIP phone thats registered on 710001 and then onto voicemail if no answer or not signed on?


exten => 71XXXX,1,Answer()
exten => 71XXXX,2,Macro(71macro,${EXTEN})
exten => 71XXXX,3,Hangup()


[macro-71macro]

exten => s,1,Dial(SIP/${ARG1},30,tr)
exten => s,2,VoiceMail(${ARG1})
exten => s,3,PlayBack(vm-goodbye)


Many Thanks in Advance
Scott Pinhorne



More information about the asterisk-users mailing list