khalid touati
2010-Jul-12 13:08 UTC
[asterisk-users] Fax for Asterisk, capable of receiving from website but not from fax machine !!
Hi Guys, i am using the latest version of asterisk 1.4 (1.4.33.1), dahdi (2.3.0.1) and FFA (Applications: 1.4_1.2.0, Digium FAX Driver: 1.4_1.2.0). the issue i'm having is that i'm able to receive faxes from a website (that offer this service) but not able to receive from a regular fax machine (that is working perfect). [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=${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}.tif) exten => receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}) 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)=15184893772) 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(/var/spool/asterisk/fax/${FAXFILE}) exten => receive,n,System('/usr/local/bin/fax2mail -p -f "${FAXFILENOEXT}" --cid-number ${CALLERID(num)} --cid-name "${CALLERID(name)}" --dest-name "Sir/Madam"') a previous debugging showed: *- for a fax from myfax.com that was received successfully:* pbx1*CLI> > Channel 'DAHDI/1-1' fax session '53', [ 034.021683 ], channel sent 59 frames (1180 ms) of energy. pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '53', [ 040.489601 ], STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '53', [ 040.489798 ], STAT_SES_COMPLETE pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '53' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer rate: '14400', remoteSID: 'FAX' pbx1*CLI> -- Executing [receive at fax-rx:21] System("DAHDI/1-1", "/usr/local/bin/fax2mail -p -f "/var/spool/asterisk/fax/2010-05-18_03:59:42_" --cid-number --cid-name "" --dest-name "Sir/Madam"") in new stack pbx1*CLI> == Auto fallthrough, channel 'DAHDI/1-1' status is 'UNKNOWN' pbx1*CLI> -- Hungup 'DAHDI/1-1' -* for a fax from regular machine that failed:* * * pbx1*CLI> > Channel 'DAHDI/1-1' fax session '54', [ 032.782251 ], channel sent 3 frames (60 ms) of energy. pbx1*CLI> -- Channel 0/1, span 1 got hangup request, cause 16 pbx1*CLI> [May 17 19:02:41] NOTICE[1316]: res_fax.c:993 generic_fax_exec: Channel 'DAHDI/1-1' did not return a frame; probably hung up. pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '54', [ 038.131701 ], STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '54', [ 038.131879 ], STAT_SES_COMPLETE pbx1*CLI> -- Channel 'DAHDI/1-1' fax session '54' is complete, result: 'SUCCESS' (FAX_SUCCESS), error: 'NO_ERROR', pages: 1, resolution: '204x196', transfer rate: '14400', remoteSID: '518 489 3772' pbx1*CLI> == Spawn extension (fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1' pbx1*CLI> -- Hungup 'DAHDI/1-1' I would really appreciate any help! thanks! -- Abdullah -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100712/ebd88407/attachment.htm
khalid touati
2010-Jul-13 19:44 UTC
[asterisk-users] Fax for Asterisk, capable of receiving from website but not from fax machine !!
so nobody seems to like dealing with fax!! 2010/7/12 khalid touati <khalidtouati at gmail.com>> Hi Guys, > i am using the latest version of asterisk 1.4 (1.4.33.1), dahdi (2.3.0.1) > and FFA (Applications: 1.4_1.2.0, Digium FAX Driver: 1.4_1.2.0). the issue > i'm having is that i'm able to receive faxes from a website (that offer this > service) but not able to receive from a regular fax machine (that is working > perfect). > > [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=${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}.tif) > > exten => > receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}) > > 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)=15184893772) > > 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(/var/spool/asterisk/fax/${FAXFILE}) > > exten => receive,n,System('/usr/local/bin/fax2mail -p -f "${FAXFILENOEXT}" > --cid-number ${CALLERID(num)} --cid-name "${CALLERID(name)}" --dest-name > "Sir/Madam"') > > > > a previous debugging showed: > > > *- for a fax from myfax.com that was received successfully:* > > pbx1*CLI> > > > Channel 'DAHDI/1-1' fax session '53', [ 034.021683 ], channel > sent 59 frames (1180 ms) of energy. > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '53', [ 040.489601 ], > STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '53', [ 040.489798 ], > STAT_SES_COMPLETE > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '53' is complete, result: 'SUCCESS' > (FAX_SUCCESS), error: 'NO_ERROR', pages: 2, resolution: '204x196', transfer > rate: '14400', remoteSID: 'FAX' > > pbx1*CLI> > > -- Executing [receive at fax-rx:21] System("DAHDI/1-1", > "/usr/local/bin/fax2mail -p -f > "/var/spool/asterisk/fax/2010-05-18_03:59:42_" --cid-number --cid-name "" > --dest-name "Sir/Madam"") in new stack > > > > pbx1*CLI> > > == Auto fallthrough, channel 'DAHDI/1-1' status is 'UNKNOWN' > > > > pbx1*CLI> > > -- Hungup 'DAHDI/1-1' > > > > -* for a fax from regular machine that failed:* > > * > * > > pbx1*CLI> > > > Channel 'DAHDI/1-1' fax session '54', [ 032.782251 ], channel > sent 3 frames (60 ms) of energy. > > > > pbx1*CLI> > > -- Channel 0/1, span 1 got hangup request, cause 16 > > > > pbx1*CLI> > > [May 17 19:02:41] NOTICE[1316]: res_fax.c:993 generic_fax_exec: Channel > 'DAHDI/1-1' did not return a frame; probably hung up. > > > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '54', [ 038.131701 ], > STAT_EVT_HW_CLOSE st: WT_HW_CLS rt: WCLSNCLS > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '54', [ 038.131879 ], > STAT_SES_COMPLETE > > pbx1*CLI> > > -- Channel 'DAHDI/1-1' fax session '54' is complete, result: 'SUCCESS' > (FAX_SUCCESS), error: 'NO_ERROR', pages: 1, resolution: '204x196', transfer > rate: '14400', remoteSID: '518 489 3772' > > > > pbx1*CLI> > > == Spawn extension (fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1' > > > > pbx1*CLI> > > -- Hungup 'DAHDI/1-1' > > > I would really appreciate any help! thanks! > > -- > Abdullah >-- Abdullah -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100713/2f075490/attachment.htm
Possibly Parallel Threads
- Problem with ReceiveFAX app from FFA
- Free FaxForAsterisk ReceiveFAX not working
- Incoming Fax Issue with Asterisk 11.7 and Digium Fax
- Digium fax - sending fax call file vs manager originate
- Sending faxes with T.38 problem. Fax for Asterisk (no SpanDSP) - 1.6.1.1