[Home]

Summary:ASTERISK-24265: segfault in asterisk when try to make call to IAX
Reporter:Dafi Ni (dafi)Labels:
Date Opened:2014-08-25 07:09:33Date Closed:2014-09-19 09:58:46
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:13.0.0-beta1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Linux KRA-WS-DAFI 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Attachments:( 0) backtrace.txt
( 1) dialplan.conf
( 2) iax.conf
( 3) sip.conf
Description:When trying to make call between SIP(wss) peer and IAX peer a i got
segfault:

Aug 25 13:36:53 kra-ws-dafi kernel: [19676.599045] asterisk[15421]: segfault at 8 ip 000000000050ca30 sp 00007f94f39b2be8 error 4 in asterisk[400000+26e000]

Same configuration with 11.11.0 and 12.5.0 is OK.
Comments:By: Jonathan Rose (jrose) 2014-09-15 16:22:00.892-0500

Hey, if I don't figure it out how to reproduce this before you see this message, I'd like to get the following:

* What codecs the IAX endpoint is configured to use
* What codec the SIP(wss) endpoint is using prior to dialing the IAX endpoint
* Relevant parts of an Asterisk log that reproduces the crash with verbosity/debug level of 3.

By: Matt Jordan (mjordan) 2014-09-15 16:57:37.032-0500

From the {{iax.conf}}, it looks like it wasn't configured with anything... :-)

By: Jonathan Rose (jrose) 2014-09-15 17:54:02.700-0500

I mean from the perspective of the endpoint. What does the IAX2 device offer.

By: Dafi Ni (dafi) 2014-09-16 02:18:49.401-0500

There wasn't any changes with codec to default iax.conf in both sides of IAX connection

* IAX was between two asterisk (13.0.0 beta1) and (11.11.0)
* WSS was from chromium browser to 13.0.0 so there was only one compatibile codec - g.711 .
* Next from 11.11.0 to sip peer (hardware siemens gigaset - Codec Order  : (alaw:20,gsm:20)), but crash was before.

{quote}
; Specify bandwidth of low, medium, or high to control which codecs are used
; in general.
;
bandwidth=low
;

;
; You can also fine tune codecs here using "allow" and "disallow" clauses with
; specific codecs.  Use "all" to represent all formats.
;
;allow=all
;disallow=g723.1
disallow=lpc10
;allow=gsm
;
{quote}

I can't deliver required logs now because i'm working now with different asterisk version and different configs.
I will try to reproduce this with required logs soon


By: Jonathan Rose (jrose) 2014-09-16 15:54:30.046-0500

Thanks for the feedback! No need for anything else on your part at this point, I've been able to reproduce the problem and I've determined the cause... I'm just working on nailing down an appropriate fix.