[Home]

Summary:ASTERISK-17341: [patch] MWI subscription to remote server crashes during parse
Reporter:cmaj (cmaj)Labels:
Date Opened:2011-02-02 20:50:43.000-0600Date Closed:2012-09-05 08:37:34
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Subscriptions
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) patch-chan_sip-1.8.2.3-outbound-mwi-subscribe-crash.diff.txt
Description:Incorrect parsing in sip_subscribe_mwi was crashing Asterisk.

In sip.conf, just below your "register =>" lines and before peer/user definitions, try adding:

mwi => 1234@other_host/1234

...then issue "sip reload" - should crash.

Partial gdb backtrace:

(gdb) bt
#0  0x00007fa68aabb990 in strchr () from /lib/libc.so.6
#1  0x00007fa65c0d4af7 in sip_subscribe_mwi (value=0x0, lineno=0) at chan_sip.c:7594

Attached patch corrects the problem.
Comments:By: cmaj (cmaj) 2011-02-07 19:07:12.000-0600

Looks like dupe of 18350.

By: Sean Bright (seanbright) 2011-04-28 13:10:34

Duplicate of 18350

By: cmaj (cmaj) 2011-05-30 14:27:56

Re-opened because patch in this bug contains support for TCP MWI subscriptions as well as the fix covered by the related bug.

By: Michael Keuter (mkeuter) 2012-05-11 16:51:18.775-0500

I do have exactly the same issue in Asterisk 1.8.13.0-rc1 and 10.2.0-rc2.
I cannot supply a backtrace because it's embedded system.

asterisk[12979]: segfault at 60 ip 40b76aaf sp 40fee190 error 4 in chan_sip.so[40af9000+a3000]


By: Matt Jordan (mjordan) 2012-09-05 08:37:34.254-0500

Closing out as a duplicate of ASTERISK-16999.