[asterisk-dev] Fwd: Fwd: [asterisk-users] app_swift crash asterisk 11.20.0-rc1

Jeremy Kister asterisk-dev-01 at jeremykister.com
Tue Mar 1 16:56:38 CST 2016


Sorry to cross post, but I realized I might not get a response on -users 
because I'm looking more for a developer's eyeball..

My next option (without anyone's input) would be to back out each commit 
on 11.20.0-rc1 until I find which breaks swift -- but I'd probably still 
need more eyeballs to help fix.

-------- Forwarded Message --------
Subject: [asterisk-users] app_swift crash asterisk 11.20.0-rc1
Date: Sat, 27 Feb 2016 22:47:53 -0500
From: Jeremy Kister <asterisk-03 at jeremykister.com>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users at lists.digium.com>
To: asterisk-users at lists.digium.com

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 at 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/







More information about the asterisk-dev mailing list