Subject: | BUG WITH DeadAGI after hangup 1.6.2.x |
Date: | Tue, 24 Aug 2010 02:54:39 +0300 |
To: | bug-asterisk-perl [...] rt.cpan.org |
From: | alexander merkulov <arheops [...] gmail.com> |
PRIORITY: BUG, above avg.
* Distribution name and version (For example, "DBIx-SearchBuilder-0.46")
AGI.pm, latest by cpan
* Perl version (Find this by running the command perl -v)
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.18-53.el5, archname=x86_64-linux-thread-multi
from Centos 5.5 , but also same on other versions.
* Operating System vendor and version (Find this by running the
command uname -a)
any
* Details about your operating environment that might be related
to the issue being described
asterisk 1.6.2.x. on asterisk 1.6.1 work without problem.
* The shortest, clearest code you can manage to write which
reproduces the bug described.
tested wiht fastagi DeadAGI script, but think same will be with AGI (not fast)
create DeadAGI script like
# something like read/stream here, hangup when execution on this step
# on hangup it give result=-1
$a=$agi->get_full_variable('VAR1'); # this one will be empty on exec (null)
$b=$agi->get_full_variable('VAR2'); # this one will be VALUE OF VAR1 !!!!!
$b=$agi->get_full_variable('VAR3'); # this one will be VALUE OF VAR2 !!!!!
* A patch against the latest released version of this distribution
which fixes this bug.
sorry, i not found where it is. but probably need to clear read stream
debug looks same on 1.6.1 and 1.6.2... but on 1.6.2.x it not worked(
as a result of such bug unabel to use code on 1.6.2, have to downgrade to 1.6.1
--
Merkulov Alexander
u can see my feedback at
http://arheops.elance.com/
http://www.getafreelancer.com/users/385837.html