'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL'

Community-based Support for users of Free Fax For Asterisk

'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL'

Postby M4574 » Tue May 22, 2012 4:21 am

Hello Everybody!

I am using:
software:
Asterisk 1.6.2.17.2
Fax for Asterisk Applications: 1.6.2.0_1.3.0
Digium FAX Driver: 1.6.2.0_1.3.0 (optimized for core2_64)

Hardware:
Digium Wildcard TE420P


chan_dahdi.conf
Code: Select all
[channels]
context = ss7
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
switchtype = euroisdn
signalling = pri_cpe
group = 1
channel => 1-15,17-31

;inbanddisconnect=yes
echocancel = no
faxbuffers=8
faxdetect=both



extensions.conf
Code: Select all
[fax]
exten => 53,1,Goto(fax-rx,receive,1)

[fax-rx]
exten => receive,1,NoOp(**** FAX RECEIVE ****)
exten => receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])
exten => receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
exten => receive,n,Set(FAXFILE=fax-${FAXCOUNT}-rx.tif)
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})
exten => receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})
exten => receive,n,NoOp(**** SETTING FAXOPT ****)
exten => receive,n,Set(FAXOPT(ecm)=yes)
exten => receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX)
exten => receive,n,Set(FAXOPT(localstationid)=1234567890)
exten => receive,n,Set(FAXOPT(maxrate)=14400)
exten => receive,n,Set(FAXOPT(minrate)=2400)
exten => receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
exten => receive,n,ReceiveFAX(/home/yuriy/${FAXFILE})



I have a problem with Receiving Fax.
When i try receive fax, each time i have this error below:

Code: Select all
    -- Accepting call from '8711401149' to '53' on channel 0/8, span 1
    -- Executing [53@ss7:1] Goto("DAHDI/8-1", "fax-rx,receive,1") in new stack
    -- Goto (fax-rx,receive,1)
    -- Executing [receive@fax-rx:1] NoOp("DAHDI/8-1", "**** FAX RECEIVE ****") in new stack
[May 22 13:12:07] WARNING[15173]: ast_expr2.fl:445 ast_yyerror: ast_yyerror():  syntax error: syntax error, unexpected '+', expecting $end; Input:
  + 1
  ^
[May 22 13:12:07] WARNING[15173]: ast_expr2.fl:449 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.tex.
    -- Executing [receive@fax-rx:2] Set("DAHDI/8-1", "GLOBAL(FAXCOUNT)=") in new stack
  == Setting global variable 'FAXCOUNT' to ''
    -- Executing [receive@fax-rx:3] Set("DAHDI/8-1", "FAXCOUNT=") in new stack
    -- Executing [receive@fax-rx:4] Set("DAHDI/8-1", "FAXFILE=fax--rx.tif") in new stack
    -- Executing [receive@fax-rx:5] Set("DAHDI/8-1", "GLOBAL(LASTFAXCALLERNUM)=8711401149") in new stack
  == Setting global variable 'LASTFAXCALLERNUM' to '8711401149'
    -- Executing [receive@fax-rx:6] Set("DAHDI/8-1", "GLOBAL(LASTFAXCALLERNAME)=") in new stack
  == Setting global variable 'LASTFAXCALLERNAME' to ''
    -- Executing [receive@fax-rx:7] NoOp("DAHDI/8-1", "**** SETTING FAXOPT ****") in new stack
    -- Executing [receive@fax-rx:8] Set("DAHDI/8-1", "FAXOPT(ecm)=yes") in new stack
    -- Executing [receive@fax-rx:9] Set("DAHDI/8-1", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack
    -- Executing [receive@fax-rx:10] Set("DAHDI/8-1", "FAXOPT(localstationid)=1234567890") in new stack
    -- Executing [receive@fax-rx:11] Set("DAHDI/8-1", "FAXOPT(maxrate)=14400") in new stack
    -- Executing [receive@fax-rx:12] Set("DAHDI/8-1", "FAXOPT(minrate)=2400") in new stack
    -- Executing [receive@fax-rx:13] NoOp("DAHDI/8-1", "FAXOPT(ecm) : yes") in new stack
    -- Executing [receive@fax-rx:14] NoOp("DAHDI/8-1", "FAXOPT(headerinfo) : MY FAXBACK RX") in new stack
    -- Executing [receive@fax-rx:15] NoOp("DAHDI/8-1", "FAXOPT(localstationid) : 1234567890") in new stack
    -- Executing [receive@fax-rx:16] NoOp("DAHDI/8-1", "FAXOPT(maxrate) : 14400") in new stack
    -- Executing [receive@fax-rx:17] NoOp("DAHDI/8-1", "FAXOPT(minrate) : 2400") in new stack
    -- Executing [receive@fax-rx:18] NoOp("DAHDI/8-1", "**** RECEIVING FAX : fax--rx.tif ****") in new stack
    -- Executing [receive@fax-rx:19] ReceiveFAX("DAHDI/8-1", "/home/yuriy/fax--rx.tif") in new stack
    -- Channel 'DAHDI/8-1' receiving FAX '/home/yuriy/fax--rx.tif'
    -- Channel 'DAHDI/8-1' FAX session '1' started
[b]    -- Channel 'DAHDI/8-1' FAX session '1' is complete, result: 'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL', pages: 0, resolution: '204x98', transfer rate: '9600', remoteSID: '1401149'[/b]
    -- Auto fallthrough, channel 'DAHDI/8-1' status is 'UNKNOWN'
    -- Hungup 'DAHDI/8-1'



SendFax working now.
What is problem?
Somebody help...
M4574
Newsterisk
 
Posts: 3
Joined: Tue May 22, 2012 12:37 am

Re: 'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL'

Postby M4574 » Wed May 23, 2012 12:55 am

Anybody help please!
M4574
Newsterisk
 
Posts: 3
Joined: Tue May 22, 2012 12:37 am

Re: 'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL'

Postby M4574 » Wed May 23, 2012 3:48 am

Problem solved!

Changed directory owned by user "asterisk" for incoming asterisk fax.
exten => receive,n,ReceiveFAX(/home/yuriy/${FAXFILE})
M4574
Newsterisk
 
Posts: 3
Joined: Tue May 22, 2012 12:37 am

Re: 'FAILED' (FAX_FAILURE_PROTOCOL_ERROR), error: 'FILE_IO_FAIL'

Postby humberto2 » Mon Oct 15, 2012 6:48 pm

M4574 wrote:Problem solved!

Changed directory owned by user "asterisk" for incoming asterisk fax.
exten => receive,n,ReceiveFAX(/home/yuriy/${FAXFILE})


Hello,
I am having the same problem. How did you change the directory?
Image
humberto2
Newsterisk
 
Posts: 1
Joined: Mon Oct 15, 2012 6:44 pm


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest