[asterisk-bugs] [Asterisk 0014069]: too small reponse for dbget through agi
Asterisk Bug Tracker
noreply at bugs.digium.com
Sun Dec 14 01:00:07 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14069
======================================================================
Reported By: evandro
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 14069
Category: Resources/res_agi
Reproducibility: N/A
Severity: feature
Priority: normal
Status: acknowledged
Asterisk Version: 1.4.21.2
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-12-12 11:22 CST
Last Modified: 2008-12-14 01:00 CST
======================================================================
Summary: too small reponse for dbget through agi
Description:
I'm using agi to get persistent members in queues, but the response in some
cases come incomplete, when have too many members in queue. I changed the
size of char tmp variable from 256 to 1024 on res/res_agi.c file, and fixed
this issue in a sample test. But I want to know, this change can cause
problems??
I also would suggest that this changed to be applied in asterisk and
asterisk CLI.
======================================================================
----------------------------------------------------------------------
(0096364) Corydon76 (administrator) - 2008-12-14 01:00
http://bugs.digium.com/view.php?id=14069#c96364
----------------------------------------------------------------------
I'd go with this patch, instead. Unfortunately, simply increasing the size
of a static buffer can get us into trouble, especially for people who call
AGI within several layers of Macro. This patch dynamically allocates space
on the heap and automatically grows to the appropriate size for the buffer.
In trunk (1.6.0 and later), we have a much better system for dynamically
allocating space for string management, but this change will work fine for
1.4.
Issue History
Date Modified Username Field Change
======================================================================
2008-12-14 01:00 Corydon76 Note Added: 0096364
======================================================================
More information about the asterisk-bugs
mailing list