Skip Menu |

This queue is for tickets about the asterisk-perl CPAN distribution.

Report information
The Basics
Id: 23908
Status: resolved
Priority: 0/
Queue: asterisk-perl

People
Owner: Nobody in particular
Requestors: cpan [...] foss.daxal.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: $agi->wait_for_digit(3000) returns "1" w/o waiting
Date: Tue, 12 Dec 2006 19:53:13 -0600
To: bug-asterisk-perl [...] rt.cpan.org
From: "Scott Edwards" <cpan [...] foss.daxal.com>
Using perl 5.4.8 on Debian Sarge. libasterisk-perl is 0.09-1 asterisk is 1.2.10 It doesn't seem to matter what I press, or not, either a few seconds before, or nearly just before the call is made, I always get a return value of 1. $rc is preset to -2 so I can distinguish if $rc ever got touched. Eg: my $rc = -2; $rc = $agi->wait_for_digit(3000); $agi->verbose(__LINE__.": rc:$rc",1); Thanks, Scott.
I did some testing and I could not get wait_for_digit to return 1 at all. If the call comes in via SIP with the dtmf mode not set correctly it would return 0. If the call comes in via a ZAP channel and the channel is not answered before trying the wait_for_digit it returns - 1. I also tested with a SIP call with the dtmf mode set correctly and a ZAP call after answering and it worked as expected. The Asterisk::AGI perl module really has very little to do with actually handling the data, if there is a problem like this it will be with asterisk itself or the setup. James On Tue Dec 12 20:53:48 2006, SUPAPLEX wrote: Show quoted text
> > Using perl 5.4.8 on Debian Sarge. > > libasterisk-perl is 0.09-1 > asterisk is 1.2.10 > > It doesn't seem to matter what I press, or not, either a few seconds > before, > or nearly just before the call is made, I always get a return value of > 1. > $rc is preset to -2 so I can distinguish if $rc ever got touched. > > Eg: > > my $rc = -2; > > $rc = $agi->wait_for_digit(3000); > > $agi->verbose(__LINE__.": rc:$rc",1); > > Thanks, > > > Scott. >
No additional information and problem appears to be unrelated to module