Asterisk DTMF Get value

Hi ,

I have developed Asterisk DTMF using phpagi . i am having the issue is every DTMF value getting after the audio file played . i need to get the DTMF value during audio file playing time.

My Code is

$result = $agi->get_data(‘beep’,2000,1);
$card_type = $result[‘result’];

Please help me on this


You need to identify if the DTMF issue is a problem with the PHPAGI code or another problem.
Enable AGI debug, also DTMF debug on your the log file. Test the DTMF getting the value directly from the dial plan to make sure it works