HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] faxrcvd script



Hi

I am trying to replace the faxrcvd script with a very simple script
written in PHP.

If I call the PHP script from the commandline with the arguments
passed by the fax server reported in syslog then it works. However
when a fax is received even though syslog reports its called the
script nothing happens.

Here is the line from the syslog

Oct 21 12:54:07 ivr FaxGetty[28048]: RECV FAX: bin/faxrcvd "recvq/
fax000000005.tif" "ttyIAX" "000000040" "" "1952291631" "<NONE>"
"<NONE>" "431912"

Here is the PHP faxrcvd script

#!/usr/bin/php -q
<?
exec("/bin/echo \"test\" | /usr/bin/mutt -a /var/spool/hylafax/" .
$argv[1] . " -s \"Fax Recevied\" em...@domain.com");
?>

Any ideas anyone?

Thanks

Jon


Project hosted by iFAX Solutions