[asterisk-bugs] [Asterisk 0012940]: iax2 hangs with jitterbuffer or timestamps - after hang it does not accept calls

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jun 30 10:58:44 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12940 
====================================================================== 
Reported By:                -miniME-
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12940
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-27-2008 13:38 CDT
Last Modified:              06-30-2008 10:58 CDT
====================================================================== 
Summary:                    iax2 hangs with jitterbuffer or timestamps - after
hang it does not accept calls
Description: 
i have following setup :

nokia_sip_client A-----sip-----B  1.asterisk B------iax2--------C
2.asterisk

ip-addr A,B is public 
ip-addr C is private

1.asterisk (Asterisk 1.4.21 or 080626_asterisk 1.6beta) is only there to
accept calls to forward them to 2.asterisk (Asterisk
1.4.21-BRIstuffed-0.4.0-RC3a) via iax2

1.asterisk has ztdummy(rtc) and 2.asterisk has zaphfc as timing
(ztdummy(rtc) is also loaded )

both asterisk use 1000hz kernel timing 

here the problem:
- having on both asterisk turned on jitterbuffer (jb) and timestamps (ts)
or on both asterisk either only jb or ts 
- sip_client calls voicebox at 1.asterisk - 2.asterisk forwards call via
iax2 to 1.asterisk 
- call gets going - with dtmf and so on - i stress test a bit (push often
dtmf) to reproduce error
- after a while - nothing goes and the call gets closed via 1.asterisk
eventually 

problem solving:
- turn off jb AND ts
- on 1.asterisk works fine - i can reload chan_iax2
- on 2.asterisk reload chan_iax2 says - Soft unload failed, 'chan_iax2.so'
has use count 1 - only "killall -9 2.asterisk" helps !

see also debug log ...
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-30-08 10:58  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 126573

U   branches/1.4/include/asterisk/lock.h

------------------------------------------------------------------------
r126573 | russell | 2008-06-30 10:57:56 -0500 (Mon, 30 Jun 2008) | 10
lines

Fix a typo in the non-DEBUG_THREADS version of the recently added
DEADLOCK_AVOIDANCE()
macro.  This caused the lock to not actually be released, and as a result,
not
avoid deadlocks at all.  This resolves the issues reported in the last
while about
Asterisk locking up all over the place (and most commonly, in chan_iax2).

(closes issue http://bugs.digium.com/view.php?id=12927)
(closes issue http://bugs.digium.com/view.php?id=12940)
(closes issue http://bugs.digium.com/view.php?id=12925)
(potentially closes others ...)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=126573 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-30-08 10:58  svnbot         Checkin                                      
06-30-08 10:58  svnbot         Note Added: 0089435                          
======================================================================




More information about the asterisk-bugs mailing list