On Sat, Feb 25, 2006 at 11:24:36PM +0100, Thomas Artner wrote:
> Am Saturday 25 February 2006 22:59 schrieb Anton Krall:
> > I cant get faxes right now with tdm, something is wrong but, what do I need
> > to have in order to convert from tiff to pdf?
> >
> > I have the mailfax script that invokes tif2ps and ps2pdf but pages come out
> > blank..
> >
>
>
> I do the following:
>
> exten => fax,1,Set(FAXFILE=/var/spool/asterisk-fax/${UNIQUEID})
> exten => fax,2,rxfax(${FAXFILE})
> exten => fax,3,system(tiff2pdf ${FAXFILE} > ${FAXFILE}.pdf)
> exten => fax,4,system(mpack -s "received Fax" -c application/octet-stream
> ${FAXFILE}.pdf [EMAIL PROTECTED])
>
If you give the mime type explicitly, give a correct one, so the user
can know what program to use.
For a PDF file, use: application/pdf
This will make properly-configured mailers launch a PDF reader.
Example command-line mailers that can give PDF files a proper mime type:
mutt -a ${FAXFILE}.pdf -s "your fax" [EMAIL PROTECTED] </dev/null
biabam ${FAXFILE}.pdf -s "your fax" [EMAIL PROTECTED]
(biabam is a nice little bash script)
--
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il | | a Mutt's
[EMAIL PROTECTED] | | best
ICQ# 16849755 | | friend
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users