Page 1 of 1
different carrier in different campaigns
Posted:
Tue Aug 03, 2010 1:13 pm
by ed123
hi i configure 2 carrier in 1 box/server and 2 campaigns in it.. is there an options were the 2 campaigns has its own different carrier?..
thanks
vicibox-server-1.0.0-rc2-i686.iso
VERSION: 2.0.5-173
BUILD: 90320-0424
Posted:
Tue Aug 03, 2010 1:21 pm
by gmcust3
Use Dial prefix
Posted:
Tue Aug 03, 2010 1:24 pm
by ed123
yes i did... but it take the first carrier instead of the second one..
thanks
vicibox-server-1.0.0-rc2-i686.iso
VERSION: 2.0.5-173
BUILD: 90320-0424
Posted:
Tue Aug 03, 2010 1:26 pm
by gmcust3
Check yr Dial Plan !!
Posted:
Tue Aug 03, 2010 2:39 pm
by boybawang
you can use a different prefix for another campaign , you need to set them up in your carriers list first, for example:
carrier1:
exten => _9.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _9.,2,Dial(sip/${EXTEN:1}@carrier1,55,tTor)
exten => _9.,3,Hangup
carrier2:
exten => _8.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _8.,2,Dial(sip/${EXTEN:1}@carrier2,55,tTor)
exten => _8.,3,Hangup
You just change the dial prefix per campaign, if you want to use carrier one change the campaign dial prefix to 9 , if you want to use carrier 2 then change the prefix to 8.
ps: Make sure that you also have [carrier1] and [carrier2] settings under /etc/asterisk/sip.conf
do a reload from the asterisk command line after changes have been made, then test
Posted:
Tue Aug 03, 2010 4:09 pm
by williamconley
Textbook method for doing it (Old School Meets New System):
For Each Carrier you have three things to set up:
Account Entry (this is for SIP or IAX):
[carriername]
xxx=xxx
xxx=xxx
changes for each carrier: each would have the actual name of the carrier or a short version of it
Globals Variable:
TRUNK9=SIP/carriername
changes for each carrier: the next would be TRUNK8 or TRUNK7 and would have another carrier in it, one per carrier (note that it has the carriername from the account entry to "connect" it, and the protocol, either SIP or IAX2) The global varibales could also be JOHN or BOB or DAY or NIGHT, as long as you change it in the globals line AND in the Dial Plan to be the same value. It's just a short cut to avoid putting the carrier directly into the dial plan, which makes your dial plans much more uniform and easily changed
Dial Plan:
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${TRUNK9}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,3,Hangup[/i]
changes for each carrier: the next would have TRUNK8 or TRUNK7 using the global variable so you can change the carrier just by changing the TRUNK9 to a TRUNK8 or however you want to do it. Don't forget the change _9 to _8 or _7 for each as you go.
The First Digit of the Dial Plan is what you put in "Dial Prefix" on the campaign which CHOOSES this carrier by that digit.
Posted:
Tue Aug 03, 2010 6:05 pm
by ed123
thanks for the reply...ill feedback you as soon as i finish the said configuration...
thanks
vicibox-server-1.0.0-rc2-i686.iso
VERSION: 2.0.5-173
BUILD: 90320-0424
Posted:
Tue Aug 03, 2010 6:15 pm
by ed123
follow up question.. what i have 1 carier with 2 different host ip..meaning i have to create 2 carier .. is it ok to activate them at the same time coz both gateway/host has thesame dialplan? if its ok.. is it possible if i activate both at the same time and if one of them failed and the other is the failover?
thanks
vicibox-server-1.0.0-rc2-i686.iso
VERSION: 2.0.5-173
BUILD: 90320-0424
Posted:
Tue Aug 03, 2010 6:28 pm
by williamconley
no
same dial plan is not 'failover'. same dial plan is 'conflict in dial plan'.
failover is something completely different.
Re: different carrier in different campaigns
Posted:
Thu Sep 26, 2013 10:55 am
by saulortega
Hello.
It's possible to do that outbound calls in a campaign be dialed for a specific carrier without using prefix? I mean selecting the carrier within campaigns menu or something.
Re: different carrier in different campaigns
Posted:
Thu Sep 26, 2013 11:31 am
by gerski
It is much better to put Dial Prefix to avoid conflict in asterisk dialplan.
You can always activate all, just make sure they have own prefix.
Re: different carrier in different campaigns
Posted:
Fri Oct 11, 2013 8:48 am
by jace
Hi Guys,
We're trying to setup our vicidial to work with 2 carriers in 1 campaign unfortunately, we're not sure how to accomplish this.
Please help!
Re: different carrier in different campaigns
Posted:
Sun Oct 13, 2013 11:54 pm
by striker
you want the second carrier act as failover or you want to use randomly for a single campaign
Re: different carrier in different campaigns
Posted:
Thu Oct 17, 2013 9:39 am
by jace
Thanks striker for the reply.
If possible we want it to use simultaneously, but if not randomly will work. Both accounts have their own username and password given from our provider.
Re: different carrier in different campaigns
Posted:
Mon Oct 21, 2013 6:53 am
by striker
Re: different carrier in different campaigns
Posted:
Mon Oct 21, 2013 8:14 am
by jace
Thank you for this info. It helps a lot.
Just to verify, Is this all should be added on the dial plan entry, including the "[general]" on both carrier setup?
Aside from the dial plan entry, is there any other thing should I need to configure for this setup to work?
Please advise if I have followed it correctly. Below is the dial plan entry I was planning to use.
[general]
TRUNKA=SIP/voiptrunk
TRUNKB=SIP/clickdial
exten => _91NXXNXXXXXX.,1,Answer
exten => _91NXXNXXXXXX.,n,Set(Trunk=${RAND(1|2)})
exten => _91NXXNXXXXXX.,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _91NXXNXXXXXX.,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _91NXXNXXXXXX.,n,Hangup
exten => _91NXXNXXXXXX.,n(trunkA),Dial(${TRUNKA}/${EXTEN:1},,tToR)
exten => _91NXXNXXXXXX.,n(trunkB),Dial(${TRUNKB}/${EXTEN:1},,tToR)
exten => _91NXXNXXXXXX.,n,Hangup
Re: different carrier in different campaigns
Posted:
Mon Oct 21, 2013 8:25 am
by striker
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,n,Set(Trunk=${RAND(1|2)})
exten => _91NXXNXXXXXX,n,GoToIf($[${Trunk} = 1]?trunkA)
exten => _91NXXNXXXXXX,n,GoToIf($[${Trunk} = 2]?trunkB)
exten => _91NXXNXXXXXX,n(trunkA),Dial(${TRUNKA}/${EXTEN:1},,tToR)
exten => _91NXXNXXXXXX,n(trunkB),Dial(${TRUNKB}/${EXTEN:1},,tToR)
exten => _91NXXNXXXXXX,n,Hangup
Re: different carrier in different campaigns
Posted:
Mon Oct 21, 2013 8:40 am
by jace
Thanks Striker for your quick response and sorry for the ignorance.
How about this:
[general]
TRUNKA=SIP/voiptrunk
TRUNKB=SIP/clickdial
where should I add this? and is the dial plan entry should be added on both carrier??
Re: different carrier in different campaigns
Posted:
Mon Oct 21, 2013 10:04 am
by striker
create two carrier
and that dial plan in dialplan entry in any one carrier.(another carrier dialplan entry will be empty)
Re: different carrier in different campaigns
Posted:
Tue Oct 22, 2013 7:53 am
by jace
Thanks striker.
As for the following code :
[general]
TRUNKA=SIP/voiptrunk
TRUNKB=SIP/clickdial
Where should I put this? Is this under Carrier's account entry? and should I put it on both carrier config?
Re: different carrier in different campaigns
Posted:
Wed Oct 23, 2013 7:02 am
by striker
in Global string of your carrier settings
in first carrier setting
TRUNKA=SIP/voiptrunk
n your second carrier
TRUNKB=SIP/clickdial
Re: different carrier in different campaigns
Posted:
Thu Oct 24, 2013 8:26 am
by jace
Thanks striker, you're such a big help to us.
We are now able to configure it based on your description, and dialing randomly seems to be working. We have tested it with our phone numbers however, we have noticed that when the first account was already in call (answered) and the second account tries to dial it seems that even when we picked up the phone, we can't seem to hear anything. and we've noticed that cli doesn't show any answer activity for the second account, then it hung up or ask to leave a message.
Any idea what will be the issue?