FreePBX uses fax-process.pl to execute a script converting the TIF files from a fax receipt to a PDF and emailing it to the user. In 1.6.2.2 the command always fails. It appears that ast_safe_system is returning a -1 and it isn’t clear on the reason. I’ve copied the command in the log and pasted it to the asterisk command line prefixed by a ! and it ran without issue. I’ve removed the email address and phone numbers to protect the innocent! Any suggestions?
The log reports:
[Feb 12 12:51:06] VERBOSE[7926] pbx.c: – Executing [h@ext-fax:2] ^[[1;36mExecIf^[[0m("^[[1;35mSIP/DefaultOut-00000002^[[0m", “^[[1;35m1?system(’/var/lib/asterisk/bin/fax-process.pl --to email-removed --from “email-removed” --dest “num-removed*” --subject “New fax from num-removed” --attachment fax_num-removed.pdf --type application/pdf --file /var/spool/asterisk/fax/1266004233.2.tif’)^[[0m”) in new stack
WARNING[7926] app_system.c: Unable to execute ‘’/var/lib/asterisk/bin/fax-process.pl --to email-removed --from email-removed --dest num-removed --subject New fax from num-removed --attachment fax_num-removed.pdf --type application/pdf --file /var/spool/asterisk/fax/1266004233.2.tif’’