[asterisk-users] Advanced Dial Plan
John Faubion
jfaubion at tx.rr.com
Thu Oct 25 10:54:39 CDT 2007
> Let's suppose that my sip extension 3000 want to call to (302).123.3211
> I need a rule in extensions.conf to match with this number, right ?
Let me see if I have this correct. You want to use the
"provider-302333-3000" for any call going out from 3000 and
"provider-302222-3001" for any call going out from 3001. Basically a one to
one mapping of extension to trunk, right?
Try something like this...
=======================================
exten=> _X./3000.,1,Dial(SIP/${EXTEN}@provider-302333-3000,60,Tt)
exten=> _X./3000.,2,Hangup
exten=> _X./3001,1,Dial(SIP/${EXTEN}@provider-302222-3001,60,Tt)
exten=> _X./3001,2,Hangup
=======================================
This way if extension 3000 makes a call it uses the first one and if 3001
makes a call it uses the second one.
John
More information about the asterisk-users
mailing list