[Asterisk-Users] stop asterisk when Idle

Anton Krall akrall-lists at intruder.com.mx
Thu Nov 17 03:36:02 MST 2005


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 at lists.digium.com 
|[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
|asterisk at frameweb.it
|Sent: Thursday, November 17, 2005 3:21 AM
|To: asterisk-users at 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 at 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
|




More information about the asterisk-users mailing list