Re: [asterisk-users] Asterisk core dumps files
Thanks Tzafrir for your answer. Because I had some problems running safe_asterisk script to restart asterisk automatically in our callcenter , I've developed a simple script that runs from a schedule task and check if asterisk is running each minute. This is not the best solution yet but it works properly when asterisk shutdown. However it not let asterisk generate core dumps files. Is there an error in this script or what I have to change to get core dumps files from this script. #!/bin/sh # #Script para levantar el asterisk automaticamente #programado por WL echo Checking if asterisk is running a=`pidof asterisk` if [ $a != ]; then echo Everything is OK, Asterisk is UP and running; else echo Asterisk Error: NOT RUNNING trying to restart it in 5 attempts!!!; for ((i=1; i=5; i+=1)); do /usr/sbin/asterisk -g b=`pidof asterisk` if [ $b != ]; then exit fi done fi G.A.G. ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Asterisk core dumps files
On Mon, Jul 27, 2009 at 01:28:59PM -0300, Gustavo A Gonzalez wrote: Hello all! Im running asterisk 1.4.23 and sometimes it crashes. Because I need to look for what asterisk crashes I run asterisk with option '-g' for debugging purpose. When I search for core files in filesystem nothing happend and I have not generated core files. Which is the way to know if asterisk are generating core dump files? And Which is the directory where it saves them? Is necessary to recompile asterisk with some extra option? Thanks for any idea. IIRC it tries to dump them in the directory it was run from. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Asterisk core dumps files
Hello all! Im running asterisk 1.4.23 and sometimes it crashes. Because I need to look for what asterisk crashes I run asterisk with option '-g' for debugging purpose. When I search for core files in filesystem nothing happend and I have not generated core files. Which is the way to know if asterisk are generating core dump files? And Which is the directory where it saves them? Is necessary to recompile asterisk with some extra option? Thanks for any idea. Cheers! ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users