[asterisk-bugs] [Asterisk 0013471]: exten => s, n, SMS(sms, 2a) causes seg fault

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Sep 14 22:48:40 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13471 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13471
Category:                   Applications/app_sms
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0-rc6 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-12 06:33 CDT
Last Modified:              2008-09-14 22:48 CDT
====================================================================== 
Summary:                    exten => s,n,SMS(sms,2a) causes seg fault
Description: 
When ever a text comes in from a cellular trunking unit attached to a
TDM400, asterisk will seg fault dropping all calls and restart.

Previously with asterisk 1.4.18, the sms application wasn't working for
us, but at least didn't seg fault in 1.4.18


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

---------------------------------------------------------------------- 
 (0092489) alecdavis (reporter) - 2008-09-14 22:48
 http://bugs.digium.com/view.php?id=13471#c92489 
---------------------------------------------------------------------- 
back trace attached.

I believe the inital SMS sytax that I had used was incorrect, but I'd
still expect the SMS app to exit gracefully, not crash asterisk.

[cellular_crashes]
exten => s,1,NoOp(Callerid = ${CALLERID(all)})
exten => s,n,GotoIf($["${CALLERID(num)}"="042111"]?SMSMessage)
exten => s,n,Macro(dialout,${TRUNK},4888)

exten => s,n,Hangup()

exten => s,n(SMSMessage),NoOp( SMS MESSAGE )
exten => s,n,SMS(sms,2a)
exten => s,n,Hangup()

Below is a now working context. I couldn't get the initial delay to be
anything other than the default of 300ms, so added Answer() and Wait(3)
[cellular_works]
exten => s,1,NoOp(Callerid = ${CALLERID(all)})
exten => s,n,GotoIf($["${CALLERID(num)}"="042111"]?SMSMessage)
exten => s,n,Macro(dialout,${TRUNK},4888)

exten => s,n,Hangup()

exten => s,n(SMSMessage),NoOp( SMS MESSAGE )
exten => s,n,Answer()
exten => s,n,Wait(3)
exten => s,n,SMS(test,sat)
exten => s,n,Hangup() 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-14 22:48 alecdavis      Note Added: 0092489                          
======================================================================




More information about the asterisk-bugs mailing list