[asterisk-bugs] [Asterisk 0016455]: [patch] Manager hooks don't execute if there aren't any manager sessions

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 28 16:37:17 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16455 
====================================================================== 
Reported By:                atis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16455
Category:                   Core/ManagerInterface
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     confirmed
Target Version:             1.6.0.22
Asterisk Version:           SVN 
JIRA:                       SWP-560 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-12-16 11:27 CST
Last Modified:              2010-01-28 16:37 CST
====================================================================== 
Summary:                    [patch] Manager hooks don't execute if there aren't
any manager sessions
Description: 
I propose to add simple variable to count manager hooks.

Two sample patches attached, not sure which would be best.

All 1.6.x branches affected.
====================================================================== 

---------------------------------------------------------------------- 
 (0117339) svnbot (reporter) - 2010-01-28 16:37
 https://issues.asterisk.org/view.php?id=16455#c117339 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 243986

U   trunk/main/manager.c

------------------------------------------------------------------------
r243986 | jpeeler | 2010-01-28 16:37:16 -0600 (Thu, 28 Jan 2010) | 10
lines

Optimization to manager events.

When potentially sending manager events, return immediately if there are
no
sessions or hooks. Also, avoid locking the hooks list if it is empty.

(issue https://issues.asterisk.org/view.php?id=16455)
Reported by: atis
Patches: 
      manager_hooks_trunk.patch uploaded by atis (license 242)

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-28 16:37 svnbot         Note Added: 0117339                          
======================================================================




More information about the asterisk-bugs mailing list