is the channel already open? try $AGI->answer();.

marcus

On Monday 24 July 2006 12:28, Martin Schrott - Thinking-Systems wrote:
> Hi list,
>
> Hope anybody here can help me. I tryed and searched hours after hours but
> did not find an explanation for this problem:
> In the script below I try to get some dtmf information from the caller. But
> the script does not react when reaching maxlengtht. It waits till the
> timeout is reached and does not recognize any tones.
> Is there a error in the script, or where could my problem be?
>
> Thank you for your help, I am new to asterisk::agi so please understand.
> ;-)
>
> Thank you all,
>
> Martin
>
> www.thinking-systems.eu
> ENUM +43 780 34267345
>
> Start scripting:
> use Asterisk::AGI;
> $AGI = new Asterisk::AGI;
> #Get the initial data
> my %input = $AGI->ReadParse();
> #Start AGI:
> $AGI->stream_file('call');
> my $eingabe = $AGI->get_data('invalid', 10000, 1);
> $AGI->say_digits($eingabe);
> $AGI->hangup();
> exit;
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to