[asterisk-bugs] [Asterisk 0011071]: No audio on calls into queues with non-persistent agents

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Oct 25 12:08:43 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11071 
====================================================================== 
Reported By:                callguy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11071
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-23-2007 16:04 CDT
Last Modified:              10-25-2007 12:08 CDT
====================================================================== 
Summary:                    No audio on calls into queues with non-persistent
agents
Description: 
For any version of asterisk >1.4.12 when using queues with agent
logon/logoff no audio passes on the call. From other reports it seems that
something committed from bug 10406 may have contributed to this, but it's
unclear.

This is 100% reproducible. I have attached relevant console output,
dialplan snippet, and queues.conf. Also of note is that rtp debug shows
that the stream is in-fact being passed.

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

---------------------------------------------------------------------- 
 callguy - 10-25-07 12:08  
---------------------------------------------------------------------- 
This code was added to channel.c (line 2208 in 1.4.12 with the patch from
bug 10406).

        /* Check if there's an underlying channel */
/*      if (chan->tech->get_base_channel && (base =
chan->tech->get_base_channel(chan)) != chan) {
                int count = 0;
                while (!base || ast_mutex_trylock(&base->lock)) {
                        if (count++ > 10) {
                                f = &ast_null_frame;
                                goto done;
                        }
                        ast_mutex_unlock(&chan->lock);
                        usleep(1);
                        ast_mutex_lock(&chan->lock);
                        base = chan->tech->get_base_channel(chan);
                }
                ast_mutex_unlock(&chan->lock);
                chan = base;
        }
*/      

Commenting this out gets audio to return to the queue. It seems this code
was just added, there was no similar check beforehand. We've tried adding a
longer wait to get a lock, but regardless there is no audio. Commenting
this out and audio works both directions without issue. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-25-07 12:08  callguy        Note Added: 0072511                          
======================================================================




More information about the asterisk-bugs mailing list