Page 1 of 1

PRI SPAN based DIALING

PostPosted: Tue Nov 22, 2011 5:22 am
by kalidhas
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.

PostPosted: Wed Nov 23, 2011 12:21 pm
by williamconley
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.

PostPosted: Thu Nov 24, 2011 2:24 am
by boybawang
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

PostPosted: Thu Nov 24, 2011 2:31 am
by boybawang
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

PostPosted: Thu Nov 24, 2011 10:34 am
by kalidhas
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.

PostPosted: Fri Nov 25, 2011 2:53 pm
by williamconley
Great postback! :-)

Re: PRI SPAN based DIALING

PostPosted: Fri Sep 27, 2013 9:34 am
by hemant
[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]

Re: PRI SPAN based DIALING

PostPosted: Fri Sep 27, 2013 11:41 pm
by striker
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