![]() |
Stefan - The best way to do this kind of integration is to have hylafax execute a script upon the completion of the fax. This way you don't have to worry about checking to see if it is complete. The FaxRcvCmd option in the modem config file specifies a script to run on the fax completion. Usually you would use a copy of the faxrcvd script, and insert your code at the very end of that script. It can be as simple as copying or moving the tif file to a particular folder, or as sophisticated as converting it to a pdf, uploading it into your application along with details such as the fax number called, the modem it came in on, the TSI of the remote fax and the length and bitrate of the fax. The simplest change to your configuration would be to just put the following code at the end of the faxrcvd-custom script: mv $FILE /path/to/folder and then have your poller check that folder. You wont have to check to see if its complete, it wont be there until it is. -Siri Vias -----Original Message----- From: hylafax-users-bounce@xxxxxxxxxxx [mailto:hylafax-users-bounce@xxxxxxxxxxx] On Behalf Of Stefan Unterhofer Sent: Tuesday, August 12, 2008 6:58 AM To: hylafax-users@xxxxxxxxxxx Subject: [hylafax-users] How does hylafax write incoming faxes to the disk? Hello, I'm using hylafax in combination with a third-party client library to integrate it in my company's software. I'm polling the server for new faxes and download them, but, from time to time, the downloaded faxes are truncated, e.g. when I have a 9 page fax, I get only 2 pages. (The hylafax logs show that all pages of the fax have been received successfully) I tried to add a read delay, which takes the date provided by the LIST command on the server and checks if the date exists for more than X minutes (where X is the specified delay), but I still get truncated faxes. Can anyone please explain how hylafax writes the files to disk? Any Ideas how I can get my client to read only completed faxes? Or am I totally wrong? Thanks, Stefan Unterhofer ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx* ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*