so nobody seems to like dealing with fax!!<br><br><div class="gmail_quote">2010/7/12 khalid touati <span dir="ltr">&lt;<a href="mailto:khalidtouati@gmail.com">khalidtouati@gmail.com</a>&gt;</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&#39;m having is that i&#39;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 =&gt; receive,1,NoOp(**** FAX RECEIVE ****) exten
=&gt; receive,n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ]) exten =&gt;
receive,n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})</p>

<p class="MsoNormal">exten =&gt;
receive,n,Set(FAXFILE=${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})}.tif)</p>

<p class="MsoNormal">exten =&gt;
receive,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/${STRFTIME(${EPOCH},GMT-5,%F_%T_${CALLERIDNUM})})</p>

<p class="MsoNormal">exten =&gt; receive,n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})</p>

<p class="MsoNormal">exten =&gt;
receive,n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})</p>

<p class="MsoNormal">exten =&gt; receive,n,NoOp(**** SETTING FAXOPT ****) exten
=&gt; receive,n,Set(FAXOPT(ecm)=yes) exten =&gt;
receive,n,Set(FAXOPT(headerinfo)=MY FAXBACK RX) exten =&gt; receive,n,Set(FAXOPT(localstationid)=15184893772)</p>

<p class="MsoNormal">exten =&gt; receive,n,Set(FAXOPT(maxrate)=14400)</p>

<p class="MsoNormal">exten =&gt; receive,n,Set(FAXOPT(minrate)=2400)</p>

<p class="MsoNormal">exten =&gt; receive,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten =&gt; receive,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) exten =&gt;
receive,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) exten =&gt;
receive,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) exten =&gt;
receive,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) exten =&gt;
receive,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****) exten =&gt;
receive,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})</p>

<p class="MsoNormal">exten =&gt; receive,n,System(&#39;/usr/local/bin/fax2mail -p -f
&quot;${FAXFILENOEXT}&quot; --cid-number ${CALLERID(num)} --cid-name
&quot;${CALLERID(name)}&quot; --dest-name &quot;Sir/Madam&quot;&#39;)</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&gt; </p>

<p class="MsoNormal"><span>       </span>&gt; Channel
&#39;DAHDI/1-1&#39; fax session &#39;53&#39;, [ 034.021683 ], channel sent 59 frames (1180 ms)
of energy.</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;53&#39;, [ 040.489601 ], STAT_EVT_HW_CLOSE<span>      </span>st: WT_HW_CLS<span>    </span>rt: WCLSNCLS</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;53&#39;, [ 040.489798 ], STAT_SES_COMPLETE</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;53&#39; is complete, result: &#39;SUCCESS&#39; (FAX_SUCCESS),
error: &#39;NO_ERROR&#39;, pages: 2, resolution: &#39;204x196&#39;, transfer rate: &#39;14400&#39;,
remoteSID: &#39;FAX&#39;</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Executing
[receive@fax-rx:21] System(&quot;DAHDI/1-1&quot;, &quot;/usr/local/bin/fax2mail
-p -f &quot;/var/spool/asterisk/fax/2010-05-18_03:59:42_&quot;
--cid-number<span>  </span>--cid-name &quot;&quot;
--dest-name &quot;Sir/Madam&quot;&quot;) in new stack</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>  </span>== Auto fallthrough,
channel &#39;DAHDI/1-1&#39; status is &#39;UNKNOWN&#39;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Hungup
&#39;DAHDI/1-1&#39;</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&gt; </p>

<p class="MsoNormal"><span>       </span>&gt; Channel &#39;DAHDI/1-1&#39;
fax session &#39;54&#39;, [ 032.782251 ], channel sent 3 frames (60 ms) of energy.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </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&gt; </p>

<p class="MsoNormal">[May 17 19:02:41] NOTICE[1316]: res_fax.c:993
generic_fax_exec: Channel &#39;DAHDI/1-1&#39; did not return a frame; probably hung up.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;54&#39;, [ 038.131701 ], STAT_EVT_HW_CLOSE<span>      </span>st: WT_HW_CLS<span>    </span>rt: WCLSNCLS</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;54&#39;, [ 038.131879 ], STAT_SES_COMPLETE</p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Channel
&#39;DAHDI/1-1&#39; fax session &#39;54&#39; is complete, result: &#39;SUCCESS&#39; (FAX_SUCCESS),
error: &#39;NO_ERROR&#39;, pages: 1, resolution: &#39;204x196&#39;, transfer rate: &#39;14400&#39;,
remoteSID: &#39;518 489 3772&#39;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>  </span>== Spawn extension
(fax-rx, receive, 20) exited non-zero on &#39;DAHDI/1-1&#39;</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">pbx1*CLI&gt; </p>

<p class="MsoNormal"><span>    </span>-- Hungup
&#39;DAHDI/1-1&#39;</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>