Error while sending fax from asterisk using spandsp

Hi,

I am trying to send a fax from Asterisk, but when sending a particular TIFF file converted from a PDF, it is not working. The error:

Spawn extension (send-fax, s, 2) exited non-zero on 'PJSIP/sipcore-000008bb'

is thrown by Asterisk, and the call ends with a normal clearing (16) status.

The file I sent was converted from a PDF to a TIFF using Ghostscript.

Could you please help me with this issue?
I have attached a sample files below.
index-file.zip (202.2 KB)

Logs? (/var/log/asterisk/full, enabled, verbosity at least 3, and pjsip set logger on active.)

I wold expect exitted non-zero to mean that the caller had terminated the call.

But when I changed the PDF to letter size and converted it to TIFF, it worked perfectly. Is there any restriction on the PDF size for sending a fax? If yes, what are the size limits?