Vlad,

That's because jpeg does not support multiple pages. Use pdf instead:

#!/bin/sh
FAXFILE=$1
RECIPIENT=$2
FAXSENDER=$3
/usr/local/bin/tiff2pdf $FAXFILE | mime-construct --to $RECIPIENT --subject "Fax from $FAXSENDER" --attachment fax.pdf --type application/pdf --header "From: [EMAIL PROTECTED]" --file -


If your tiff distribution does not have tiff2pdf, you could combine tiff2ps and ps2pdf (install ghostscript).

Joris.


On Oct 13, 2004, at 9:00 AM, 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([EMAIL PROTECTED])
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.


When multiple pages were sent I received only the last one.
On the asterisk console I could see that second page is using the same
file name as the first one ( and this is a problem I think).

Does anyone have a success with that ?
--
Best regards
Vlad

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to