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