different carrier in different campaigns

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

different carrier in different campaigns

Postby ed123 » Tue Aug 03, 2010 1:13 pm

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
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Postby gmcust3 » Tue Aug 03, 2010 1:21 pm

Use Dial prefix
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Postby ed123 » Tue Aug 03, 2010 1:24 pm

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 :(
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Postby gmcust3 » Tue Aug 03, 2010 1:26 pm

Check yr Dial Plan !!
GoAutoDial CE
VERSION: 2.4-309a
BUILD: 110430-1642
No other software installed on the box.
I've read the manager manual.
gmcust3
 
Posts: 1148
Joined: Sat Oct 24, 2009 1:15 pm

Postby boybawang » Tue Aug 03, 2010 2:39 pm

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
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby williamconley » Tue Aug 03, 2010 4:09 pm

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. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby ed123 » Tue Aug 03, 2010 6:05 pm

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
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Postby ed123 » Tue Aug 03, 2010 6:15 pm

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
ed123
 
Posts: 294
Joined: Mon Mar 15, 2010 9:19 pm

Postby williamconley » Tue Aug 03, 2010 6:28 pm

no

same dial plan is not 'failover'. same dial plan is 'conflict in dial plan'.

failover is something completely different.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: different carrier in different campaigns

Postby saulortega » Thu Sep 26, 2013 10:55 am

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.
saulortega
 
Posts: 118
Joined: Mon Jul 29, 2013 11:46 am

Re: different carrier in different campaigns

Postby gerski » Thu Sep 26, 2013 11:31 am

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.
http://www.perfectnetworkcorp.com
Perfect Network Corporation
gerski
 
Posts: 432
Joined: Fri Jul 14, 2006 6:21 am

Re: different carrier in different campaigns

Postby jace » Fri Oct 11, 2013 8:48 am

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!
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm

Re: different carrier in different campaigns

Postby striker » Sun Oct 13, 2013 11:54 pm

you want the second carrier act as failover or you want to use randomly for a single campaign
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: different carrier in different campaigns

Postby jace » Thu Oct 17, 2013 9:39 am

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.
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm

Re: different carrier in different campaigns

Postby striker » Mon Oct 21, 2013 6:53 am

check the below link for the dialplan to dial randomly between three trunks


http://striker24x7.blogspot.in/2012/02/multiple-carriers-in-asterisk-or.html
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: different carrier in different campaigns

Postby jace » Mon Oct 21, 2013 8:14 am

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
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm

Re: different carrier in different campaigns

Postby striker » Mon Oct 21, 2013 8:25 am

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
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: different carrier in different campaigns

Postby jace » Mon Oct 21, 2013 8:40 am

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??
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm

Re: different carrier in different campaigns

Postby striker » Mon Oct 21, 2013 10:04 am

create two carrier

and that dial plan in dialplan entry in any one carrier.(another carrier dialplan entry will be empty)
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: different carrier in different campaigns

Postby jace » Tue Oct 22, 2013 7:53 am

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?
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm

Re: different carrier in different campaigns

Postby striker » Wed Oct 23, 2013 7:02 am

in Global string of your carrier settings
in first carrier setting
TRUNKA=SIP/voiptrunk

n your second carrier
TRUNKB=SIP/clickdial
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am

Re: different carrier in different campaigns

Postby jace » Thu Oct 24, 2013 8:26 am

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?
Thanks a lot!

vicibox redux 4.0.3; Vicidial VERSION: 2.8-407a BUILD: 130709-1350 from; Asterisk 1.4.44. I'm also using eyebeam softphone 1.1 3007n stamp 17816.
jace
 
Posts: 20
Joined: Wed Jul 10, 2013 4:49 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 137 guests