diff --git a/UPGRADE.txt b/UPGRADE.txt index 8a5cbb94bc614b117fb2b69a863ccf215b0a9493..65c7f3a757effb85611f0dbc32683e1cc4eb6dfb 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -23,6 +23,12 @@ From 12 to 13: + - Changed a log message in safe_asterisk and the $NOTIFY mail subject. If + you use tools to parse either of them, update your parse functions + accordingly. The changed strings are: + - "Exited on signal $EXITSIGNAL" => "Asterisk exited on signal $EXITSIGNAL." + - "Asterisk Died" => "Asterisk on $MACHINE died (sig $EXITSIGNAL)" + - The asterisk command line -I option and the asterisk.conf internal_timing option are removed and always enabled if any timing module is loaded. diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index daf261608c23e21ecac1646708f3e09f314c4995..8901d8a83557f99e536bba9c26074adf09099e28 100644 --- a/contrib/scripts/safe_asterisk +++ b/contrib/scripts/safe_asterisk @@ -173,11 +173,10 @@ run_asterisk() exit 0 elif test $EXITSTATUS -gt 128; then EXITSIGNAL=$((EXITSTATUS - 128)) - echo "Asterisk exited on signal $EXITSIGNAL." + message "Asterisk exited on signal $EXITSIGNAL." if test -n "$NOTIFY"; then echo "Asterisk on $MACHINE exited on signal $EXITSIGNAL. Might want to take a peek." | \ - mail -s "Asterisk Died" $NOTIFY - message "Exited on signal $EXITSIGNAL" + mail -s "Asterisk on $MACHINE died (sig $EXITSIGNAL)" $NOTIFY fi if test -n "$EXEC"; then $EXEC