[Asterisk-Users] stop asterisk when Idle
asterisk at frameweb.it
asterisk at frameweb.it
Thu Nov 17 06:11:09 MST 2005
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"
<akrall-lists at int
ruder.com.mx> To
Sent by: "'Asterisk Users Mailing List -
asterisk-users-bo Non-Commercial Discussion'"
unces at lists.digiu <asterisk-users at lists.digium.com>
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
<asterisk-users at l
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: 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
|
_______________________________________________
--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