Jesse Guardiani wrote:
Thank you for you time to help setting up fax. I still have some questions.
[macro-faxreceive] exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif) exten => s,2,DBGet(EMAILADDR=extensionemail/${MACRO_EXTEN}) exten => s,3,rxfax(${FAXFILE}) exten => s,103,SetVar([EMAIL PROTECTED]) exten => s,104,Goto(3)
[fax] exten => 2201,1,Macro(faxreceive) exten => 2202,1,Macro(faxreceive) exten => 2203,1,Macro(faxreceive)
exten => h,1,system(/usr/local/sbin/mailfax ${FAXFILE} ${EMAILADDR} "${CALLERIDNUM} ${CALLERIDNAME}")
has the sender dial the extensions 2201 ~ 2203 ?
You said it would automatically go to [fax] if in zapata.conf is set faxdetect=both
If so, than we could use NO number, but "s" as extension, would that be right?
NOTE: asterisk automatically jumps to the [fax] context if you are using faxdetect in your zapata.conf
NOTE2: mailfax is a custom script I wrote. This is what it looks like:
---------------------- START mailfax script ------------------------------ #!/bin/sh
FAXFILE=$1 RECIPIENT=$2 FAXSENDER=$3 FAXID=`date +%j%H%M%S` tempfoo="fax" TMPFILE=`mktemp /tmp/${tempfoo}XXXXXX` TMPFILE_A=`mktemp /tmp/${tempfoo}XXXXXX`.pdf
/usr/bin/tiff2pdf -p letter "${FAXFILE}" > "${TMPFILE_A}" metasend -b -t "$RECIPIENT" -s "Fax from $FAXSENDER" \ -f "${TMPFILE}" -m 'text/plain' -n \ -m 'application/pdf;name="fax'${FAXID}'.pdf"' -f "${TMPFILE_A}" \ -D 'PDF Fax Document'
rm "${TMPFILE}" rm "${TMPFILE_A}" ---------------------- END mailfax script ------------------------------
I don't have found metasend on my system. Do you know where it is?
I based this config on the excellent information found at the following website: http://scottstuff.net/scott/archives/000152.html
At this web site I find also a line:
|*CLI> database put extensionemail 2202 [EMAIL PROTECTED]
How does that fit together with| macro-faxreceive,103 ???
This methode would cover the part of receiving a fax via a zap device, how to exend it to receive a fax from a remote gateway via G711?
bye
Ronald
_______________________________________________ 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
