Outgoing Fax Issue

Hello,

Having a strange issue on a install running freepbx 17 on debian. Fax Pro module is licensed and on.

I can receive faxes perfectly fine but when sending a fax I get the following error:

“TIFF/F file cannot be opened”

I have ran fwconsole chown and this had no effect.

Has been working fine until past few days.

I did recently run apt-get update && upgrade not sure if that did something with an update?

Any Ideas?

Thanks,

1 Like

Are all FreePBX modules up to date?

yes, ran fwconsole ma updateall around same time as debian updates

1 Like

Interesting. I am not a FreePBX expert, so I am not 100% sure, but I’m sure somebody else will hop on this conversation soon. (within a day)

I assume it is already there but just in case:

sudo apt update
sudo apt install ghostscript

If something installed/updated, stop here and retry.
Otherwise try by hand…

gs -sDEVICE=tiffg4 -r300 -sOutputFile=output.tif yourfile.pdf

See if it outputs any errors. Also see if the file that isn’t working is on the system and if it gives any clues. Likely in /var/spool/asterisk/fax/

I don’t know if it logs or not but may be worth

grep "ghostscript" /var/log/asterisk/full
grep "ghostscript" /var/log/asterisk/freepbx.log

I will say if you google the error it has happened to many folks over the years and it is often an issue with permissions or the pdf. You may also try a different pdf, a single page pdf if this has multiple pages. A smaller size pdf. Make sure if you are generating a cover page, the cover page size matches the pdf paper size such as A4 or us-letter etc.

2 Likes

maybe

gs -sDEVICE=tiffg3 -r300 -sOutputFile=output.tif yourfile.pdf

is safer ?

ghostscript is already the newest version (10.0.0~dfsg-11+deb12u7).

Trying other things now

uninstalled and reinstalled modules now it appears to be working no idea what happened

both the fax config module and fax pro

1 Like