dgm_fax_start: fax handle: 0 failed to queue document

Community-based Support for users of Free Fax For Asterisk

dgm_fax_start: fax handle: 0 failed to queue document

Postby sigma-jim » Wed May 20, 2009 1:03 pm

This code works on two other servers with similar configurations. We’ve confirmed they’re all using the same code-libraries.

The call is placed, the remote fax answers and then fails.

----

-- Executing [send@fax-send:11] Set("SIP/pano-sip-trunk-095b90e0", "FAXOPT(minrate)=2400") in new stack
-- Executing [send@fax-send:12] SendFAX("SIP/pano-sip-trunk-095b90e0", "/var/log/asterisk/fax/toprocess/1242842534.tif,d") in new stack
-- Channel 'SIP/pano-sip-trunk-095b90e0' sending fax '/var/log/asterisk/fax/toprocess/1242842534.tif'
[May 20 11:59:42] ERROR[8513]: res_fax_digium.c:1843 dgm_fax_start: fax handle: 0 failed to queue document '/var/log/asterisk/fax/toprocess/1242842534.tif'
[May 20 11:59:42] ERROR[8513]: res_fax.c:801 generic_fax_exec: channel 'SIP/pano-sip-trunk-095b90e0' fax session '24' failure, reason: 'failed to start fax session'
[May 20 11:59:42] WARNING[8530]: res_fax_digium.c:458 P30RESULT_to_str: unhandled fax result 'RSLT_IN_PROGRESS'
-- Channel 'SIP/pano-sip-trunk-095b90e0' fax session '24' is complete, result: 'FAILED' (FAX_FAILURE_UNKNOWN), error: 'NO_ERROR', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''
-- Executing [send@fax-send:13] NoOp("SIP/pano-sip-trunk-095b90e0", ""Return from Send"") in new stack

This code works on two other servers with similar configurations. We’ve confirmed they’re all using the same code-libraries.

The call is placed, the remote fax answers and then fails.

Thanks, Jim
sigma-jim
Newsterisk
 
Posts: 1
Joined: Tue Jan 13, 2009 2:05 pm

I have the same issue: fax handle: 0 failed to queue documen

Postby bondjames_12 » Fri Sep 04, 2009 1:53 pm

I get the same error messages.

I have everything compiled and the modules copied in.
I am using a gafachi account with T.38 option set to: "T.38 - Upon detecting a fax tone, our network will send a re-INVITE to attempt to switch to T.38. If the re-INVITE fails, a re-INVITE will be sent to attempt to switch to G.711 ulaw if the codec is not already G.711 ulaw."

I'm using a call file to test this. Using an HP test fax number. At the other end of this number is a normal fax machine.

I've posted everything I can think of that might be relevant. If anyone has any ideas please post.


As you can see from below I am running
Asterisk: 1.6.1_1.0.12
Digium Fax T.38 Driver: 1.6.1_1.0.10 (optimized for pentium3m_32)
Digium Fax G.711 Driver: 1.6.1_1.0.10 (optimized for pentium3m_32)

Asterisk CLI output:
_________________________________________________________
server*CLI> fax set debug on

Fax Debug Enabled

server*CLI> core set verbose 6
Verbosity is at least 6
server*CLI> fax show version
Fax For Asterisk Components:
Applications: 1.6.1_1.0.12
Digium Fax T.38 Driver: 1.6.1_1.0.10 (optimized for pentium3m_32)
Digium Fax G.711 Driver: 1.6.1_1.0.10 (optimized for pentium3m_32)

