GET DATA always returns timeout

Hi,

I’m calling GET DATA from my Perl AGI Script - it plays the audio file, but does not return the DTMF code entered by the user. No matter what key I press, it always times out. Even pressing # seems to have no effect.

Any pointers as to why it is happening? Rest of the AGI script works fine.

Here’s my code


my $filename = "welcome.sln"; #Audio File
my $timeout = 6000;
my $maxdigits = 1;

print "GET DATA $filename $timeout $maxdigits \n";
my $result = <STDIN>;
WriteLog($result);   #Function which writes the $result to a log file

Output (irrespective of the key press) : 200 (timeout)

dtmfmode mismatch.

Thanks David. I am facing a strange issue with DTMF input on my IVR system. There is a GET DATA command in my AGI script like this:

my $filename = "welcome.sln"; #Audio File
my $timeout = 6000;
my $maxdigits = 1;

print "GET DATA $filename $timeout $maxdigits \n";
my $result = <STDIN>;
WriteLog($result);   #Function which writes the $result to a log file

In “most” cases, GET DATA returns the correct DTMF code pressed by the user. However, there are cases where GET DATA does not receive the DTMF input pressed by the user at all.

I dont suspect it to be a problem with DTMFMODE because it is happening in very few cases. Can anyone please suggest what the issue might be?