I added a MAILTO line and got an error that I had no permission to create a log file in /var/log so I changed that to /tmp and not I get an debug2.log output:
Edit: ‘not’ in the line above should be ‘now’.
/bin/sh: /var/lib/asterisk/agi-bin/trunk_check_registered.php: /usr/bin/php^M: bad interpreter: No such file or directory
I don’t understand this.
My php script starts with ‘#!/usr/bin/php’ and file ‘trunk_check_registered.php’ certainly exists in folder ‘/var/lib/asterisk/agi-bin’
Those are “control v” and “control m”. The “control v” tells vi that you want the next character to be inserted even if it is a control character. The “control m” will then be used as the “find” string. It will be replaced globally with nothing (deleted).