PRI SPAN based DIALING

Any and all non-support discussions

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

PRI SPAN based DIALING

Postby kalidhas » Tue Nov 22, 2011 5:22 am

Hi Everybody,

I have installed two PRI lines in my server, and i want to make calls through span 0 for a particular campaign(Ratio Dial) and through Span 1 for rest of the campaigns (Ratio Dial).

Is there a way to specify PRI span in the campaign creation or detail view section or it should it be done on dialplan or in context definition?
Can any one give me a suggestion.
ThankYou,
Kalidhas.P
VERSION: 2.2.1-237
BUILD: 100510-2015
DB SCHEMA VERSION:1193
kalidhas
 
Posts: 16
Joined: Mon Sep 06, 2010 7:10 am

Postby williamconley » Wed Nov 23, 2011 12:21 pm

your "dial" command can specify the "Group" to dial and the pri channels can be organized into groups.

the dial command should not do this directly, of course, but using a "global variable" so that this can be used in more than one carrier.

while the "carrier" settings are not generally used for Sangoma/Digium cards, that does not mean you CAN'T use the carrier settings under admin for this purpose.

so you can create groups withing your pri setup following standard asterisk setup (directly in the .conf files), then you will USE these groups in global variables defined in ANY carrier in the "Globals String" (or directly in the extensions.conf file). Remember that once defined, they can actually be used in any carrier (not limited to a specific carrier, even thought it would appear to be arranged that way).

then you use those global variables in the dialplan entry on the "dial" line to specify which group will be used for this dialplan (and then you end up with a different "group" for dial 9 vs dial 8 vs dial 7).

8-) Very similar to how the rest of us would use the admin->carrier settings to choose between different sip carriers.
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: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby boybawang » Thu Nov 24, 2011 2:24 am

here is an example dialplan

exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(DAHDI/G0/${EXTEN:1},,tTor)
exten => _X.,3,Hangup

You can check /etc/asterisk/zapata.conf to see what group you assigned your span

_X. is just used for example, you can adjust it later on to the number format that the provider requires.

also a you must need a valid callerid to be sent out for a call to be successfully made specially when sending calls through an e1
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: 988
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby boybawang » Thu Nov 24, 2011 2:31 am

If you want it to go through a single channel for troubleshooting heres an example

exten => _X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(DAHDI/1/${EXTEN:1},,tTor)
exten => _X.,3,Hangup


this means that your number will go through channel 1 of dahdi
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: 988
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Postby kalidhas » Thu Nov 24, 2011 10:34 am

Hi williamconley / boybawang,

Thank You to both of you for the suggestions.

I have did it by grouping as like you have suggested,

Below is my grouping configuration

A102 port 1 [slot:4 bus:32 span:1] <wanpipe1>

switchtype=euroisdn
context=default
group=0,11
signalling=pri_cpe
channel =>1-15,17-31

A102 port 2 [slot:4 bus:32 span:2] <wanpipe2>
switchtype=euroisdn
context=trunkinbound
group=1,11
signalling=pri_cpe
channel =>32-46,48-62


Its working fine for me.
ThankYou,
Kalidhas.P
VERSION: 2.2.1-237
BUILD: 100510-2015
DB SCHEMA VERSION:1193
kalidhas
 
Posts: 16
Joined: Mon Sep 06, 2010 7:10 am

Postby williamconley » Fri Nov 25, 2011 2:53 pm

Great postback! :-)
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: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: PRI SPAN based DIALING

Postby hemant » Fri Sep 27, 2013 9:34 am

[b][b]Hello Sir, I am using PRI line and sangoma card E1/T1 single port for goautodial ce 2.1 , i have facing issue in dialing the number from goautodial , i have configure the wanpipe and other setting in goautodial , I am confuse as i am not getting any help or video tutorial to configure the carrier span , and setting we are not using any VOIP service , its just a sinple PRI line connetced to the server , Kindly help me to resolve the problem[/b][/b]
hemant
 
Posts: 1
Joined: Tue Sep 24, 2013 9:26 am

Re: PRI SPAN based DIALING

Postby striker » Fri Sep 27, 2013 11:41 pm

make sure your pri is configured properly and up

type the below command in linux command

asterisk -rx "pri show spans"
asterisk -ex "dahdi show status"

wanrouter status

also post your asterisk cli log while dialling a call
www.striker24x7.com www.youtube.com/c/striker24x7 Telegram/skype id : striker24x7
striker
 
Posts: 962
Joined: Sun Jun 06, 2010 10:25 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 44 guests