Route outbound calls to use the specific E1

All installation and configuration problems and questions

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

Route outbound calls to use the specific E1

Postby sherkan » Mon Oct 08, 2012 4:52 am

Hi everybody
My vicidial setup is a Goautodial, simple HP Pavillon used as a server, T405P card PCI

Everything is fine with my mini callcenter, except one problem:
I have connected three E1 cables (from different Telcos), I would wish outbound calls to be routed to the appropriate Line E1 which correspond to the prefix of the called number.
Ex: if you call for example 078XXXXXX you want Vicidial to use the Telco Line (E1) of that specific Prefix 078.... if 072XXXXX is called, then you d wish another E1 line to b used with that Prefix 072.

It's very important for Cost-effectiveness, Hope I was clear enough

Thanks a lot, God bless you!
sherkan
 
Posts: 29
Joined: Mon Jan 10, 2011 5:07 am

Re: Route outbound calls to use the specific E1

Postby williamconley » Mon Oct 08, 2012 4:03 pm

1) Welcome to the Party! 8-)

2) Contratulations! You are today's winner of my standard schpiel:

when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3) You will be using a dialplan that routes the calls based on the first several digits matching and being sent to an appropriate "group" (g0 vs g1 vs g2). This is a function of Asterisk and/or Lowest Cost Routing. If you look up the asterisk "Dial" command and create a "dial plan" in Admin->Carriers that takes pricing into account, you'll have what you need.

4) I would actually advise you to set up a completely different box to handle this lowest cost routing feature and put Vicidial in a purely SIP based box that would pass calls to the E1 box and let the E1 box handle only the LCR portion. This would allow other servers within your system to also access these routes (including when you Cluster your Vicidial system and have multiple Dialers in it ...).
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: Route outbound calls to use the specific E1

Postby sherkan » Tue Oct 16, 2012 5:26 am

Thanks a Lot Mr William, it worked... just did your advice
I have created different groups on zapata files, then assign each dialplan using the specific

below is my asterisk files
extensions

----------------
exten => _078XXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _078XXXXXXX,2,Dial(ZAP/g2/${EXTEN},,tTor)
exten => _078XXXXXXX,3,Hangup

exten => _072XXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _072XXXXXXX,2,Dial(ZAP/g1/${EXTEN},,tTor)
exten => _072XXXXXXX,3,Hangup

exten => _25XXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _25XXXXXXX,2,Dial(ZAP/g2/${EXTEN},,tTor)
exten => _25XXXXXXX,3,Hangup

exten => _3XXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _3XXX,2,Dial(ZAP/g0/${EXTEN},,tTor)
exten => _3XXX,3,Hangup
-------------------------------------

the zapata.conf is now

[channels]
language=en
rxgain=1.0
txgain=1.0
usecallerid=yes
callerid=asreceived
busydetect=no
context=trunkinbound
echotraining=no
echocancel=no
echocancelwhenbridged=no
usecallingpres=yes
callprogress = no
prilocaldialplan=unknown
pridialplan=unknown
overlapdial=yes
#switchtype=national
group=2
callgroup=2
pickupgroup=2
immediate=no

#PRI 1
switchtype=euroisdn
context=default
group=2
echocancel=yes
signalling=pri_cpe
channel => 1-15
channel => 17-31

#PRI 2
switchtype=euroisdn
context=default
group=1
echocancel=yes
signalling=pri_cpe
channel => 32-46
channel => 48-62

#PRI3
switchtype=euroisdn
context=default
group=0
echocancel=yes
signalling=pri_cpe
channel => 63-77
channel => 79-93
-----------------------------------------

one of the Telco does not go out, maybe they should activate it from their settings (the group 2), but group1 and group0 are okay, when you call it uses the appropriate channels ( LCR )

God bless, stay well
sherkan
 
Posts: 29
Joined: Mon Jan 10, 2011 5:07 am

Re: Route outbound calls to use the specific E1

Postby williamconley » Tue Oct 16, 2012 9:12 pm

Excellent post back. You probably just saved someone else a whole lot of searching. :) (Well, in the future anyway)
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!)


Return to Support

Who is online

Users browsing this forum: No registered users and 132 guests