This is probably one of the “simple” answers, if you already know the answer…
I am using phpagi and trying to stream a file in a subdirectory of asterisk/sounds (e.g. asterisk/sounds/tts). The file (tts-foo.wav) exists, is owned by Asterisk, and has rw permissions for everybody. If i move it to the asterisk/sounds directory (and adjust stream_file parameter accordingly), the file plays. However, sitting in the subdirectory, it DOESN’T play.
here’s my code:
here’s the CLI output:
AGI Rx << STREAM FILE tts/tts-foo “#” 0
AGI Tx >> 200 result=0 endpos=0
what’s the correct answer?