tags:

views:

114

answers:

1

hello everyone,

I am writing an Perl AGI script where I convert a text into an audio file and play back this audio file using the following:

$AGI->exec("Background", "$filename");

I want the user to be able to press 0 to hang up the call. That is, I need to make the AGI listen for digits entered by the user and act accordingly. A kind person suggested earlier to call WaitExten() from within AGI script but I dont know how to get the exact digit pressed by the user. I would really appreciate it if you could help me out in this.

Thanks,

A: 

Per a previous question, it sounds like you may want to use get_data instead.

ysth