so nobody seems to like dealing with fax!!<br><br><div class="gmail_quote">2010/7/12 khalid touati <span dir="ltr"><<a href="mailto:khalidtouati@gmail.com">khalidtouati@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Guys,<br>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).<br>
<br>
<p class="MsoNormal">[fax-rx]</p>
<p class="MsoNormal">exten => receive,1,NoOp(**** FAX RECEIVE ****) exten
=> receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten =>
receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})</p>
<p class="MsoNormal">exten =>
receive,n,Set(FAXFILE=${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}.tif)</p>
<p class="MsoNormal">exten =>
receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})})</p>
<p class="MsoNormal">exten => receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})</p>
<p class="MsoNormal">exten =>
receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})</p>
<p class="MsoNormal">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)</p>
<p class="MsoNormal">exten => receive,n,Set(FAXOPT(maxrate)=14400)</p>
<p class="MsoNormal">exten => receive,n,Set(FAXOPT(minrate)=2400)</p>
<p class="MsoNormal">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})</p>
<p class="MsoNormal">exten => receive,n,System('/usr/local/bin/fax2mail -p -f
"${FAXFILENOEXT}" --cid-number ${CALLERID(num)} --cid-name
"${CALLERID(name)}" --dest-name "Sir/Madam"')</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">a previous debugging showed:</p><p class="MsoNormal"><br></p>
<p class="MsoNormal"><b>- for a fax from <a href="http://myfax.com" target="_blank">myfax.com</a> that was received successfully:</b></p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>> Channel
'DAHDI/1-1' fax session '53', [ 034.021683 ], channel sent 59 frames (1180 ms)
of energy.</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Channel
'DAHDI/1-1' fax session '53', [ 040.489601 ], STAT_EVT_HW_CLOSE<span> </span>st: WT_HW_CLS<span> </span>rt: WCLSNCLS</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Channel
'DAHDI/1-1' fax session '53', [ 040.489798 ], STAT_SES_COMPLETE</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- 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'</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Executing
[receive@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<span> </span>--cid-name ""
--dest-name "Sir/Madam"") in new stack</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>== Auto fallthrough,
channel 'DAHDI/1-1' status is 'UNKNOWN'</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Hungup
'DAHDI/1-1'</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">-<b> for a fax from regular machine that failed:</b></p><p class="MsoNormal"><b><br></b></p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>> Channel 'DAHDI/1-1'
fax session '54', [ 032.782251 ], channel sent 3 frames (60 ms) of energy.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Channel 0/1,
span 1 got hangup request, cause 16</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal">[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.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Channel
'DAHDI/1-1' fax session '54', [ 038.131701 ], STAT_EVT_HW_CLOSE<span> </span>st: WT_HW_CLS<span> </span>rt: WCLSNCLS</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Channel
'DAHDI/1-1' fax session '54', [ 038.131879 ], STAT_SES_COMPLETE</p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- 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'</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>== Spawn extension
(fax-rx, receive, 20) exited non-zero on 'DAHDI/1-1'</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">pbx1*CLI> </p>
<p class="MsoNormal"><span> </span>-- Hungup
'DAHDI/1-1'</p>
<p class="MsoNormal"> </p>I would really appreciate any help! thanks!<br clear="all"><font color="#888888"><br>-- <br>Abdullah<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Abdullah<br>