[asterisk-users] AGI: Not getting answers from get_data in a call-file call
Matt Riddell
matt at venturevoip.com
Sun Feb 3 21:08:58 CST 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Edwin Groothuis wrote:
> I have the following situation: I drop a call-file into the Asterisk
> spool directory and I get called back. That all works.
>
>
> And I have this script:
>
> #!/usr/bin/perl -w
>
> use Asterisk::AGI;
>
> my $AGI = new Asterisk::AGI;
> my %input = $AGI->ReadParse();
>
> $AGI->answer();
>
> my $i;
> $i = $AGI->channel_status();
> $AGI->say_digits($i);
>
> $i = $AGI->get_data("one-moment-please", 10000, 3);
> $AGI->say_digits($i);
>
>
> As you can see, nothing serious. When running this script in a
> normal telephone call, it works. When running this script in the
> call created with the call-file, I do hear the output of the first
> say_digits and the one-moment-please, but the pressing of the DTMF
> keys is not recognized by the system, the get_data() times out and
> the function returns nothing.
>
> This script once worked in 1.2.x (It was part of a bigger project)
> but now that I want to move it to 1.4 it gives this strange behaviour.
>
> Is there anybody with a hint on how to resolve this?
You'd need to show us:
a) The call file
b) the snippet of extensions.conf that this is called in
- --
Kind Regards,
Matt Riddell
Director
_______________________________________________
http://www.venturevoip.com (Great new VoIP end to end solution)
http://www.venturevoip.com/news.php (Daily Asterisk News - html)
http://www.venturevoip.com/newrssfeed.php (Daily Asterisk News - rss)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHpoHKDQNt8rg0Kp4RAskFAJ9T/K8gpl6HKa6mjRRNdm/r1MESGwCbBC4i
R0buf80sRINRhdUGZk0asPY=
=CmpE
-----END PGP SIGNATURE-----
More information about the asterisk-users
mailing list