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 ?