My Gurus! I'm still playing with asterisk in the lab here. There is a feature that I need in a production asterisk system. I was wondering if it already exists in asterisk. When we want to shutdown a production asterisk system, we would like the shutdown to happen after there are no more calls being processed. In other words, a shutdown command that does the following: - block asterisk from receiving/answering all new connection requests - monitor existing call connections it is currently handling - when all calls/connections have ended, then effect the shutdown and stop the asterisk process. Is there a way to do this in asterisk now, and how? This would be the ultimate graceful shutdown; perfect for routine system maintenance tasks on production servers handling continuous traffic. Thanks, Jeng ___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
On 12/10/07, Jeng Yu <jengyu2007 at yahoo.co.uk> wrote:> My Gurus! > > I'm still playing with asterisk in the lab here. There > is a feature that I need in a production asterisk > system. I was wondering if it already exists in > asterisk. > > When we want to shutdown a production asterisk system, > we would like the shutdown to happen after there are > no > more calls being processed. In other words, a shutdown > command that does the following: > > - block asterisk from receiving/answering all new > connection requests > > - monitor existing call connections it is currently > handling > > - when all calls/connections have ended, then > effect > the shutdown and stop the asterisk process. > > Is there a way to do this in asterisk now, and how? > > This would be the ultimate graceful shutdown; perfect > for routine system maintenance tasks on production > servers handling continuous traffic.stop gracefully "help stop" shows other similar options Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835
Jeng Yu wrote:> This would be the ultimate graceful shutdown; perfect > for routine system maintenance tasks on production > servers handling continuous traffic.if [ `asterisk -rx "show channels verbose"|awk '/active calls/{print $1}'` -eq 0 ] then asterisk -rx "stop now" fi -- ===================================================J. Oquendo SGFA #579 (FW+VPN v4.1) SGFE #574 (FW+VPN v4.1) "I hear much of people's calling out to punish the guilty, but very few are concerned to clear the innocent." Daniel Defoe http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF684C42E -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5533 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20071210/73f61903/attachment.bin