Stopped getting FAX-2-PDF but no error messages were logged in Asterisk - but copying and pasting the actual command that Asterisk was trying to execute from the CLI gives the following:
PHP Fatal error: Call to undefined function gethostname() in /var/www/html/admin/modules/fax/bin/fax2mail.php on line 9
Here is what the code looked like:
$var[‘hostname’] = gethostname();
Here is what I changed it to:
$var[‘hostname’] = “asterisk.somebody.com”;
Don’t know why this was failing – here is the page that says the syntax is correct:
Anyways, hard-coding the host-name in the script fixes the problem, so if anyone else runs into this problem, here is the workaround.