[asterisk-bugs] [Asterisk 0012266]: problem with autoservice

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Mar 20 18:09:47 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12266 
====================================================================== 
Reported By:                dimas
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12266
Category:                   Core-General
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             03-20-2008 11:40 CDT
Last Modified:              03-20-2008 18:09 CDT
====================================================================== 
Summary:                    problem with autoservice
Description: 
The ast_autoservice_stop methods waits while channel list version
(as_chan_list_state) changes before exiting. This is to make sure channel
we are removing is not in the list which autoservice_run processes
anymore.

he problem is that this wayt can last as long as 500 ms during which
channel is not serviced at all. So on Zap channels voice frames are lost
and DTMF detector misses digits.

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

---------------------------------------------------------------------- 
 svnbot - 03-20-08 18:09  
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 110395

U   branches/1.4/main/autoservice.c

------------------------------------------------------------------------
r110395 | russell | 2008-03-20 18:09:45 -0500 (Thu, 20 Mar 2008) | 9 lines

Shorten the ast_waitfor() timeout from 500 ms to 50 ms in the autoservice
thread.
This really should not make a difference except in very rare cases.  That
case would
be that all of the channels in autoservice are not generating any frames. 
In that
case, this change reduces the potential amount of time that a thread waits
in
ast_autoservice_stop() for the autoservice thread to wrap back around to
the beginning
of its loop.

(closes issue http://bugs.digium.com/view.php?id=12266, reported by dimas)

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-20-08 18:09  svnbot         Checkin                                      
03-20-08 18:09  svnbot         Note Added: 0084372                          
03-20-08 18:09  svnbot         Status                   new => assigned     
03-20-08 18:09  svnbot         Assigned To               => russell         
======================================================================




More information about the asterisk-bugs mailing list