[asterisk-users] Digium fax - sending fax call file vs manager originate
Hristo Benev
hristob at smartbox.ca
Fri Jan 29 14:09:36 CST 2010
Hello,
I have Asterisk 1.6.1.12 with
FAX For Asterisk Components:
Applications: 1.6.1.5_1.1.6
Digium FAX Driver: 1.6.1.5_1.1.6 (optimized for core2_32)
If I use call file with spool
--------------------------------------------
Channel: SIP/IP/DEst No
MaxRetries: 0
RetryTime: 10
WaitTime: 50
Application:SendFAX
Data:/var/spool/asterisk/test.tif
--------------------------------------------
Fax is send but if I use manager
--------------------------------------------
Action: Originate
Channel: SIP/IP/dest NO
Context: fax-tx
Exten: send
Priority: 1
Callerid: Asterisk Automatic Wardial
--------------------------------------------
I get
ERROR[16796]: res_fax.c:696 generic_fax_exec: channel 'SIP/IP-00000015'
is in an unsupported T.38 negotiation state, cannot continue.
Here is context
-----------------------------------------
[fax-tx]
exten => send,1,NoOp(**** SENDING FAX ****)
exten => send,n,Wait(6)
;exten => send,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])
exten => send,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
exten => send,n,Set(FAXFILE=faxout.tif)
; Set FAXOPTs
exten => send,n,NoOp(**** SETTING FAXOPT ****)
;exten => send,n,Set(FAXOPT(ecm)=yes)
;exten => send,n,Set(FAXOPT(headerinfo)=Fax from
${GLOBAL(LASTFAXCALLERNAME)} at ${GLOBAL(LASTFAXCALLERNUM)} was
received.)
exten => send,n,Set(FAXOPT(localstationid)=1234567890)
;exten => send,n,Set(FAXOPT(maxrate)=14400)
;exten => send,n,Set(FAXOPT(minrate)=2400)
; Send the fax
exten => send,n,NoOp(**** SENDING FAX : ${FAXFILE} ****)
exten => send,n,SendFAX(/var/spool/asterisk/fax/${FAXFILE},d)
; Hangup! Print FAXOPTs
exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => h,n,NoOp(FAXOPT(filename) : ${FAXOPT(filename)})
exten => h,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => h,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => h,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => h,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => h,n,NoOp(FAXOPT(pages) : ${FAXOPT(pages)})
exten => h,n,NoOp(FAXOPT(rate) : ${FAXOPT(rate)})
exten => h,n,NoOp(FAXOPT(remotestationid) : ${FAXOPT(remotestationid)})
exten => h,n,NoOp(FAXOPT(resolution) : ${FAXOPT(resolution)})
exten => h,n,NoOp(FAXOPT(status) : ${FAXOPT(status)})
exten => h,n,NoOp(FAXOPT(statusstr) : ${FAXOPT(statusstr)})
exten => h,n,NoOp(FAXOPT(error) : ${FAXOPT(error)})
-----------------------------------------------
Any suggestions?
Thanks,
Hristo Benev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100129/86bbbf62/attachment.htm
More information about the asterisk-users
mailing list