-- Attempting call on SIP/18884732963@gafachi for 18884732963@fax_out:1 (Retry 1)
== Using SIP RTP CoS mark 5
== Using SIP VRTP CoS mark 6
== Using UDPTL CoS mark 5
> Channel SIP/gafachi-0822fc40 was answered.
== Starting SIP/gafachi-0822fc40 at fax_out,18884732963,1 failed so falling back to exten 's'
-- Executing [s@fax_out:1] NoOp("SIP/gafachi-0822fc40", "**** SENDING FAX ****") in new stack
-- Executing [s@fax_out:2] Answer("SIP/gafachi-0822fc40", "") in new stack
-- Executing [s@fax_out:3] Wait("SIP/gafachi-0822fc40", "6") in new stack
[Sep 4 13:31:51] WARNING[13494]: ast_expr2.fl:441 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input:
+ 1
^
[Sep 4 13:31:51] WARNING[13494]: ast_expr2.fl:445 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.tex in the asterisk source.

-- Executing [s@fax_out:4] Set("SIP/gafachi-0822fc40", "GLOBAL(FAXCOUNT)=") in new stack
== Setting global variable 'FAXCOUNT' to ''
-- Executing [s@fax_out:5] Set("SIP/gafachi-0822fc40", "FAXCOUNT=") in new stack
-- Executing [s@fax_out:6] Set("SIP/gafachi-0822fc40", "FAXFILE=test.tif") in new stack
-- Executing [s@fax_out:7] NoOp("SIP/gafachi-0822fc40", "**** SETTING FAXOPT ****") in new stack
-- Executing [s@fax_out:8] Set("SIP/gafachi-0822fc40", "FAXOPT(ecm)=yes") in new stack
-- Executing [s@fax_out:9] Set("SIP/gafachi-0822fc40", "FAXOPT(headerinfo)=Fax from at was received.") in new stack
-- Executing [s@fax_out:10] Set("SIP/gafachi-0822fc40", "FAXOPT(localstationid)=1234567890") in new stack
-- Executing [s@fax_out:11] Set("SIP/gafachi-0822fc40", "FAXOPT(maxrate)=14400") in new stack
-- Executing [s@fax_out:12] Set("SIP/gafachi-0822fc40", "FAXOPT(minrate)=2400") in new stack
-- Executing [s@fax_out:13] NoOp("SIP/gafachi-0822fc40", "**** SENDING FAX : test.tif ****") in new stack
-- Executing [s@fax_out:14] SendFAX("SIP/gafachi-0822fc40", "/var/spool/asterisk/fax/test.tif,dz") in new stack
-- Channel 'SIP/gafachi-0822fc40' sending fax '/var/spool/asterisk/fax/test.tif'
[Sep 4 13:31:51] NOTICE[13494]: res_fax.c:701 generic_fax_exec: Negotiating T.38 for send on SIP/gafachi-0822fc40
[Sep 4 13:31:51] NOTICE[13494]: res_fax.c:730 generic_fax_exec: Negotiated T.38 for send on SIP/gafachi-0822fc40

[Sep 4 13:31:51] ERROR[13494]: res_fax_digium.c:1761 dgm_fax_start: fax handle: 0 failed to queue document '/var/spool/asterisk/fax/test.tif'
[Sep 4 13:31:51] ERROR[13494]: res_fax.c:811 generic_fax_exec: channel 'SIP/gafachi-0822fc40' fax session '0' failure, reason: 'failed to start fax session'
-- Auto fallthrough, channel 'SIP/gafachi-0822fc40' status is 'UNKNOWN'

