[asterisk-users] simplify
Alex Robar
alex.robar at gmail.com
Mon Apr 2 08:39:08 MST 2007
Hi Josu,
[miprimerejemplo]
exten => 2XXXX,1,Dial(SIP/${EXTEN},3-,Ttm)
exten => 2XXXX,2,Hangup
exten => 2XXXX,102,Voicemail(${EXTEN})
exten => 2XXXX,103,Hangup
... is all you need in that context. Asterisk will match any called number
that starts with a 2 and is 5 digits long. ${EXTEN} carries the value of the
dialed number.
Alex
On 4/2/07, Josu Lazkano Lete <jlazkano at somesi.com> 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
>
>
--
Alex Robar
alex.robar at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070402/3c130b10/attachment.htm
More information about the asterisk-users
mailing list