I use pagi framework for AGI application. The framework can be found here:
http://phpagi.sourceforge.net/
The problem is in my php code:
$agi = new AGI();
$IDuser = (string) $agi->parse_callerid()[‘username’];
$agi->answer();
$agi->stream_file(‘im-sorry’); // First stream_file that does not work
$agi->stream_file(‘hello’);
The stream_file(‘im-sorry’) does not work. I have tested this, whatever stream_file I put after “$agi->answer();”, it will not work. Immediately after this first stream file, everything works successfully. I have no idea why the first stream_file(iam sorry) after “$agi->answer();” does not work.
Thank you in advance.