Project

General

Profile

Need help setting up multiple carriers for single campaigns

Added by Dhiren Jagganath about 7 years ago

Hi all

My Sip accounts only allow 1 concurrent call at a time per account. and i want to set up goautodial to route calls through each of them. I have set them up as individual carriers and outbound calling works on all of them.

so i read up a bit on the dial plan configurations to make it use all the accounts however I have been unsuccessful. I have tried setting the following in custom dial plan:

exten => _1XXXXXXXXXX.,n,Set(Trunk=${RAND})
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 3]?trunkC)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 4]?trunkD)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 5]?trunkE)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 6]?trunkF)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 7]?trunkG)
exten => _1XXXXXXXXXX.,n,GoToIf($[${Trunk} = 8]?trunkH)
exten => _1XXXXXXXXXX.,n,Hangup
exten => _1XXXXXXXXXX.,n(trunkA),Dial(${vo1}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkB),Dial(${vo2}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkC),Dial(${vo3}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkD),Dial(${vo4}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkE),Dial(${vo5}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkF),Dial(${vo6}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkG),Dial(${vo7}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n(trunkH),Dial(${vo8}/${EXTEN:1},,tToR)
exten => _1XXXXXXXXXX.,n,Hangup

{im not sure if i have done this correctly though}

without making changes to the dialplan on the carriers themselves. afterwards i erased the custom dial plan. added "call-limit=1" to the account entry under the first carrier and pasting the above details in the dial plan. both of which failed.

Could i have some assistance or guidance in setting up this dial plan?>


Replies (3)

RE: Need help setting up multiple carriers for single campaigns - Added by striker 247 about 7 years ago

post your asterisk cli log while dialling via this dial plan

try this
1. create 8 trunks ie TrunkA to TrunkH
2. instead of custom dialplan , put the dialplan in any one of the trunk
note: use the vicidial admin page https://ip/vicidial/admin.php
3. use the below dialplan in dialplan entry of any one of the carrier

exten => _9898X.,1,AGI(agi:/127.0.0.1:457/call_log)
exten => _9898X.,n,Set(Trunk=${RAND(1|8)})
exten => _9898X.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _9898X.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _9898X.,n,GoToIf($[${Trunk} = 3]?trunkC)
exten => _9898X.,n,GoToIf($[${Trunk} = 4]?trunkD)
exten => _9898X.,n,GoToIf($[${Trunk} = 5]?trunkE)
exten => _9898X.,n,GoToIf($[${Trunk} = 6]?trunkF)
exten => _9898X.,n,GoToIf($[${Trunk} = 7]?trunkG)
exten => _9898X.,n,GoToIf($[${Trunk} = 8]?trunkH)
exten => _9898X.,n,Hangup
exten => _9898X.,n(trunkA),Dial(SIP/TrunkA/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkB),Dial(SIP/TrunkB/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkC),Dial(SIP/TrunkC/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkD),Dial(SIP/TrunkD/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkE),Dial(SIP/TrunkE/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkF),Dial(SIP/TrunkF/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkG),Dial(SIP/TrunkG/${EXTEN:4},,tToR)
exten => _9898X.,n(trunkH),Dial(SIP/TrunkH/${EXTEN:4},,tToR)
exten => _9898X.,n,Hangup

note: 9898 is the prerfix to used in campaign dialprefix.

regards
striker
www.striker24x7.blogspot.com

RE: Need help setting up multiple carriers for single campaigns - Added by Dhiren Jagganath about 7 years ago

thank you very much for your input on this issue. I have tried this howevever i have not yet succeeded as yet.

I am assuming that TrunkA - H will be replaced by the carrier name.. Am i correct? - upon doing this with the addition of the dialplan you have mentioned above being added on. i can dial out on one account but not on another logged in agent

Do i delete the existing dial plan for the carrier being used or do i add on to the dial plan entry?

RE: Need help setting up multiple carriers for single campaigns - Added by striker 247 about 7 years ago

can you post the asterisk cli log while dialling out.

note: type asterisk -vvvvvr in ssh console to getin to the asterisk cli

make only one call and capture the log and paste it here

also run this command in linux console
asterisk -rx "dial plan show 12345678900@default"

regards
striker
www.striker24x7.blogspot.com

    (1-3/3)
    Go to top