Re: [asterisk-users] How to busy out zap channels

2007-09-28 Thread Andrew Joakimsen
On 9/26/07, Brian Roy [EMAIL PROTECTED] wrote:

 Anyone have a better idea? Or do they have anything like this so I'm not
 putting it together?


If its PRI why don't you try:

exten = 00,1,Set(PRI_CAUSE=27)
exten = 00,2,Hangup

Or cause code 17

17 = User Busy. The number dialed is busy and cannot receive any more calls.
27 = Destination Out-of-Order. This is a working number, but the span
to the destination is not active or there is a problem sending
messages to this destination.

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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


Re: [asterisk-users] How to busy out zap channels

2007-09-28 Thread Steve Totaro
Andrew Joakimsen wrote:
 On 9/26/07, Brian Roy [EMAIL PROTECTED] wrote:
   
 Anyone have a better idea? Or do they have anything like this so I'm not
 putting it together?

 

 If its PRI why don't you try:

 exten = 00,1,Set(PRI_CAUSE=27)
 exten = 00,2,Hangup

 Or cause code 17

 17 = User Busy. The number dialed is busy and cannot receive any more calls.
 27 = Destination Out-of-Order. This is a working number, but the span
 to the destination is not active or there is a problem sending
 messages to this destination.

   

I am pretty sure there is no way to busy out a channel currently.  You 
could make it busy by using it though.

Thanks,
Steve

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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


Re: [asterisk-users] How to busy out zap channels

2007-09-27 Thread Anthony Francis
Tomás Laureano Peralta Tormey wrote:
 Brian:
 Maybe the CLI command stop gracefully is what are you looking for.
 Basically, Asterisk will stop receiving incoming calls (of any channel
 type) and stop itself when all the current calls finish.
 I hope this help you.

 Best regards, Tomás.

 2007/9/26, Brian Roy [EMAIL PROTECTED]:
   
 I know this topic came up many months back and some discussions were being
 had on how to do this within the Zaptel drivers. However, I'm looking for
 even a crude hack that someone has put together to get this done.

 We have PRI's and LD T1's that are load balanced on two boxes. The hunt
 order goes from box to box as far as the spans are concerned. There are
 times that I would like to busy one out so that calls gradually role to the
 new box and I can eventually take one out of service. What I was thinking is
 to create a script that I could tell the specific channels and it would go
 through and initiate zap calls to an empty meetme. Basically bridging all of
 the available zap channels on a given span together. Then the trick is
 monitoring the hangups so that it can initiate a subsequent call immediately
 following. Once all of the channels in a span have been bridged, I can then
 bring the box down. Nasty huh?

 Anyone have a better idea? Or do they have anything like this so I'm not
 putting it together?

 Thanks,

 -Brian

 

 ___

 Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

 --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
   
I used to do this automatically at night so that my script could svn 
update configs and then restart asterisk, what a found is that if you 
have one hung channel your ast box wil just sit there till someone 
issues a Restart Now in the morning.

Anthony

___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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


Re: [asterisk-users] How to busy out zap channels

2007-09-27 Thread Tomás Laureano Peralta Tormey
Anthony:
Yes, you are right, sometimes that could happen but if Brian is going
to take out of service his box is possible that he is monitoring this
box and he could detect this behavior. Also, if you have a hung
channel in your box, this channel is actually in use and will
replicate the requirement that Brian needs (block the incoming calls
from the bearer channels of that PRI trunk).
Anyway, this could be a solution for me (that is better that
connecting the channels to empty meetme rooms) but maybe not for
Brian. I hope this works well for him.

Best regards, Tomás.

