[Asterisk-Users] Fax to email problem

Craig Guy cguy at bigpond.net.au
Thu Apr 7 11:23:54 MST 2005


As an initial troubleshoot, can you preserve the original .tiff file from
rxfax and see if it is being received correctly or corrupted to determine if
the issue is in related to asteriks or somewhere downstream in the fax
processing to email part.

Craig

----- Original Message ----- 
From: "Chris Blake" <chris at pixcel.co.za>
To: "Asterisk" <asterisk-users at lists.digium.com>
Sent: Thursday, April 07, 2005 10:43 PM
Subject: [Asterisk-Users] Fax to email problem


> 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
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list