[asterisk-bugs] [Asterisk 0018207]: [patch] Function LOCK doesn't wait for the lock as documented

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Nov 3 05:14:20 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18207 
====================================================================== 
Reported By:                corruptor
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18207
Category:                   Functions/func_lock
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.2.13 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-25 06:00 CDT
Last Modified:              2010-11-03 05:14 CDT
====================================================================== 
Summary:                    [patch] Function LOCK doesn't wait for the lock as
documented
Description: 
I am testing function LOCK and "core show function LOCK" says "LOCK will
wait for the lock to become availables". NOTE says it will only attempt to
lock for 3 seconds.
I've created simple dialplan and tested this function. LOCK doesn't wait
for 3 seconds. It just returnes '0' and contunues through the dialplan.
We have a spacial for checking availability of the lock TRYLOCK so I
assume LOCK has to wait and current behaviour is wrong.

====================================================================== 

---------------------------------------------------------------------- 
 (0128582) corruptor (reporter) - 2010-11-03 05:14
 https://issues.asterisk.org/view.php?id=18207#c128582 
---------------------------------------------------------------------- 
I've tested the patch. Now function works as expected.
Thank you. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-11-03 05:14 corruptor      Note Added: 0128582                          
======================================================================




More information about the asterisk-bugs mailing list