[Asterisk-Users] Fax to email problem
Chris Blake
chris at pixcel.co.za
Thu Apr 7 07:43:16 MST 2005
Greetings *`s,
I am trying to get faxes rec`d by * to be passed over to an email
address, and although the fax is being rec`d, it is not being
transmitted to the email address :
Here is the bit from extensions.conf :
=====================
[ext-fax]
exten => in_fax,1,GotoIf($[${FAX_RX} = system]?2:analog_fax,1)
exten => in_fax,2,Macro(faxreceive)
exten => in_fax,3,system(tiff2ps -2eaz -w 8.5 -h 11 ${FAXFILE} | ps2pdf
- ${FAXFILE}.pdf)
exten => in_fax,4,system(mime-construct --to ${EMAILADDR} --subject "Fax
from ${CALLERIDNUM} ${CALLERIDNAME}" --attachment ${CALLERIDNUM}.pdf
--type application/pdf --file ${FAXFILE}.pdf)
exten => in_fax,5,system(rm ${FAXFILE} ${FAXFILE}.pdf)
exten => in_fax,6,Hangup
exten => analog_fax,1,GotoIf($[${FAX_RX} = disabled]?3:2) ;if fax is
disabled, just hang up
exten => analog_fax,2,Dial(${FAX_RX},20,d)
exten => analog_fax,3,Hangup
;exten => out_fax,1,wait(7)
exten => out_fax,1,txfax(${TXFAX_NAME}|caller)
exten => out_fax,2,Hangup
exten => h,1,Hangup()
====================
My log file (/var/log/asterisk/full) is stating the following :
Apr 7 18:07:24 VERBOSE[2078]: -- Executing System("Zap/4-1",
"mime-construct --to support at wherever.co.za --subject "Fax from 0 "
--attachment 0.pdf --type application/pdf --file
/var/spool/asterisk/fax/1112889947.49.tif.pdf") in new stack
Apr 7 18:07:24 WARNING[2078]: Unable to execute 'mime-construct --to
support at wherever.co.za --subject "Fax from 0 " --attachment 0.pdf --type
application/pdf --file /var/spool/asterisk/fax/1112889947.49.tif.pdf'
-----------------------------------
I have looked at the sample construct for this in
http://www.voip-info.org/wiki-Asterisk+Fax and all appears to be ok.
Also, the fax when viewed with acroread (.pdf)or eog (.tif) is only half
completed, in some cases totally unreadable. I am assuming this may have
something to do with the fax bitrate, but I can`t see where/how I can
set this variable. I have looked at apps_rxfax.c, the various conf files
in /etc/asterisk, but have not found anything yet.
Still gooooooogling...but if anyone has any ideas/hints I would
appreciate them.
Regards
--
Chris Blake
Cell: 082 775 1492
Work: +27 11 782 0840
Fax : +27 11 782 0841
Mail: chris at pixcel.co.za
The difference between reality and unreality is that reality has so
little to recommend it. -- Allan Sherman
More information about the asterisk-users
mailing list