[asterisk-users] simplify
Rob Schall
rschall at callone.net
Mon Apr 2 08:29:52 MST 2007
Use a macro
[macro-stdexten]
exten => s,1,Dial(${ARG1},30,Ttm)
exten => s,2,Hangup
exten => s-NOANSWER,1,Voicemail(${ARG2})
exten => s-NOANSWER,n,Hangup
then call it like
exten => 20000,1,Macro(stdexten,SIP/20000,20000)
Josu Lazkano Lete wrote:
> hello friends,
>
> is there any way to simplify that extensions.conf file?
>
> [miprimerejemplo]
> exten => 20000,1,Dial(SIP/20000,30,Ttm)
> exten => 20000,2,Hangup
> exten => 20000,102,Voicemail(20000)
> exten => 20000,103,Hangup
>
> exten => 20100,1,Dial(SIP/20100,30,Ttm)
> exten => 20100,2,Hangup
> exten => 20100,102,Voicemail(20100)
> exten => 20100,103,Hangup
>
> exten => 20200,1,Dial(SIP/20200,30,Ttm)
> exten => 20200,2,Hangup
> exten => 202000,102,Voicemail(20200)
> exten => 20200,103,Hangup
>
> exten => 20300,1,Dial(SIP/20300,30,Ttm)
> exten => 20300,2,Hangup
> exten => 203000,102,Voicemail(20300)
> exten => 20300,103,Hangup
>
> exten => 20400,1,Dial(SIP/20400,30,Ttm)
> exten => 20400,2,Hangup
> exten => 204000,102,Voicemail(20400)
> exten => 20400,103,Hangup
>
>
> thanks to all
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070402/71ec2783/attachment.htm
More information about the asterisk-users
mailing list