End recording with record in phpagi

Hi all
Am using the code below in phpagi to record and want to ensure that user to press any key when done to end the call and if silence is detected for 3 seconds call to also end. non of these is ending the recording. The one i need most is the key press to end the recording.

$agi->exec(‘Record’,"/var/lib/asterisk/agi-bin/record_$callerID.wav",3,25,‘y’);

Anything wrong with the code or syntax?

(Please post snippets with preformatted text tags (’</>’) so the forum doesn’t mung special characters or formatting.)

What happens when you try it?

Any particular reason you’re not using $agi->record_file()?

I was using record_file before but i did not notice that it also has escape digits, I just notice that now and am using it.
Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.