switching to second line automatically...

All installation and configuration problems and questions

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

switching to second line automatically...

Postby kurianthayil » Wed Oct 24, 2007 8:35 am

Hey,
We are using Vicidial with Asterisk to make calls to US, with Digium TE410P card. There are 3 PRI lines connected to it. As one PRI provides only 23 channels, when one line becomes full we need the second line to be used by Vicidial. Is there a way that we can do this automatically? We tried changing the Outbound call Groups in Admin --> Show phones --> 8540 --> Outbound call Group to /zap/g3 (user level). But the call is going only through the TRUNK specified in extensions.conf. Is there a solution for the automatic switching? Thank you in advance.

Regards,

Kurian.
kurianthayil
 
Posts: 13
Joined: Thu Jul 26, 2007 11:47 pm

Postby peacy » Wed Oct 24, 2007 11:33 am

You can easily group multiple PRI trunks together. All you need to do is to assign the same group number for them in zapata.conf

In the config below, the first E1 trunk belongs to group 1 and group 11, the second E1 trunk belongs to group 1 and 12.
So a Dial(Zap/g11/....) would go out on the first trunk, a Dial(Zap/g12/...) would go out on the second trunk and a Dial(Zap/g1...) would take the next available free channel from either of the trunks.

Code: Select all
; Span 1: TE4/0/1 "T4XXP (PCI) Card 0 Span 1"
group=1,11
context=from-isdn30
switchtype = euroisdn
signalling = pri_cpe
channel => 1-15,17-31
context=default

; Span 2: TE4/0/2 "T4XXP (PCI) Card 0 Span 2" HDB3/CCS RED
group=1,12
context=from-isdn30
switchtype = euroisdn
signalling = pri_cpe
channel => 32-46,48-62
context=default
peacy
 
Posts: 55
Joined: Thu Jul 05, 2007 1:46 pm
Location: UK

Postby kurianthayil » Wed Oct 24, 2007 11:27 pm

Hey,
Thank you very much for your reply. I'll try out your suggestion and get back to you.

Regards,

Kurian.
kurianthayil
 
Posts: 13
Joined: Thu Jul 26, 2007 11:47 pm

Postby kurianthayil » Thu Oct 25, 2007 1:11 am

Hey Peacy,
I tried the settings suggested by you. We are using T1 lines and I have configured calls to be generated through zap/g2 in /etc/asterisk/extensions.conf. This is the 'group' section of my /etc/asterisk/zapata.conf,

;group=2 ;commented for checking automatic switching of channels
group=2,5 ;introduced for checking automatic switching of channels
signalling=pri_cpe
switchtype=national
context=inbound_g2
;channel=25-47 ;commented for checking automatic switching of channels
channel=25-26 ;introduced for checking automatic checking of channels


;group=3 ;commented for checking automatic switching of channels
group=2,6 ;introduced for checking automatic switching of channels
signalling=pri_cpe
switchtype=national
context=inbound_g2
channel=1-23

We are able to make two calls and those calls goes through channel 25 and 26. But when i make a third call, I get the following message in the Asterisk console.

-- Executing Monitor("SIP/8440-08f66a48", "WAV|20071025-015213_8440_1315362XXXX|mb") in new stack
-- Executing Dial("SIP/8440-08f66a48", "Zap/g2/1315362XXXX|55|tTo") in new stack
Oct 25 01:52:13 NOTICE[13427]: app_dial.c:1069 dial_exec_full: Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)
== Everyone is busy/congested at this time (1:0/1/0)

Please have a look at this error and suggest me some tips. Thank you in advance.

Regards,

Kurian.
kurianthayil
 
Posts: 13
Joined: Thu Jul 26, 2007 11:47 pm

Postby rajeevpn » Thu Oct 25, 2007 3:11 pm

Did you try g6 - just to make sure that channels 1-23 are setup fine
Also try using:
Code: Select all
channel => 1


instead of
Code: Select all
channel = 1

Not sure how much of a difference that might make but nevertheless!
rajeevpn
 
Posts: 48
Joined: Wed Aug 16, 2006 7:42 am

Postby kurianthayil » Fri Oct 26, 2007 1:32 am

Hey Rajeev,
Thanks for your reply. Its working when zap/g5 and zap/g6 is specified in the extensions.conf. But I'll try doing your suggestion. Let's hope it works. Will keep you posted. Thank you in advance.

Regards,

Kurian.
Last edited by kurianthayil on Fri Oct 26, 2007 1:37 am, edited 2 times in total.
kurianthayil
 
Posts: 13
Joined: Thu Jul 26, 2007 11:47 pm

Postby kurianthayil » Fri Oct 26, 2007 2:25 am

Hey Rajeev,
Its working finally!!!!! I didn't knew that a => had these much of significance. Now Asterisk automatically switches to the second line when one line gets full. This was the configuration that I used,

;group=2 ;commented for checking automatic switching of channels
group=2,5 ;introduced for checking automatic switching of channels
signalling=pri_cpe
switchtype=national
context=inbound_g2
;channel=1-23
;channel=25-47 ;commented for checking automatic switching of channels
channel=>25-26 ;introduced for checking automatic checking of channels

;group=4 ;commented for checking automatic switching of channels
group=2,6 ;introduced for checking automatic switching of channels
signalling=pri_cpe
switchtype=national
context=inbound_g3
channel=>49-71
;channel=25-47 ;to swap between group 3 and group 4 lines


Thank you very much for your suggestion. God bless.

Regards,

Kurian.
kurianthayil
 
Posts: 13
Joined: Thu Jul 26, 2007 11:47 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 77 guests

cron