[Home]

Summary:ASTERISK-12200: IAX2 crashes with many leftover threads.
Reporter:Nils Hammar (ehsnils)Labels:
Date Opened:2008-06-16 01:27:48Date Closed:2008-06-16 06:52:52
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) Asterisk-1.JPG
Description:After installation of Asterisk 1.4.21 on two nodes, one in Europe and one in the US we did get problems related to the IAX2 protocol.

The IAX2 protocol was set up to be used as a trunk as the config in the additional information. The config is set up symmetrically on both sides.

What happens is that a call can be established, but after a while (usually a minute) the line goes silent and the command "iax2 show threads" lists more than 100 threads instead of the usual 10. After the call has been crashed it's no longer possible to establish a new call.

Asterisk doesn't respond to the "stop now" command either, so the only way to resolve the problem is to do a 'kill -9' on the asterisk process and restart it.

The problem has occurred on both nodes, but it seems to be the called node that's most likely to crash. However the calling node can also crash.

The problem has occurred regardless of if the phones connected were SIP phones or ZAP phones, so this has led me to strongly suspect the IAX2 protocol.

Reverting to Asterisk 1.4.20 resolved the problem.


****** ADDITIONAL INFORMATION ******

IAX2 configuration:
-----
[general]
bindport=4569
bindaddr=0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes
tos=ef

[SE]
type=user
secret=****
qualify=4000
context=from-trunk
auth=plaintext

[US]
username=US
type=peer
secret=****
qualify=4000
peercontext=from-trunk
host=www.x3-c.com
context=from-trunk
auth=plaintext

-----
Comments:By: Nils Hammar (ehsnils) 2008-06-16 01:32:14

Sorry - seems to be a duplicate of 12795, but maybe this gives you additional info!

By: Joshua C. Colp (jcolp) 2008-06-16 06:52:46

Closed as this is a duplicate of 12795.