Вы про это ?
; Виртуальный факс с отправкой на почту
exten => 507,1,Set(FAXOPT(ecm)=yes)
exten => 507,n,System(rm /tmp/fax*.tif)
exten => 507,n,Set(FAXOPT(localstationid)=3422000001)
exten => 507,n,Set(FAXOPT(maxrate)=14400)
exten => 507,n,Set(FAXOPT(minrate)=2400)
exten => 507,n,Set(FAXOPT(headerinfo)=Received by ${CALLERID(number)} ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M)})
exten => 507,n,Set(FILENAME=fax-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERID(number)})
exten => 507,n,Set(FAXFILE=/tmp/${FILENAME}.tif)
exten => 507,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => 507,n,ReceiveFax(${FAXFILE},f)
exten => 507,n,NoOp(FAXSTATUS: ${FAXSTATUS})
exten => 507,n,NoOp(FAXSTATUS: ${FAXSTATUS})
exten => 507,n,NoOp(FAXERROR: ${FAXERROR})
exten => 507,n,NoOp(FAXMODE: ${FAXMODE})
exten => 507,n,NoOp(FAXPAGES: ${FAXPAGES})
exten => 507,n,NoOp(FAXBITRATE: ${FAXBITRATE})
exten => 507,n,NoOp(FAXRESOLUTION: ${FAXRESOLUTION})
exten => 507,n,NoOp(REMOTESTATIONID: ${REMOTESTATIONID})
exten => 507,n,NoOp(LOCALHEADERINFO: ${LOCALHEADERINFO})
exten => 507,n,System(echo Fax System receive fax - time - ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M)} | mutt -s ${CALLERID(num)} -a ${FAXFILE} --
tech@firma.ru )