[asterisk-bugs] [Asterisk 0019166]: AMI Action: Queuestatus + asterisk -rx "queue show" = no more calls sent to agents

Asterisk Bug Tracker noreply at bugs.digium.com
Tue May 3 12:48:32 CDT 2011


The following issue has been REOPENED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19166 
====================================================================== 
Reported By:                maxochoa
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19166
Category:                   Applications/app_queue
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.40 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-04-21 15:45 CDT
Last Modified:              2011-05-03 12:48 CDT
====================================================================== 
Summary:                    AMI Action: Queuestatus + asterisk -rx "queue show"
= no more calls sent to agents
Description: 
If an outside application sends AMI Action: Queuestatus and at the same
time asterisk -rx "queue show" is run, calls are no longer sent to agents.
With loglevel 3, the message

[Apr 21 15:28:58] ERROR[18863] utils.c: write() returned error: Broken
pipe

is logged (typically) equal to the number of lines of output that would
typically be sent as a result for the AMI Queuestatus.

'agent show online' will show the agents as idle, and 'show channels
verbose' shows new incoming calls in Application Queue.
====================================================================== 

---------------------------------------------------------------------- 
 (0134345) maxochoa (reporter) - 2011-05-03 12:48
 https://issues.asterisk.org/view.php?id=19166#c134345 
---------------------------------------------------------------------- 
Testing with less aggressive timeouts and eliminating network between hosts
produced the same results. Test scripts used:

queue-showloop.sh:
-----------------------
#!/bin/bash
x=0
while [ $x -lt 5000 ]
 do
        echo $x
        x=$[$x+1]
        asterisk -rx "queue show" | grep strat | grep default

        sleep 5
 done
-----------------------

ami-holdopen.sh:
-----------------------
#!/bin/sh

echo "open $1 5038"
sleep 1
echo "Action: Login"
echo "UserName: ami_peer"
echo "Secret: tester01"
echo
echo "Action: QueueStatus"
echo
sleep 1000
echo "Action: Logoff"
echo
sleep 1
-----------------------

(run using:)
./ami-holdopen.sh 127.0.0.1 | telnet > test-050311 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-03 12:48 maxochoa       Note Added: 0134345                          
2011-05-03 12:48 maxochoa       Status                   closed => new       
2011-05-03 12:48 maxochoa       Resolution               no change required =>
reopened
======================================================================




More information about the asterisk-bugs mailing list