Hi all, I have a Wildcard TE110P connected to a E1 line an I want to reserve channels in the following way: channels 1-15 and 17-21 for incoming calls channels 22-28 for outgoing calls channels 29-31 for emergency calls My zaptel.conf looks like this: ; incoming group = 1 signalling=pri_cpe context=from-zaptel channel => 1-15 channel => 17-21 ; outgoing group = 2 signalling=pri_cpe channel => 22-28 ; emergency group = 3 signalling=pri_cpe channel => 29-31 How can I avoid that incoming calls are going to the channels 22-31? Regards, Jack
On Mon, Jul 30, 2007 at 02:01:49PM +0200, Jack wrote:> Hi all, > > I have a Wildcard TE110P connected to a E1 line an I want to reserve > channels in the following way: > > channels 1-15 and 17-21 for incoming calls > channels 22-28 for outgoing calls > channels 29-31 for emergency calls > > My zaptel.conf looks like this: > > ; incoming > group = 1 > signalling=pri_cpe > context=from-zaptel > channel => 1-15 > channel => 17-21 > > ; outgoing > group = 2context = hangup-calls> signalling=pri_cpe > channel => 22-28 > > ; emergency > group = 3; keeping your convention and writing the directive explicitly, ; although it is kept implicitly from previous channel: context = hangup-calls> signalling=pri_cpe > channel => 29-31and then in extensions.conf: [hangup-calls] ; not sure that this is precisly the right thing to do: exten => s,1,Hangup -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Eric "ManxPower" Wieling
2007-Jul-30 14:37 UTC
[asterisk-users] Zaptel channel reservation
Jack wrote:> Hi all, > > I have a Wildcard TE110P connected to a E1 line an I want to reserve > channels in the following way: > > channels 1-15 and 17-21 for incoming calls > channels 22-28 for outgoing calls > channels 29-31 for emergency calls > > My zaptel.conf looks like this: > > ; incoming > group = 1 > signalling=pri_cpe > context=from-zaptel > channel => 1-15 > channel => 17-21 > > ; outgoing > group = 2 > signalling=pri_cpe > channel => 22-28 > > ; emergency > group = 3 > signalling=pri_cpe > channel => 29-31 > > How can I avoid that incoming calls are going to the channels 22-31? >You must contact your telco.
Why would you want to do that? let Asterisk (using zap/g in app_dial) take care of which channel are used for outbound but assign all the channels to that g, reject any incoming calls if there are already 7 incoming active calls with a congestion PRI_CAUSE. Do the same for 20 outgoing active calls. That should solve your problem, that is if your problem is that you don't want to allow more than 20 outbound calls, and 7 inbound calls. There should be no need to reserve channels, in fact you could put in much better logic to accomplish what you want efficiently. For example although in general you want 20 outbound calls, but if currently 7 channels are still available (because there are no incoming active calls) you might want to allow up to x additional channels for outbound, until at least 3 incoming channels are active (or whatever the number). The same goes the other way around. Which you wont be able to accomplish by reserving channels. In fact by reserving channels, you might lose lots of incoming calls, while the outbound channels have never reached peak, which basically makes this whole thing a waste of money (on the unused channels). On 7/30/07, Jack <jack.ssh at gmail.com> wrote:> Hi all, > > I have a Wildcard TE110P connected to a E1 line an I want to reserve > channels in the following way: > > channels 1-15 and 17-21 for incoming calls > channels 22-28 for outgoing calls > channels 29-31 for emergency calls > > My zaptel.conf looks like this: > > ; incoming > group = 1 > signalling=pri_cpe > context=from-zaptel > channel => 1-15 > channel => 17-21 > > ; outgoing > group = 2 > signalling=pri_cpe > channel => 22-28 > > ; emergency > group = 3 > signalling=pri_cpe > channel => 29-31 > > How can I avoid that incoming calls are going to the channels 22-31? > > Regards, Jack > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Tzafrir Cohen schrieb:> On Mon, Jul 30, 2007 at 02:01:49PM +0200, Jack wrote: > >> Hi all, >> >> I have a Wildcard TE110P connected to a E1 line an I want to reserve >> channels in the following way: >> >> channels 1-15 and 17-21 for incoming calls >> channels 22-28 for outgoing calls >> channels 29-31 for emergency calls >> >> My zaptel.conf looks like this: >> >> ; incoming >> group = 1 >> signalling=pri_cpe >> context=from-zaptel >> channel => 1-15 >> channel => 17-21 >> >> ; outgoing >> group = 2 >> > > context = hangup-calls > > >> signalling=pri_cpe >> channel => 22-28 >> >> ; emergency >> group = 3 >> > > ; keeping your convention and writing the directive explicitly, > ; although it is kept implicitly from previous channel: > context = hangup-calls > > >> signalling=pri_cpe >> channel => 29-31 >> > > and then in extensions.conf: > > [hangup-calls] > ; not sure that this is precisly the right thing to do: > exten => s,1,Hangup > >This is a solution I was thinking about too, but there is one major problem: When there is a outgoing call, asterisk takes the first available channel, in case there are no active calls this is Zap/22 for outgoing calls in my configuration. If there is a incoming call immediatly after the outgoing call is hangup, asterisk (or the telco?) does not take the first available channel - which would be Zap/1 - it takes Zap/22 instead. So with this solution this incoming call would get lost even when there are no other incoming calls at all.
Eric "ManxPower" Wieling schrieb:> Jack wrote: > >> Hi all, >> >> I have a Wildcard TE110P connected to a E1 line an I want to reserve >> channels in the following way: >> >> channels 1-15 and 17-21 for incoming calls >> channels 22-28 for outgoing calls >> channels 29-31 for emergency calls >> >> My zaptel.conf looks like this: >> >> ; incoming >> group = 1 >> signalling=pri_cpe >> context=from-zaptel >> channel => 1-15 >> channel => 17-21 >> >> ; outgoing >> group = 2 >> signalling=pri_cpe >> channel => 22-28 >> >> ; emergency >> group = 3 >> signalling=pri_cpe >> channel => 29-31 >> >> How can I avoid that incoming calls are going to the channels 22-31? >> >> > > You must contact your telco. > >Actually I preferred to reserve the channels in asterisk, but this seems to be the easiest way. Does anybody know if the mapping from telco channels to zap channels is fixed? Is the first telco channel always mapped to the first zap channel or is this mapping dynamic?> _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
On Tue, Jul 31, 2007 at 10:06:30AM +0200, Jack wrote:> Tzafrir Cohen schrieb: > > On Mon, Jul 30, 2007 at 02:01:49PM +0200, Jack wrote:> >> signalling=pri_cpe > >> channel => 29-31 > >> > > > > and then in extensions.conf: > > > > [hangup-calls] > > ; not sure that this is precisly the right thing to do: > > exten => s,1,Hangup > > > > > This is a solution I was thinking about too, but there is one major problem: > > When there is a outgoing call, asterisk takes the first available > channel , in case there are no active calls this is Zap/22 for outgoing > calls in my configuration. If there is a incoming call immediatly after > the outgoing call is hangup, asterisk (or the telco?) does not take the > first available channel - which would be Zap/1 - it takes Zap/22 > instead. So with this solution this incoming call would get lost even > when there are no other incoming calls at all.This is because you use Dial(Zap/g3) . Use Dial(Zap/G3) to make asterisk start from the last. You would then need a higher load for calls to be wasted that way. -- Tzafrir Cohen icq#16849755 jabber:tzafrir at jabber.org +972-50-7952406 mailto:tzafrir.cohen at xorcom.com http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Tzafrir Cohen schrieb:> On Tue, Jul 31, 2007 at 10:06:30AM +0200, Jack wrote: > >> Tzafrir Cohen schrieb: >> >>> On Mon, Jul 30, 2007 at 02:01:49PM +0200, Jack wrote: >>> > > >>>> signalling=pri_cpe >>>> channel => 29-31 >>>> >>>> >>> and then in extensions.conf: >>> >>> [hangup-calls] >>> ; not sure that this is precisly the right thing to do: >>> exten => s,1,Hangup >>> >>> >>> >> This is a solution I was thinking about too, but there is one major problem: >> >> When there is a outgoing call, asterisk takes the first available >> channel , in case there are no active calls this is Zap/22 for outgoing >> calls in my configuration. If there is a incoming call immediatly after >> the outgoing call is hangup, asterisk (or the telco?) does not take the >> first available channel - which would be Zap/1 - it takes Zap/22 >> instead. So with this solution this incoming call would get lost even >> when there are no other incoming calls at all. >> > > This is because you use Dial(Zap/g3) . Use Dial(Zap/G3) to make asterisk > start from the last. > > You would then need a higher load for calls to be wasted that way. > >I use Dial(Zap/g2) for outgoing calls. When I change this to Dial(Zap/G2) asterisk uses Zap/28 for the first active outgoing call, but the problem remains the same. When a call comes in a few seconds after the outgoing call is hangup, the call comes in on Zap/28 even if all other channels are not active.