* You are viewing Posts Tagged ‘page fax’

ReceiveFax and multiple pages

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

“Unexpected command after page received…”

I’m setting up res_fax to use with an iax provider. I’m calling over
PSTN to the provider. When I stand at our fax machine (Brother), I can
see the call come in, and it appears to set up correctly. What is odd,
however, is that asterisk drops off while the fax machine is still
sending. I’ve lowered the baud rate to 9600, it’s a single page fax.
After less than 10 seconds asterisk stops receiving the fax, but the
machine continues sending for another 20 seconds or so.

ReceiveFAX(“IAX2/FaxIAX-4579″,
“/var/spool/asterisk/fax/20120317_1820.tif,df”) in new stack