Hi Guys,

I would like to know how to store fax received from different people using Digium Fax for asterisk. Indeed, what I see, any fax received is stored in /home/username/faxin directory in .tiff format always with the same name : rx-faxin.tif which can be arased when receiving another fax.
With digium fax for asterisk, how to save several fax in the same /home/username/faxin directory to avoid to have them erased. What script I can use for fax notification by email, as soon as a fax is received.

Thanks for your help.


You could use something like this
’fax’ => 1. Set(GLOBAL(CALLERIDNUM)=${STRFTIME(${EPOCH}||%y%m%s)}) [pbx_config]
2. Set(GLOBAL(FAXFILE)=/var/spool/asterisk/fax/${CALLERIDNUM}.tif) [pbx_config]
3. Verbose(Write Fax) [pbx_config]
4. Set(GLOBAL(FAXFILENOEXT)=/var/spool/asterisk/fax/${CALLERIDNUM}) [pbx_config]
5. Set(FAXOPT(filename)=${FAXFILE}) [pbx_config]
6. Set(FAXOPT(ecm)=yes) [pbx_config]
7. Set(FAXOPT(headerinfo)=MY FAXBACK RX) [pbx_config]
8. Set(FAXOPT(localstationid)=12345) [pbx_config]
9. Set(FAXOPT(minrate)=2400) [pbx_config]
10. Set(FAXOPT(maxrate)=14400) [pbx_config]
11. NoOp(FAXOPT(ecm) : ${(FAXOPT(ecm)}) [pbx_config]
12. ReceiveFax(${FAXFILE}|ds) [pbx_config]
13. System(/usr/bin/fax2mail -t -f ${CALLERIDNUM} “${CALLERIDNAME}” 2054029995 RecipName danny@debsinc.com ${FAXFILENOEXT} p) [pbx_config]

Still needs a few tweaks, will repost when happier.