I am trying to write a front-end for sending faxes in PHP. I want to know how can I get the status of a fax job.
When the user sent a fax, how can I report the status of the job to the user ? In case when the destination line was busy, unreachable, etc.
Is there any log file or a command that contains the status of a specific fax job which is transfer-able to the front-end ? So I can report back the success/failed message to user.
I know about
faxstat -d, but it's a report for all jobs and i can't fetch that on php side.
As you can see the format of output is not something that can be parsed easily.
Just for reference, here is the list of all status codes.
I had a look at Hylafax's documentation but couldn't find anything on how to trace a job status.