<!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.2654.45">
<TITLE>RE: [Asterisk-Users] Software FAX</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi,</FONT>
</P>

<P><FONT SIZE=2>My earlier post didn't make it to the list (over 40K and awaits moderator</FONT>
<BR><FONT SIZE=2>decision for some time now).</FONT>
</P>

<P><FONT SIZE=2>We've successfully received several faxes. The problem is that all the viewers</FONT>
<BR><FONT SIZE=2>we use show them compressed to the left side (when using fax machine # 1) and</FONT>
<BR><FONT SIZE=2>perfectly normal (when using fax machine # 2). The attached asterisk log includes</FONT>
<BR><FONT SIZE=2>both sessions ('compressed' one being the 1st), hope it helps.</FONT>
</P>

<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Alex Zarubin</FONT>
</P>
<BR>
<BR>

<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: Wednesday, October 29, 2003 9:48 AM</FONT>
<BR><FONT SIZE=2>To: asterisk-users@lists.digium.com</FONT>
<BR><FONT SIZE=2>Subject: Re: [Asterisk-Users] Software FAX</FONT>
</P>
<BR>

<P><FONT SIZE=2>I am taking note of people's messages about soft fax, even if I might </FONT>
<BR><FONT SIZE=2>appear to be ignoring them. I am getting V.27ter finished off right now, </FONT>
<BR><FONT SIZE=2>to flesh out the facilities in the software. V.27ter is used for 4800bps </FONT>
<BR><FONT SIZE=2>and 2400bps faxes - not critically important, but useless for lousy </FONT>
<BR><FONT SIZE=2>lines. That's seems to be nearly functional now, so I should soon be </FONT>
<BR><FONT SIZE=2>back to fixing things.</FONT>
</P>

<P><FONT SIZE=2>Most of the crashes seem to be where people have an older version of </FONT>
<BR><FONT SIZE=2>libtiff. In each case I've followed up on they have a nice new libtiff, </FONT>
<BR><FONT SIZE=2>but still had an old version too. Older versions seem to cause trouble. </FONT>
<BR><FONT SIZE=2>I don't intend to find out why, since newer versions are OK.</FONT>
</P>

<P><FONT SIZE=2>An 8 byte TIFF file means it has been opened, and a header written. The </FONT>
<BR><FONT SIZE=2>basic TIFF header is always 8 bytes.</FONT>
</P>

<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Steve</FONT>
</P>
<BR>

<P><FONT SIZE=2>Brian West wrote:</FONT>
</P>

<P><FONT SIZE=2>&gt;Good for you... All I can get are 8 byte tiff files.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;On Tue, 28 Oct 2003, Brian Schrock wrote:</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Everyone,</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Just thought I would drop a line telling everyone here I have the software</FONT>
<BR><FONT SIZE=2>&gt;&gt;RxFAX/TxFAX up and running without any real problems. I did have to.....</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;RH 9.0</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;1) Install an audio devel rpm</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;1) install libtiff from source, and copy over a bunch of include files to</FONT>
<BR><FONT SIZE=2>&gt;&gt;/usr/local/include</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;2) build/install spandsp</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;3) move app_rxfax.c and app_txfax.c to apps/ dir in asterisk source tree.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;4) move Makefile.patch from oncall to apps/ dir in asterisk</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;5) patch the makefile</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;6) edit the makefile and remove all references to steve's home dir to make</FONT>
<BR><FONT SIZE=2>&gt;&gt;it point to my spandsp source directory.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;7) rebuild/install asterisk</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;8) Create a dir incoming/ in /var/spool/asterisk</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;9) edit extensions.conf and add the following line to the incoming call</FONT>
<BR><FONT SIZE=2>&gt;&gt;contexts I have set up.</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp; exten =&gt; fax,1,RxFAX(/var/spool/asterisk/incoming/${CALLERIDNUM}.tif)</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;10) create a script that emails me the tif files every time they are</FONT>
<BR><FONT SIZE=2>&gt;&gt;received in incoming/ and delete them.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;#/bin/sh</FONT>
<BR><FONT SIZE=2>&gt;&gt;cd /var/spool/asterisk/incoming</FONT>
<BR><FONT SIZE=2>&gt;&gt;for X in *.tif</FONT>
<BR><FONT SIZE=2>&gt;&gt;do</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ -f $X ] ; then</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mutt -s &quot;FAX from $X&quot; -a $X laugh@anistonetech.com &lt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;/dev/null</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rm $X</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi</FONT>
<BR><FONT SIZE=2>&gt;&gt;done</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;11) Add a cronjob to run my script every 5 minutes.</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp; */5 * * * * /usr/sbin/mailfax</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;12) Test and enjoy.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;To send a fax all I have to do is....</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;1) Get the .tif file on the server somewhere</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;2) Put a file sample.call in the /var/spool/asterisk/outgoing/ directory and</FONT>
<BR><FONT SIZE=2>&gt;&gt;it looks like this...</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Channel: Zap/3/7989106</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Application: txfax</FONT>
<BR><FONT SIZE=2>&gt;&gt;Data: /root/fax.tiff</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;3) Asterisk will send it or keep trying until it send it as soon as I :wq</FONT>
<BR><FONT SIZE=2>&gt;&gt;the file in vi.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Pretty simple, I hope this helps someone else.</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;Brian J. Schrock</FONT>
<BR><FONT SIZE=2>&gt;&gt;Anistone Technologies, LLC</FONT>
<BR><FONT SIZE=2>&gt;&gt;6926 Avery Rd.</FONT>
<BR><FONT SIZE=2>&gt;&gt;Dublin, OH 43017</FONT>
<BR><FONT SIZE=2>&gt;&gt;Phone: 614-798-9106</FONT>
<BR><FONT SIZE=2>&gt;&gt;FAX: 614-798-9106</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt;</FONT>
</P>
<BR>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>Asterisk-Users mailing list</FONT>
<BR><FONT SIZE=2>Asterisk-Users@lists.digium.com</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.digium.com/mailman/listinfo/asterisk-users" TARGET="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</A></FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT>&nbsp;

</BODY>
</HTML>