Is there a way to detect (via batch) if asterisk is idle i.e. is there no active channels ? (oh323 show channels via console) I need to reboot every day an asterisk box, but I would like to do that only when asterisk is not doing anything. So I would like to schedule a batch at a given time that, before rebooting the system, checks if ?* is idle. Is it possible to do that ? Or does it exist another way ? thanks in advance, Andrea Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla. Visitate il sito http://www.frameweb.it
How about a cron job that does: asterisk -rx "restart when convenient" I do this sometimes and does the trick. |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |asterisk@frameweb.it |Sent: Thursday, November 17, 2005 3:21 AM |To: asterisk-users@lists.digium.com |Subject: [Asterisk-Users] stop asterisk when Idle | |Is there a way to detect (via batch) if asterisk is idle i.e. |is there no active channels ? (oh323 show channels via console) | |I need to reboot every day an asterisk box, but I would like |to do that only when asterisk is not doing anything. | |So I would like to schedule a batch at a given time that, |before rebooting the system, checks if ?* is idle. | |Is it possible to do that ? Or does it exist another way ? | |thanks in advance, | |Andrea | | |Chi ricevesse questa mail per errore e' gentilmente pregato di |cancellarla. | |Visitate il sito http://www.frameweb.it | |_______________________________________________ |--Bandwidth and Colocation sponsored by Easynews.com -- | |Asterisk-Users mailing list |Asterisk-Users@lists.digium.com |http://lists.digium.com/mailman/listinfo/asterisk-users |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users |
asterisk@frameweb.it schrieb:> Is there a way to detect (via batch) if asterisk is idle i.e. is there no > active channels ? (oh323 show channels via console)use "asterisk -rx 'show channels'" to execute an console command from batch and evaluate the output.> I need to reboot every day an asterisk boxIs there any reason for rebooting the box eeryday? Usually Linux-Boxes can run continously. Elmar
asterisk@frameweb.it wrote:> I need to reboot every day an asterisk box, but I would like to do that > only when asterisk is not doing anything.Let me be the third person to ask you to post detailed technical information on the problem you are having so it can be fixed, and you won't have to restart the box. Please stop thinking like a Windows admin.
asterisk@frameweb.it wrote:> I need to reboot every day an asterisk box, but I would like to do that > only when asterisk is not doing anything.I have no idea *why* do you need to reboot the machine every day. What I do is a full asterisk restart - removing the modules and reinstalling them. My boxes uptime are around 320 days and counting. Check http://lists.digium.com/pipermail/asterisk-users/2004-October/068512.html
Pedro
2005-Nov-22 06:53 UTC
[Asterisk-Users] Codec that quality does not get affect *much* against packet loss
I think you are thinking of iLBC: http://www.voip-info.org/wiki-iLBC Be aware that this codec is known to be pretty CPU intensive to accomplish its compression. - Pedro On 11/22/05, Sam Tam <sam@netenable.co.uk> wrote:> > I think I have heard in the past that someone mentioned to me there is a > codec that does not getting affected much because of packet loss. > > Is there such thing? > > Sam > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>-- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051122/aaa235e4/attachment.htm