Crontab -e will open your crontab for editing (if you are root) Add this line
45 4 * * * /usr/sbin/asterisk -rx "restart when convenient" And exit the editor This will restart your asterisk at 4:45 am every day unless a call is active at that time. If a call is active, asterisk will restart when the call hangs up. If you want to "Damn the torpedoes", change "when convenient" to "now". _____ From: [email protected] [mailto:[email protected]] On Behalf Of salaheddine elharit Sent: Friday, June 18, 2010 12:56 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] asterisk issue thanks for your response how can i create and execute this cron 2010/6/18 Danny Nicholas <[email protected]> I do a cron to execute "/usr/sbin/asterisk -rx "restart when convenient" " each day at 4:45 AM. This doesn't really "solve" any problems, just does "housekeeping" to keep a clean environment, since some installs/os'es lend themselves to memory leaks. _____ From: [email protected] [mailto:[email protected]] On Behalf Of salaheddine elharit Sent: Friday, June 18, 2010 5:13 AM To: [email protected] Subject: [asterisk-users] asterisk issue Hello, I have a problem in Asterisk 1.4 each day I need to restart asterisk service asterisk restart in order to unblock the calls My question how can I do in order to check the issue, and if there is any tool or log? Thanks and regards. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com <http://www.api-digital.com/> -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
