I found the app_swift module (that I've been helping maintain) makes asterisk crash on versions higher than 11.19.0 - something that happened on 11.20.0-rc1 makes asterisk segfault. I realize app_swift is not a 'supported' module -- I'm just having a hard time finding the cause and am wondering if I could borrow anyone's eyes.

of note, app_swift doesnt /always/ crash asterisk, e.g., when I call into asterisk from a phone and swift is in the dialplan, all seems fine. it seems that it's just when I make a callfile that dials out.


a backtrace is at http://pastebin.com/Dfd4P8sK

replication is easy (if you have swift):
echo "testing 1 2 3" > /var/lib/asterisk/tts
cat <<__EOE__ >> /etc/asterisk/extensions.conf
[intercom]
exten => _2XZ,1,SIPAddHeader(Alert-Info: Ring Answer)
exten => _2XZ,n,Page(SIP/${EXTEN},diqA(local/intercom))
[tts]
exten => s,1,Wait(1)
exten => s,n,GotoIf($[0${LEN(${TEXT})} > 1]?text)
exten => s,n,Set(SPEECH=${SHELL(cat /var/lib/asterisk/tts)})
exten => s,n,Goto(swift)
exten => s,n(text),Set(SPEECH=${TEXT})
exten => s,n,NoOp(${SPEECH})
exten => s,n(swift),Swift(${SPEECH})
exten => s,n,Hangup
__EOE__

cat <<__EOS__ > /var/spool/asterisk/tmp/test123
Channel: Local/221@intercom
Callerid: "TTS" <0>
MaxRetries: 2
WaitTime: 45
Context: tts
Extension: s
Priority: 1
__EOS__

mv /var/spool/asterisk/tmp/test123 /var/spool/asterisk/outgoing/test123

--

Jeremy Kister
http://jeremy.kister.net/


--
_____________________________________________________________________
-- 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

Reply via email to