Hristo Benev
2010-Jan-29 20:09 UTC
[asterisk-users] Digium fax - sending fax call file vs manager originate
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
David Backeberg
2010-Jan-31 02:13 UTC
[asterisk-users] Digium fax - sending fax call file vs manager originate
On Fri, Jan 29, 2010 at 3:09 PM, Hristo Benev <hristob at smartbox.ca> wrote:> If I use call file with spool > Fax is send but if I use manager > I get > Any suggestions?Well, one obvious solution is to just use call file. Problem solved. Try changing your call manager setup to use a Local channel instead, and set up a context that does the dial within that context. That should give you better introspection into where things are failing / what you're doing wrong.