[asterisk-bugs] [Asterisk 0013115]: could NOT get the channel lock

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Sep 8 20:38:36 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13115 
====================================================================== 
Reported By:                pj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13115
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 132312 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-07-20 07:13 CDT
Last Modified:              2008-09-08 20:38 CDT
====================================================================== 
Summary:                    could NOT get the channel lock
Description: 
Asterisk SVN-trunk-r132312 
I have lot of this error messages on CLI,
It seems, that it can be related to ilbc codec, because it happens mainly
when try to call echotest from xlite/eyebeam softphone with ilbc. 
When I tried same situation with gsm, it doesn't happened (or only
sporadically).


[Jul 20 14:13:17] ERROR[5827]: chan_sip.c:18837 handle_request_do: We
could NOT get the channel lock for SIP/324-083ae4e0!
[Jul 20 14:13:17] ERROR[5827]: chan_sip.c:18838 handle_request_do: SIP
transaction failed: YzcyMGFkMTgyNGNiMTRlMGFhNThkNTBkYjU0Y2FmMGY.
[Jul 20 14:13:18] ERROR[5827]: chan_sip.c:18837 handle_request_do: We
could NOT get the channel lock for SIP/324-083ae4e0!
[Jul 20 14:13:18] ERROR[5827]: chan_sip.c:18838 handle_request_do: SIP
transaction failed: YzcyMGFkMTgyNGNiMTRlMGFhNThkNTBkYjU0Y2FmMGY.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0013287 200 OK retransmitted even when first SI...
has duplicate       0013419 Can't get lock in sip to sip calls
====================================================================== 

---------------------------------------------------------------------- 
 (0092207) svnbot (reporter) - 2008-09-08 20:38
 http://bugs.digium.com/view.php?id=13115#c92207 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 141949

U   trunk/main/channel.c

------------------------------------------------------------------------
r141949 | russell | 2008-09-08 20:38:31 -0500 (Mon, 08 Sep 2008) | 9 lines

Modify ast_answer() to not hold the channel lock while calling
ast_safe_sleep()
or when calling ast_waitfor().  These are inappropriate times to hold the
channel
lock.  This is what has caused "could not get the channel lock" messages
from
chan_sip and has likely caused a negative impact on performance results of
SIP
in Asterisk 1.6.  Thanks to file for pointing out this section of code.

(closes issue http://bugs.digium.com/view.php?id=13287)
(closes issue http://bugs.digium.com/view.php?id=13115)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-08 20:38 svnbot         Checkin                                      
2008-09-08 20:38 svnbot         Note Added: 0092207                          
======================================================================




More information about the asterisk-bugs mailing list