Page 1 of 1

Certain extensions goes to specific trunk ?

PostPosted: Tue Jul 02, 2013 12:39 pm
by scenarist
I have a two sip trunks with the following dialplan:
TRUNK A:
exten => _0004XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0004XX.,2,Dial(SIP/${EXTEN:1}@AAAA,,tTo)
exten => _0004XX.,3,Hangup

TRUNK B:
exten => _0004XX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0004XX.,2,Dial(SIP/${EXTEN:1}@BBBB,,tTo)
exten => _0004XX.,3,Hangup

When I load leads I load it with the following format : phone_code: 0004X
in campaign dial prefix is : X

How can I setup for certain extensions to goes to trunk A and certain extensions to goes to trunk B ?

Re: Certain extensions goes to specific trunk ?

PostPosted: Wed Jul 03, 2013 6:28 pm
by williamconley
With that setup, you can't. The extensions you loaded conflict with one another and only one of them will actually load. There must be a difference in the extension to have two different call paths.

Start here: HOW do you want to decide which calls go to A and which calls go to B? Random luck? Phone numbers that will result in a sale should go to A and phone numbers of deadbeats should go to B?

The system isn't psychic, there must be a way to differentiate between them ... if you tell us in English, we can tell you in "Asterisk Dialplan" how to make it happen!

Re: Certain extensions goes to specific trunk ?

PostPosted: Fri Jul 05, 2013 12:42 am
by scenarist
I want to extensions 8001 and 8002 go to trunk A and extensions from 8005 to 8020 go to trunk B ?
All phone numbers will be dial from lists which is load with phone code 0004X

Re: Certain extensions goes to specific trunk ?

PostPosted: Fri Jul 05, 2013 1:41 pm
by williamconley
Extensions don't initiate calls in Vicidial. Calls are generated by Campaigns or users in campaigns. The campaign dial prefix determines the carrier in use if properly configured.