[asterisk-bugs] [Asterisk 0012656]: [patch] Autoservice loses DTMF digits

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 21 09:51:31 CDT 2008


The following issue has been set as RELATED TO issue 0012658. 
====================================================================== 
http://bugs.digium.com/view.php?id=12656 
====================================================================== 
Reported By:                dimas
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   12656
Category:                   Core/PBX
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 116466 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             05-15-2008 05:24 CDT
Last Modified:              05-29-2008 17:25 CDT
====================================================================== 
Summary:                    [patch] Autoservice loses DTMF digits
Description: 
There is a problem with how autoservice handles its internal list of
channels. Basically:

1. it traverses the asent list and copies all the channels from the list
into an array
2. it waitfor on this array
3. if anything was received, it traverses the asent list again to map
channel back to AS entry (in order to queue received frame there)

autoservice_stop removes a channel from the list and waits when list
version updates (to make sure AS thread does not need this channel
anymore). The problem occurs when autoservice_stop is called between 1 and
3. The channel may be _already_ in the waitfor call when removed from the
list. So when AS thread returns from ast_waitfor/ast_read it fails finfing
this channel in the list and just discards the frame received.

in my setup this causes sometimes DTMFs to be lost.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0012658 [patch] DTMF issues on Zap
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-21-08 09:51  murf           Relationship added       related to 0012658  
======================================================================




More information about the asterisk-bugs mailing list