"If, on the other side, asterisk continue accepting incoming call, how can I be sure that I wll reach a "convenient" moment ?"
If you are not sure if it will even reach a convenient moment, you will also not get a chance to run "stop now". -- -- Steven May you have the peace and freedom that come from abandoning all hope of having a better past. --- - --- - - - - - - - -- - - - --- - ------ - - --- - - -- - - - -- - - - <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Yes you are right; I was considering asterisk -rx "stop when convenient" (remember I have to shutdown the box). But the poit is: I don't know what exactly this command does !! Does it stop accepting new calls ? If it is right, then I can stay for several hours (let's say I have 100 calls running, and one of them will continue for 5 hours) for 5 hours no one will be able to place a new call ? If, on the other side, asterisk continue accepting incoming call, how can I be sure that I wll reach a "convenient" moment ? So this is not the solution for me I think that I will issue a asterisk -rx "stop now", then I will check for the pidof asterisk and when I will not found it anymore I will reboot the pc. Of course, running calls will be dropped.... But I found some situations that, after several millions of calls seconds, need to reboot the box and not only restart asterisk. thank you, Andrea "Anton Krall" <[EMAIL PROTECTED] ruder.com.mx> To Sent by: "'Asterisk Users Mailing List - asterisk-users-bo Non-Commercial Discussion'" [EMAIL PROTECTED] <[email protected]> m.com cc Subject 17/11/2005 11.36 RE: [Asterisk-Users] stop asterisk when Idle Please respond to Asterisk Users Mailing List - Non-Commercial Discussion <[EMAIL PROTECTED] ists.digium.com> How about a cron job that does: asterisk -rx "restart when convenient" I do this sometimes and does the trick. |-----Original Message----- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] On Behalf Of |[EMAIL PROTECTED] |Sent: Thursday, November 17, 2005 3:21 AM |To: [email protected] |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 |[email protected] |http://lists.digium.com/mailman/listinfo/asterisk-users |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users | _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com -- Asterisk-Users mailing list [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
