I always use verbose a lot for debugging and never had any problem.

$AGI->exec("Playback","please-enter-your");
$AGI->exec("Playback","card-number");
my $pin= $AGI->get_data("then-press-pound", "10000", "13");


For get_data you dont need to put " 

my $pin= $AGI->get_data(then-press-pound, 10000, 13);


For the playback you can use stream_file

$AGI->stream_file(please-enter-your);


El lun, 22-11-2004 a las 10:14, duncan escribió:
> On Mon, 22 Nov 2004, Brian Wilkins wrote:
> >   I don't know if this is a problem with streaming files and playback, but I
> > have posted my code below and hopefully someone can give me a solution. The
> > script is supposed to play the file "Please enter your" then playback "card
> > number" and wait for data via DTMF from a device after the script plays back
> > "then press pound". However, the script does not wait and instead continues
> > on to the next portion of code. During the confirmation phase, where it asks
> > if this is the correct PIN number, if you press 2, you can hear the "Please
> > enter your" prior to the playing of the "card number" file. If I do press 
> > the
> > number 1, the script hangs up the channel. However, I want it to go and
> > validate the PIN while the user waits. Any suggestions? Thanks -
> 
> i had similar strange problems when using "" inside agi functions
> 
> always use '' and never use $agi->verbose (as this always gave me strange 
> behaviour as well).
> 
> hope this helps
> 
> 
> 
> 
> duncan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to