Hi Marco,<br>could you try again with different quality settings on your hardware fax?<br>I see 1728 x 540 in your spandsp log.<br>I think spandsp is only compatible with :<br><div style="margin-left: 40px;">standard: width=1728 x length=1128
<br>fine: width=1728 x length=2252<br>super-fine: width=1728 x length=4491 <br></div>which are the 3 resolution you commonly find in G3 faxes.<br>I don&#39;t know what this mode is : 1728x540.<br>Regards,<br>Pirlouwi.<br>
<br><div><span class="gmail_quote">2007/9/28, marco britannio &lt;<a href="mailto:m.britannio@gmail.com">m.britannio@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span class="e" id="q_1154ab550eb19ce1_0"><br><br><div><span class="gmail_quote">On 9/27/07, <b class="gmail_sendername">Jonn R Taylor</b> &lt;<a href="mailto:jonnt@taylortelephone.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jonnt@taylortelephone.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
marco britannio wrote:<br>&gt; Hi all,<br>&gt; I&#39;m trying to setup an asterisk based fax receiving machine.<br>&gt; i&#39;m using asterisk 1.2.18 and app_rxfax with spandsp 0.0.4pre9<br>&gt; I have no problems with a modem-fax, but with the fax machines i have
<br>&gt; tried almost every fax fails, both in sending and receive.<br>&gt; the machines are sending a receiving a lot of faxes every day and<br>&gt; working well, so i think the problem is on the spandsp side.<br>&gt; i have tried almost every spandsp version from 
0.0.2 to the current one,<br>&gt; both with and without ECM, but without luck.<br>&gt; has anybody succeeded in receiving faxes with asterisk app_rxfax and<br>&gt; spandsp?<br>&gt;<br>&gt; I&#39;m noticicing a lot of different behaviours: sending w ECM gave me an
<br>&gt; OK, and the second half of the page was missing, other faxes fail with<br>&gt; Sep 26 17:26:18 DEBUG[4741] app_rxfax.c:<br>&gt; ==============================================================================<br>&gt; Sep 26 17:26:18 DEBUG[4741] app_rxfax.c: Fax receive not successful -
<br>&gt; result (11) Unexpected message received.<br>&gt; Sep 26 17:26:18 DEBUG[4741] app_rxfax.c:<br>&gt; ==============================================================================<br>&gt;<br>&gt;<br>&gt; can anybody help me?
<br>&gt; thank you in advance,<br>&gt;<br>&gt;<br>&gt; marco<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt;<br>&gt; Sign up now for AstriCon 2007!&nbsp;&nbsp;September 25-28th.&nbsp;&nbsp;<a href="http://www.astricon.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.astricon.net/</a><br>&gt;<br>&gt; --Bandwidth and Colocation Provided by 
<a href="http://www.api-digital.com--" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.api-digital.com--</a><br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br>Marco,<br><br>First off, do not use any version over 0.0.3. I am using 0.0.3 on centos<br>4.5, asterisk 1.2.24 and freepbx 2.3 and it is working very well. One<br>very important thing to keep in mind is that faxing over voip will only
<br>work reliably with ulaw or alaw and your internet connection MUST be<br>able to sustain a constant data stream with low jitter. If your<br>interested I have a shell script to install asterisk 1.2.24 and<br>freepbx-2.3

 with rxfax and txfax on centos 4 and working on centos 5.<br><br>Jonn<br><br><a href="http://jonnt.users.taylortelephone.com/asterisk/centos-asterisk-install.sh" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://jonnt.users.taylortelephone.com/asterisk/centos-asterisk-install.sh
