[Asterisk-Users] RxFax multiple pages

Adam Goryachev mailinglists at websitemanagers.com.au
Wed Oct 13 00:09:47 MST 2004


On Wed, 2004-10-13 at 17:00, Vladyslav wrote:
> Hi All.
> How to receive multiple pages with rxfax ?
> 
> Here is what I have:
> exten => 10,1,Setvar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
> exten => 10,2,Setvar(EMAILADDR=my at email.net)
> exten => 10,3,rxfax(${FAXFILE})
> exten => 10,4,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR}
> "${CALLERIDNUM} ${CALLERID}")
> 
> mailfax is a program that converts from tiff into jpeg and send a fax to
> my email.

Nope, this is your problem, you are converting from a image file format
which supports the concept of multiple pages to a image format which
doesn't. Your 'mailfax' program is throwing away all the images in the
pdf file except the last one. You should either not convert (IMHO, this
is not the best solution, as it is difficult to get a decent TIFF
viewer) or convert to another format which does support multiple pages
in a single file (think pdf).

Regards,
Adam





More information about the asterisk-users mailing list