[asterisk-users] Advanced Dial Plan
Philipp Kempgen
philipp.kempgen at amooma.de
Thu Oct 25 09:20:07 CDT 2007
Frederico Madeira wrote:
> I Have in my sip.conf two extension 3000 and 3001.
>
> I have this rule in my extensions.conf
>
> exten=> _X.,1,Dial(SIP/${EXTEN}@provider-302333-${CALLERID(num)},60,Tt)
> exten=> _X.,2,Hangup
>
> exten=> _X.,1,Dial(SIP/${EXTEN}@provider-302222-${CALLERID(num)},60,Tt)
> exten=> _X.,2,Hangup
>
>
> And every calls made by my both extension was using the first rule, so
> calls from extension 3000 match with peer and work, but calls from
> 3001 didn't match with peer and I got error.
exten=> 3000,1,Dial(SIP/${EXTEN}@provider-302333-${EXTEN},60,Tt)
exten=> 3000,n,Hangup()
exten=> 3001,1,Dial(SIP/${EXTEN}@provider-302222-${EXTEN},60,Tt)
exten=> 3001,n,Hangup()
That dialplan is about as easy as it can get. :)
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
More information about the asterisk-users
mailing list