ReceiveFax and multiple pages
Tags: application, asterisk, file, page, page fax, STRFTIME, success message, tiff file
I’m using asterisk 1.8.7.0 and fax for asterisk
I’m receiving a multi page fax using the ReceiveFax application with the
d and f options.
The fax is being written as a tiff file but only the first page of the
fax is in the tiff file
The asterisk server knows there are multiple files in the fax as can be
seen by the success message
FAX session ’8′ is complete, result: ‘SUCCESS’ (FAX_SUCCESS), error:
‘NO_ERROR’, pages: 2, resolution: ’204×98′, transfer rate: ’14400′,
remoteSID: ‘XXXXXXXXXXX’
Here’s the part of the dial plan that receives the fax
exten => s,1,Answer()
exten => s,n,Wait(10)
exten => s,n,Set(FAXFILE=/tmp/fax-${CALLERID(num)}-${STRFTIME(${EPOCH},,
%Y%m%d-%H%M%S)}.tiff)
exten => s,n,ReceiveFAX(${FAXFILE},df)
Am I missing something obvious?
Thanks
Ish