[Asterisk-Users] Fax receive issues and NVFaxDetect

Justin Newman jnewman at newmantelecom.com
Wed Mar 23 02:31:23 MST 2005


> From: "Chris Tuska" <chris at tuska.us>
> Subject: [Asterisk-Users] Fax receive issues and NVFaxDetect
>
> [macro-faxreceive]
>  exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
>  exten => s,7,rxfax(${FAXFILE})
>  exten => s,103,SetVar(EMAILADDR=my at email.us)
>  exten => s,104,Goto(7)
>
> [from-Sipmedia2]
> ;second line in or Fax line
> exten => s,1,Answer
> exten => fax,2,Goto(fax,2901,1)
>
> [fax]
> exten => 2901,1,Macro(faxreceive)
>
> exten => h,1,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}"
"${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}")

I'm a little bit confused here. Assuming the "from-Sipmedia2" context is
handling your SIP appliance, how about the following (just moved around a
little of yours and added a line)?

> [macro-faxreceive]
exten => s,1,SetVar(FAXFILE=/var/spool/asterisk/fax/${UNIQUEID}.tif)
exten => s,2,rxfax(${FAXFILE})
exten => s,3,System(/var/lib/asterisk/scripts/mailfax "${FAXFILE}"
"${EMAILADDR}" "${CALLERIDNUM}" "${CALLERIDNAME}")

[from-Sipmedia2]
exten => s,1,Answer
; You need this line in here
exten => s,2,NVFaxDetect
exten => fax,1,Goto(fax,2901,1)

[fax]
exten => 2901,1,Macro(faxreceive)

Jusitn Newman
jnewman at newmantelecom.com




More information about the asterisk-users mailing list