[asterisk-bugs] [Asterisk 0016213]: [patch] Script to automatically email backtrace to admin

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 10 09:02:54 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16213 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16213
Category:                   Utilities/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     confirmed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-10 05:51 CST
Last Modified:              2009-11-10 09:02 CST
====================================================================== 
Summary:                    [patch] Script to automatically email backtrace to
admin
Description: 
Attached asterisk_mail_backtrace.sh

It can be added in safe_asterisk with the following lines:

PID=`cat ${ASTPIDFILE}`
nice -n 10 /usr/share/asterisk/asterisk_mail_backtrace.sh $PID & 

So after asterisk crashes it's executed in background while new instance
of asterisk starts.

I'm still uncertain what's the best place to put this script and both GDB
scripts. 

====================================================================== 

---------------------------------------------------------------------- 
 (0113546) atis (reporter) - 2009-11-10 09:02
 https://issues.asterisk.org/view.php?id=16213#c113546 
---------------------------------------------------------------------- 
lmadsen, those files should be put in some standard path, i don't think
safe_asterisk is generated as config samples. 

On the other hand, they could actually reside in some
/path/to/src/asterisk as you will need to compile from sources to get
usable backtrace. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-10 09:02 atis           Note Added: 0113546                          
======================================================================




More information about the asterisk-bugs mailing list