[Asterisk-Users] Macro DialPlan

trixter aka Bret McDanel trixter at 0xdecafbad.com
Fri Jan 6 14:07:52 MST 2006


On Fri, 2006-01-06 at 10:27 +0000, scott wrote:
> [macro-71macro]
> 
> exten => s,1,Dial(SIP/${ARG1},30,tr)
> exten => s,2,VoiceMail(${ARG1})
> exten => s,3,PlayBack(vm-goodbye)
You appear to be missing some potential error codes.  Here is what I use
which is just an extended version of what you have.


[macro-dialvmb]
exten => s,1,Dial(${ARG1},16,t)
exten => s,2,Voicemail(u${ARG2})
exten => s,3,Hangup
exten => s,102,Voicemail(b${ARG2})
exten => s,103,Hangup 

I have set this up so I pass 2 args, one is the extension to dial the
other is the voicemail box to goto if dial fails.  I added the hangups
cause I am paranoid about that :)


-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
http://www.sacaug.org/ Sacramento Asterisk Users Group
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060106/8137fd7c/attachment.pgp


More information about the asterisk-users mailing list