-- Executing [h@fax_out:1] NoOp("SIP/gafachi-0822fc40", "FAXOPT(ecm) : yes") in new stack
-- Executing [h@fax_out:2] NoOp("SIP/gafachi-0822fc40", "FAXOPT(filename) : /var/spool/asterisk/fax/test.tif") in new stack
-- Executing [h@fax_out:3] NoOp("SIP/gafachi-0822fc40", "FAXOPT(headerinfo) : Fax from at was received.") in new stack
-- Executing [h@fax_out:4] NoOp("SIP/gafachi-0822fc40", "FAXOPT(localstationid) : 1234567890") in new stack
-- Executing [h@fax_out:5] NoOp("SIP/gafachi-0822fc40", "FAXOPT(maxrate) : 14400") in new stack
-- Executing [h@fax_out:6] NoOp("SIP/gafachi-0822fc40", "FAXOPT(minrate) : 2400") in new stack
-- Executing [h@fax_out:7] NoOp("SIP/gafachi-0822fc40", "FAXOPT(pages) : 0") in new stack
-- Executing [h@fax_out:8] NoOp("SIP/gafachi-0822fc40", "FAXOPT(rate) : ") in new stack
-- Executing [h@fax_out:9] NoOp("SIP/gafachi-0822fc40", "FAXOPT(remotestationid) : ") in new stack
-- Executing [h@fax_out:10] NoOp("SIP/gafachi-0822fc40", "FAXOPT(resolution) : ") in new stack
-- Executing [h@fax_out:11] NoOp("SIP/gafachi-0822fc40", "FAXOPT(status) : FAILED") in new stack
-- Executing [h@fax_out:12] NoOp("SIP/gafachi-0822fc40", "FAXOPT(statusstr) : ") in new stack
-- Executing [h@fax_out:13] NoOp("SIP/gafachi-0822fc40", "FAXOPT(error) : ") in new stack
[Sep 4 13:31:51] NOTICE[13494]: pbx_spool.c:348 attempt_thread: Call completed to SIP/18884732963@gafachi

___________________________________________________________


My dialplan is from the Fax For asterisk manual:
[fax_out]
exten => s,1,NoOp(**** SENDING FAX ****)
exten => s,n,Answer()
exten => s,n,Wait(6)
exten => s,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])
exten => s,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
exten => s,n,Set(FAXFILE=test.tif)
; Set FAXOPTs
exten => s,n,NoOp(**** SETTING FAXOPT ****)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FAXOPT(headerinfo)=Fax from ${GLOBAL(LASTFAXCALLERNAME)} at ${GLOBAL(LASTFAXCALLERNUM)} was received.)
exten => s,n,Set(FAXOPT(localstationid)=1234567890)
exten => s,n,Set(FAXOPT(maxrate)=14400)
exten => s,n,Set(FAXOPT(minrate)=2400)
; Send the fax
exten => s,n,NoOp(**** SENDING FAX : ${FAXFILE} ****)
exten => s,n,SendFAX(/var/spool/asterisk/fax/${FAXFILE},dz)

; 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)})

_________________________________________________________
The call file I am copying in to test this:
Channel: SIP/18884732963@gafachi
CallerID: T38 SendFax
WaitTime: 180
MaxRetries: 0
RetryTime: 300
Account:
Archive: false
Context: fax_out
Extension: 18884732963
Priority: 1

__________________________________________________________
My sip.conf file
[general]
bindaddr=0.0.0.0
bindport=5060
externip=nat.colinweber.com
localnet=192.168.2.255/255.255.255.0
nat=yes
tos=lowdelay
allow=all
qualify=yes
registerattempts=0
registertimeout=2
t38pt_udptl=yes
t38pt_rtp=no
t38pt_tcp=no
videosupport=yes ; enable Asterisk video support

register=>XXXXXXXXXXXXXXX:XXXXXXXXXXXX@sip.gafachi.com
; NOTE: The line below ([gafachi]) can not be changed, otherwise your Asterisk
;system will reject calls, with a "403 Forbidden", from the Gafachi Network.
[gafachi]
type=friend
username=XXXXXXXXXXXXXX
secret=XXXXXXXXXXXXXXX
host=sip.gafachi.com
nat=yes
canreinvite=yes
fromuser=XXXXXXXXXXXXX
dtmfmode=rfc2833
context=vitel-inbound
disallow=all
allow=ulaw
t38pt_udptl=yes
bondjames_12
Newsterisk
 
Posts: 1
Joined: Fri Sep 04, 2009 1:34 pm


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest