I have a system where the call lands on a call flow script which is a php script that uses phpagi. The call flow script calls a shell script which uses sox to concate two real time generated audio file by the call flow.
ISSUE IS: The shell SCRIPT GETS EXECUTED WHEN RUN FROM TERMINAL command BUT when the call
flow is executed THROUGH PHONE CALL, THE SHELL script DO NOT run and hence no concatenated output.
In short, the shell script executes through terminal command BUT not through phone call.
I think David is suggesting to use the full path of both /bin/sh and /path/to/shell/script/concate.sh. Potentially also the full path to /var/lib/asterisk/agi-bin/phpagi.php.