<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35">
<TITLE>RE: [Asterisk-Users] A software FAX modem</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>> -----Original Message-----</FONT>
<BR><FONT SIZE=2>> From: Steve Underwood [<A HREF="mailto:steveu@coppice.org">mailto:steveu@coppice.org</A>] </FONT>
<BR><FONT SIZE=2>> Sent: Tuesday, October 21, 2003 8:23 PM</FONT>
<BR><FONT SIZE=2>> To: asterisk-users@lists.digium.com</FONT>
<BR><FONT SIZE=2>> Subject: Re: [Asterisk-Users] A software FAX modem</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Hi,</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Interesting. I am using RH9 for testing. The only piece of </FONT>
<BR><FONT SIZE=2>> libtiff that </FONT>
<BR><FONT SIZE=2>> was missing for me was tiffiop.h. That is why I put a copy on the FTP </FONT>
<BR><FONT SIZE=2>> site. Do you have the libtiff-devel package installed? None of the </FONT>
<BR><FONT SIZE=2>> libraries can be used to build anything on RH without the xxxx-devel </FONT>
<BR><FONT SIZE=2>> package installed.</FONT>
</P>
<P><FONT SIZE=2>The biggest TIFF related problem for me was that tif_dir.h was included from tiffiop.h, but not installed in /usr/local/include. I built from the original spandsp-20031020.tgz tarball on RH9 with some help from the tiff-v3.5.7 tarball.</FONT></P>
<P><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> It seems you are not the only one getting this coredump. I assume you </FONT>
<BR><FONT SIZE=2>> are using exactly the same libtiff as me, since you are using RH9. </FONT>
</P>
<P><FONT SIZE=2>I never saw a coredump or crash. I did rebuild libtiff from source while I was looking for the missing header file, but I'm still linking against the stock RH9 libtiff.so in /usr/lib (my built libtiff is in /usr/local/lib).</FONT></P>
<P><FONT SIZE=2>> Strange. Still, it seems people are getting some communication at the </FONT>
<BR><FONT SIZE=2>> V.21 and V.29 modem level now. That is certainly progress :-)</FONT>
</P>
<P><FONT SIZE=2>Yep. I couldn't successfully receive a fax from a faxmodem, but app_rxfax is definitely communicating at the FAX level. Here is an example from the Asterisk console on my test system:</FONT></P>
<P><FONT SIZE=2>*CLI> -- Starting simple switch on 'Zap/1-1'</FONT>
<BR><FONT SIZE=2> -- Hungup 'Zap/1-1'</FONT>
<BR><FONT SIZE=2> -- Starting simple switch on 'Zap/1-1'</FONT>
<BR><FONT SIZE=2> -- Executing RxFAX("Zap/1-1", "/tmp/testfax.tif") in new stack</FONT>
<BR><FONT SIZE=2>Changed from phase 0 to 1</FONT>
<BR><FONT SIZE=2>Start receiving document</FONT>
<BR><FONT SIZE=2>Changed from phase 1 to 4</FONT>
<BR><FONT SIZE=2>Sending ident</FONT>
<BR><FONT SIZE=2>>>> CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20</FONT>
<BR><FONT SIZE=2>DIS:</FONT>
<BR><FONT SIZE=2>Store and forward Internet fax: no</FONT>
<BR><FONT SIZE=2>Real-time Internet fax: no</FONT>
<BR><FONT SIZE=2>Preferred octets: 256</FONT>
<BR><FONT SIZE=2>Can receive fax</FONT>
<BR><FONT SIZE=2>Data signalling rate: V.29</FONT>
<BR><FONT SIZE=2>R8x7.7lines/mm and/or 200x200pels/25.4mm OK</FONT>
<BR><FONT SIZE=2>2D coding OK</FONT>
<BR><FONT SIZE=2>Scan line length: 215mm</FONT>
<BR><FONT SIZE=2>Recording length: A4 (297mm)</FONT>
<BR><FONT SIZE=2>Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85</FONT>
<BR><FONT SIZE=2>R8x15.4lines/mm OK</FONT>
<BR><FONT SIZE=2>Inch-based resolution preferred: no</FONT>
<BR><FONT SIZE=2>Metric-based resolution preferred: no</FONT>
<BR><FONT SIZE=2>Minimum scan line time for higher resolutions: T15.4 = T7.7</FONT>
<BR><FONT SIZE=2>>>> DIS: 80 00 c6 f0 80 80 01</FONT>
<BR><FONT SIZE=2>HDLC underflow in state 9</FONT>
<BR><FONT SIZE=2>Changed from phase 4 to 3</FONT>
<BR><FONT SIZE=2><<< TSI: 43 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 78 61 46</FONT>
<BR><FONT SIZE=2>TSI without final frame tag</FONT>
<BR><FONT SIZE=2>Remote fax gave TSI as: "Fax "</FONT>
<BR><FONT SIZE=2><<< DCS: 83 00 c6 70</FONT>
<BR><FONT SIZE=2>DCS with final frame tag</FONT>
<BR><FONT SIZE=2>In state 9</FONT>
<BR><FONT SIZE=2>DCS:</FONT>
<BR><FONT SIZE=2>Store and forward Internet fax: no</FONT>
<BR><FONT SIZE=2>Real-time Internet fax: no</FONT>
<BR><FONT SIZE=2>Can receive fax</FONT>
<BR><FONT SIZE=2>Data signalling rate: V.29, 9600bps</FONT>
<BR><FONT SIZE=2>R8x7.7lines/mm and/or 200x200pels/25.4mm OK</FONT>
<BR><FONT SIZE=2>2D coding OK</FONT>
<BR><FONT SIZE=2>Scan line length: 215mm</FONT>
<BR><FONT SIZE=2>Recording length: A4 (297mm)</FONT>
<BR><FONT SIZE=2>Minimum scan line time: 0ms</FONT>
<BR><FONT SIZE=2>Get at V.29</FONT>
<BR><FONT SIZE=2>Changed from phase 3 to 5</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Changed from phase 5 to 4</FONT>
<BR><FONT SIZE=2>0 bad bits in trainability test</FONT>
<BR><FONT SIZE=2>Start rx document - compression 2</FONT>
<BR><FONT SIZE=2>Start rx page</FONT>
<BR><FONT SIZE=2>>>> CFR: 84</FONT>
<BR><FONT SIZE=2>HDLC underflow in state 5</FONT>
<BR><FONT SIZE=2>Post trainability</FONT>
<BR><FONT SIZE=2>Changed from phase 4 to 5</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier training failed</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier training failed</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2>Fast carrier up</FONT>
<BR><FONT SIZE=2>Fast carrier down</FONT>
<BR><FONT SIZE=2> -- Hungup 'Zap/1-1'</FONT>
</P>
<P><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> I will try to provoke the software some more, and see if I </FONT>
<BR><FONT SIZE=2>> can reproduce </FONT>
<BR><FONT SIZE=2>> this problem. I have sent a couple of rolls of FAX </FONT>
<BR><FONT SIZE=2>> successfully from my </FONT>
<BR><FONT SIZE=2>> soft-fax to a real FAX machine (plus some that didn't go so well, of </FONT>
<BR><FONT SIZE=2>> course), and quite a few files the other way. This thing really is </FONT>
<BR><FONT SIZE=2>> basically capable of working in its current state.</FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
<P><FONT SIZE=2>Any luck with receiving from fax modems? The example above was a transmission from an old Hayes Optima 288. I can test with a variety of Hayes, Megahertz, USR, and MultiTech modems if that information would be useful to you.</FONT></P>
<P><FONT SIZE=2>Thanks for the great work, Steve. This is going to be killer when it gets polished up.</FONT>
</P>
<P><FONT SIZE=2>Randy Johnson</FONT>
</P>
</BODY>
</HTML>