> 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/[EMAIL PROTECTED],60,Tt)
exten=> _X./3000.,2,Hangup

exten=> _X./3001,1,Dial(SIP/[EMAIL PROTECTED],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


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to