[asterisk-bugs] [Asterisk 0016032]: [patch] AGI returns bogus "510 Invalid or unknown command"

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 18 09:41:29 CDT 2011


The issue 0019317 has been set as DUPLICATE OF the following issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16032 
====================================================================== 
Reported By:                notahat
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   16032
Category:                   Resources/res_agi
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 222530 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-10-06 21:19 CDT
Last Modified:              2011-05-18 09:41 CDT
====================================================================== 
Summary:                    [patch] AGI returns bogus "510 Invalid or unknown
command"
Description: 
When res_agi.c reads from the AGI stream, it incorrectly calculates the
number of free bytes remaining in the read buffer. In certain circumstances
(such as repeated EAGAIN errors from fgets), this causes it to incorrectly
interpret the buffer as full. That then confuses the code interpreting the
command, leading to a bogus "510 invalid or unknown command" error being
returned.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0019317 FastAGI looping when an error happens o...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-18 09:41 lmadsen        Relationship added       has duplicate 0019317
======================================================================




More information about the asterisk-bugs mailing list