2007/9/27, Anthony Francis [EMAIL PROTECTED]:
 Tomás Laureano Peralta Tormey wrote:
  Brian:
  Maybe the CLI command stop gracefully is what are you looking for.
  Basically, Asterisk will stop receiving incoming calls (of any channel
  type) and stop itself when all the current calls finish.
  I hope this help you.
 
  Best regards, Tomás.
 
  2007/9/26, Brian Roy [EMAIL PROTECTED]:
 
  I know this topic came up many months back and some discussions were
 being
  had on how to do this within the Zaptel drivers. However, I'm looking for
  even a crude hack that someone has put together to get this done.
 
  We have PRI's and LD T1's that are load balanced on two boxes. The hunt
  order goes from box to box as far as the spans are concerned. There are
  times that I would like to busy one out so that calls gradually role to
 the
  new box and I can eventually take one out of service. What I was thinking
 is
  to create a script that I could tell the specific channels and it would
 go
  through and initiate zap calls to an empty meetme. Basically bridging all
 of
  the available zap channels on a given span together. Then the trick is
  monitoring the hangups so that it can initiate a subsequent call
 immediately
  following. Once all of the channels in a span have been bridged, I can
 then
  bring the box down. Nasty huh?
 
  Anyone have a better idea? Or do they have anything like this so I'm not
  putting it together?
 
  Thanks,
 
  -Brian
 
 
 
  ___
 
  Sign up now for AstriCon 2007!  September 25-28th.
 http://www.astricon.net/
 
  --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
 
 I used to do this automatically at night so that my script could svn
 update configs and then restart asterisk, what a found is that if you
 have one hung channel your ast box wil just sit there till someone
 issues a Restart Now in the morning.

 Anthony

 ___

 Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/

 --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


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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


[asterisk-users] How to busy out zap channels

2007-09-26 Thread Brian Roy
I know this topic came up many months back and some discussions were being
had on how to do this within the Zaptel drivers. However, I'm looking for
even a crude hack that someone has put together to get this done.

We have PRI's and LD T1's that are load balanced on two boxes. The hunt
order goes from box to box as far as the spans are concerned. There are
times that I would like to busy one out so that calls gradually role to the
new box and I can eventually take one out of service. What I was thinking is
to create a script that I could tell the specific channels and it would go
through and initiate zap calls to an empty meetme. Basically bridging all of
the available zap channels on a given span together. Then the trick is
monitoring the hangups so that it can initiate a subsequent call immediately
following. Once all of the channels in a span have been bridged, I can then
bring the box down. Nasty huh?

Anyone have a better idea? Or do they have anything like this so I'm not
putting it together?

Thanks,

-Brian
___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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

Re: [asterisk-users] How to busy out zap channels

2007-09-26 Thread Wai Wu
Very nasty indeed. Through my experience with PRI, the TelCo switchs are
not that present to deal with. Your method will work, kind of. However,
if the TelCo decides to send you a call during that split second of
idle, how are you going to handle it. The best way is still to call your
TelCo to take the span down. 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian Roy
Sent: Wednesday, September 26, 2007 3:54 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] How to busy out zap channels


I know this topic came up many months back and some discussions were
being had on how to do this within the Zaptel drivers. However, I'm
looking for even a crude hack that someone has put together to get this
done. 
 
We have PRI's and LD T1's that are load balanced on two boxes. The hunt
order goes from box to box as far as the spans are concerned. There are
times that I would like to busy one out so that calls gradually role to
the new box and I can eventually take one out of service. What I was
thinking is to create a script that I could tell the specific channels
and it would go through and initiate zap calls to an empty meetme.
Basically bridging all of the available zap channels on a given span
together. Then the trick is monitoring the hangups so that it can
initiate a subsequent call immediately following. Once all of the
channels in a span have been bridged, I can then bring the box down.
Nasty huh? 
 
Anyone have a better idea? Or do they have anything like this so I'm not
putting it together?
 
Thanks,
 
-Brian
___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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

Re: [asterisk-users] How to busy out zap channels

2007-09-26 Thread Tomás Laureano Peralta Tormey
Brian:
Maybe the CLI command stop gracefully is what are you looking for.
Basically, Asterisk will stop receiving incoming calls (of any channel
type) and stop itself when all the current calls finish.
I hope this help you.

Best regards, Tomás.

2007/9/26, Brian Roy [EMAIL PROTECTED]:
 I know this topic came up many months back and some discussions were being
 had on how to do this within the Zaptel drivers. However, I'm looking for
 even a crude hack that someone has put together to get this done.

 We have PRI's and LD T1's that are load balanced on two boxes. The hunt
 order goes from box to box as far as the spans are concerned. There are
 times that I would like to busy one out so that calls gradually role to the
 new box and I can eventually take one out of service. What I was thinking is
 to create a script that I could tell the specific channels and it would go
 through and initiate zap calls to an empty meetme. Basically bridging all of
 the available zap channels on a given span together. Then the trick is
 monitoring the hangups so that it can initiate a subsequent call immediately
 following. Once all of the channels in a span have been bridged, I can then
 bring the box down. Nasty huh?

 Anyone have a better idea? Or do they have anything like this so I'm not
 putting it together?

 Thanks,

 -Brian


___

Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/ 

--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