[asterisk-bugs] [Asterisk 0017912]: ao2_t_callback of dialog_needdestroy is called every loop of do_monitor

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 8 18:25:03 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17912 
====================================================================== 
Reported By:                schmidts
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17912
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.6.2.11 
JIRA:                       SWP-2124 
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/825/ 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-25 10:05 CDT
Last Modified:              2010-09-08 18:25 CDT
====================================================================== 
Summary:                    ao2_t_callback of dialog_needdestroy is called every
loop of do_monitor
Description: 
the ao2_t_callback is fired in every loop of do_monitor which cause
asterisk to slow down if there are many open dialogs. I wrote a patch to
count up to 10 seconds and then launch the ao2_t_callback only once. the
time is only count between the start and end of ast_io_wait cause there is
a polling (waiting) done.
====================================================================== 

---------------------------------------------------------------------- 
 (0126762) schmidts (reporter) - 2010-09-08 18:25
 https://issues.asterisk.org/view.php?id=17912#c126762 
---------------------------------------------------------------------- 
i am now writing a patch to link all dialogs which are marked as
needdestroy into an own container and just iterate through this container.
speeds up the things a little bit and clean up the dialogs faster than
this patch above.
i only got one problem, the rtp_checktimeout function is also in this
dialogneeddestroy callback to check if there are dialogs with
rtpchecktimeout set. maybe i could use another container for this ;) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-08 18:25 schmidts       Note Added: 0126762                          
======================================================================




More information about the asterisk-bugs mailing list