</a><br>and hylafax / iaxmodem<br><a href="http://jonnt.users.taylortelephone.com/asterisk/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://jonnt.users.taylortelephone.com/asterisk/</a><br>
<br><br>_______________________________________________<br><br>Sign up now for AstriCon 2007!&nbsp;&nbsp;September 25-28th.&nbsp;&nbsp;
<a href="http://www.astricon.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.astricon.net/</a><br><br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote>
</div><br></span></div>hi john,<br>thank you for your reply.<br>I&#39;ve installed the configuration that you suggested (asterisk 
1.2.24, spandsp 0.0.3), but with no luck: I still cannot receive faxes.<br>Please note that I am not using T38: I am receiving faxes with app_rxfax and storing them into a dir on the machine.<br>I have attached an isdn trunk to the card and I am trying to receive the faxes straight from the trunk.
<br>When receiving faxes without ecm, the sending fax machine completes with an error, and this is the log I have in asterisk:<br>&nbsp;Sep 27 11:54:46 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:54:46 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4
<br>Sep 27 11:54:48 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 4<br>Sep 27 11:54:48 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 8<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0
<br>Sep 27 11:54:50 DEBUG[8783] app_rxfax.c: FLOW FAX Switching from V.29 + V.21 to V.29 (-15.04dBm0)<br>Sep 27 11:54:52 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:54:52 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4
<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 8<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:54:53 DEBUG[8783] app_rxfax.c: FLOW FAX Switching from V.29 + V.21 to V.29

 (-17.87dBm0)<br>Sep 27 11:55:17 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 4<br>Sep 27 11:55:17 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 0<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Pages transferred:&nbsp; 0<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1728 x 540<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image resolution&nbsp;&nbsp;&nbsp; 8037 x 3850<br>

Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Transfer Rate:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9600<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Bad rows&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 50<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Longest bad row run 10<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Compression type&nbsp;&nbsp;&nbsp; 2
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: Image size (bytes)&nbsp; 116841<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: ==============================================================================<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0
<br>Sep 27 11:55:19 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 4<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 0<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 1<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Fax successfully received.<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Remote station id: 0103747861<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Local station id:<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Pages transferred: 0
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Image resolution:&nbsp; 8037 x 3850<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: Transfer Rate:&nbsp;&nbsp;&nbsp;&nbsp; 9600<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: ==============================================================================
<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set rx type 13<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX FAX exchange complete<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX Set tx type 13<br>Sep 27 11:55:20 DEBUG[8783] app_rxfax.c: FLOW FAX FAX exchange complete
<br><br>although it states successfully received, it creates a tiff 8 bytes long.<br><br>A test enabling ECM gives me the following log:<br><br>after negotiation it starts receiving frames, then, after frame 5:<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 Storing ECM frame 5<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:08 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC framing OK in state 10<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Rx:&nbsp; FCD without final frame tag<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Rx:&nbsp; ff 03 06 0a 06 e1 45 37 ec a6 db 1c 08 1f f1 67 [...]
<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing image frame 10, length 256<br>Sep 27 12:13:09 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing ECM frame 10<br><br>then it receives all the frames to frame 32, and then
<br><br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 Storing ECM frame 32<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10
<br>Sep 27 12:13:14 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC framing OK in state 10<br>[... more and more HDLC framing OK in state 10]<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>

Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency 1850.18<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:26 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:28 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:30 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW 
V.29 Coarse carrier frequency 1658.12<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:31 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10
<br>Sep 27 12:13:32 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW V.29

 Coarse carrier frequency 1657.37<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:35 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10<br>

Sep 27 12:13:36 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency 
1656.47<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:39 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC carrier down in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier up in state 10<br>Sep 27 12:13:40 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC carrier up in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW V.29 Coarse carrier frequency 1756.76<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW V.29 Training failed (sequence failed)<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW 
T.30 HDLC carrier training failed in state 10<br>Sep 27 12:13:41 DEBUG[13611] app_rxfax.c: FLOW T.30 HDLC carrier down in state 10<br><br>at this point the sending fax machine hangs up and the call failes.<br>it seems to me that there is some kind of problem (with 
T.30?) in spandsp, but I do not understand what it is.<br><br>regards,<br><span class="sg"><br>marco<br><br><br>
</span><br>_______________________________________________<br><br>Sign up now for AstriCon 2007! &nbsp;September 25-28th. &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.astricon.net/" target="_blank">
http://www.astricon.net/</a><br><br>--Bandwidth and Colocation Provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br></blockquote></div><br>