We are currently using get data only.We are using as below
$res = $agi->stream_file($voice_menus.'/anyblog_id');fflush($agi->out); // Voice menu which asks for a 4 digit id to be entered
$result = $agi->get_data('beep',8000,4); // Get data gets the 4 digit id after the beep.
But the get data takes the data after the playback is finished,Here in this case the playback cannot be interrupted.
I want to get the data during the playback of the voice menu only.
How to do this?