[asterisk-bugs] [Asterisk 0017068]: AGI->wait_for_digit or AGI->exec('Read' do not report digits back on an outgoing call
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Apr 21 14:58:28 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17068
======================================================================
Reported By: xblurone
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17068
Category: Resources/res_agi
Reproducibility: always
Severity: minor
Priority: normal
Status: acknowledged
Asterisk Version: SVN
JIRA: SWP-1320
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1
SVN Revision (number only!): 253347
Request Review:
======================================================================
Date Submitted: 2010-03-21 05:35 CDT
Last Modified: 2010-04-21 14:58 CDT
======================================================================
Summary: AGI->wait_for_digit or AGI->exec('Read' do not
report digits back on an outgoing call
Description:
Hi,
I am using a callback conference solution which makes and outgoing call
which points to a perl AGI script (which used to work some versions of
asterisk ago). Now I am running the latest SVN (Asterisk
SVN-branch-1.6.1-r253347) and neither Read nor wait_for_digit give any
digits back on DAHDI channels, or SIP channels.
The same script has worked for a few years from version 1.4 onwards. I
can't remember when it stopped working however (sorry).
======================================================================
----------------------------------------------------------------------
(0120719) zsotya (reporter) - 2010-04-21 14:58
https://issues.asterisk.org/view.php?id=17068#c120719
----------------------------------------------------------------------
xblurone: sorry you right it is other thing.
I did some test and here is a hack what is not nice but working:
#!/usr/bin/perl
use Asterisk::AGI;
my $agi = new Asterisk::AGI;
$agi->exec('Read', 'myvar||5||2|10');
$myvar = $agi->get_variable('myvar');
$myvar = $agi->get_variable('myvar');
if ($myvar) {
$agi->exec('Swift', "\"This variable is set to $myvar\"");
$agi->exec('SayDigits', $myvar);
} else {
print "This variable could not be retrieved or was empty. HERE
IS".$agi->get_variable('myvar');
$a=$agi->get_variable('myvar');
print "THE A:".$a;
}
The important part is, you must double the $myvar =
$agi->get_variable('myvar');
Based on this example i hope you can do a workaround until the fix is
coming, and keep your customers.
Zsotya
Issue History
Date Modified Username Field Change
======================================================================
2010-04-21 14:58 zsotya Note Added: 0120719
======================================================================
More information about the asterisk-bugs
mailing list