<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Message</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Just out of curiosity.&nbsp; Would you mind
sharing that app_rxfax.c file that you modified to work with SpanDSP 0.0.3?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>TIA,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Darren<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Ardjan Zwartjes<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, January 22, 2007
2:12 AM<br>
<b><span style='font-weight:bold'>To:</span></b>
asterisk-users@lists.digium.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [asterisk-users] Problems
with rxfax</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Dear&nbsp;list,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The company I'm working for is trying to use&nbsp;app_rxfax
to receive faxes on an Asterisk machine. Our initial tests looked very
promising, but unfortunately we've encountered some problems. We've been trying
to solve these problems for quite some time now, but we're running out of
options. So I really hope&nbsp;that somebody can give some help here.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Basically our set-up is this: We have an Asterisk
server&nbsp;(version 1.2.7) with an ISDN trunk (Sangoma A104D), we've
configured asterisk to run rxfax on a specified extension.&nbsp;Originally we
started out with spandsp 0.0.2pre26 and the original app_rxfax for spandsp
0.0.2. Some of the faxes were coming in perfectly, but soon we noticed that
quite often there were substantial pieces of the fax missing in the resulting
tif file. </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>We've tried the following to solve these problems:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've checked the timing settings for the ISDN trunk,
these seem to be ok.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've tried several versions of libtiff (currently we are
using 3.7.2).</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've tried using 0.0.3 versions of spandsp (since we're
using asterisk 1.2.7 we had to modify app_rxfax.c to work).</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've created a custom dialplan application to disable the
echo cancellation on the isdn channel on which the fax is received.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've tried various settings for
t30_set_supported_compressions, t30_set_supported_image_sizes,
t30_set_supported_modems and t30_set_supported_resolutions (I must confes that
I didn't really know which settings to use here, but we have tried a lot of
them).</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>- We've tried several fax machines to send the faxes,
ranging from simple fax-modems to large dedicated fax machines.</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>But still&nbsp;a lot of faxes give problems, either the tif
is missing large portions, or the fax isn't received at all.&nbsp;At the bottom
of this mail&nbsp;are 2 examples of the logging when it goes wrong. I really
hope that&nbsp;somebody can give a few pointers.&nbsp;Thanks in advance,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Kind regards,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ardjan Zwartjes,</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Telecats</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>======= Example 1 =========================</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jan 19 14:49:14 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx
type 0<br>
Jan 19 14:49:14 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 19 14:49:17 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 4<br>
Jan 19 14:49:17 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:19 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 8<br>
Jan 19 14:49:19 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:20 DEBUG[24218] app_rxfax.c: FLOW FAX Switching from V.29 + V.21
to V.29 (-22.18dBm0)<br>
Jan 19 14:49:21 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 19 14:49:21 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 19 14:49:23 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 8<br>
Jan 19 14:49:23 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:23 DEBUG[24218] app_rxfax.c: FLOW FAX Switching from V.29 + V.21
to V.29 (-17.84dBm0)<br>
Jan 19 14:49:38 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 4<br>
Jan 19 14:49:38 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:39 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 19 14:49:39 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 19 14:49:41 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 8<br>
Jan 19 14:49:41 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:42 DEBUG[24218] app_rxfax.c: FLOW FAX Switching from V.29 + V.21
to V.29 (-19.13dBm0)<br>
Jan 19 14:49:48 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 4<br>
Jan 19 14:49:48 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c:
==============================================================================<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Pages transferred:&nbsp; 1<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Image
size:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1728 x 1192<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Image resolution&nbsp;&nbsp;&nbsp;
8037 x 7700<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Transfer
Rate:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9600<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Bad
rows&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Longest bad row run 0<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Compression type&nbsp;&nbsp;&nbsp; 3<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: Image size (bytes)&nbsp; 0<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c:
==============================================================================<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 19 14:49:49 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 1<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c:
==============================================================================<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Fax successfully received.<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Remote station id: </span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Local station
id:&nbsp; &quot;Test Fax&quot;<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Pages transferred: 1<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Image resolution:&nbsp; 8037 x 7700<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: Transfer
Rate:&nbsp;&nbsp;&nbsp;&nbsp; 9600<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c:
==============================================================================<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX Set rx type 13<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX FAX exchange complete<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX Set tx type 13<br>
Jan 19 14:49:51 DEBUG[24218] app_rxfax.c: FLOW FAX FAX exchange complete<br>
Jan 19 14:49:53 DEBUG[24218] app_rxfax.c: Got hangup</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>=========Example 2==================</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Jan 18 09:56:12 VERBOSE[4185] logger.c:&nbsp;&nbsp;&nbsp;&nbsp;
-- Executing RxFAX(&quot;Zap/31-1&quot;,
&quot;/tmp/1169110572.239.tif|debug&quot;) in new stack<br>
Jan 18 09:56:15 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 18 09:56:15 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 18 09:56:17 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 4<br>
Jan 18 09:56:17 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 18 09:56:19 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 8<br>
Jan 18 09:56:19 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 0<br>
Jan 18 09:56:26 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 18 09:56:26 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 4<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 0<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 1<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: ==============================================================================<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: Fax receive not successful - result
(31) Carrier lost during fax receive.<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: ==============================================================================<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX Set rx type 13<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX FAX exchange complete<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX Set tx type 13<br>
Jan 18 09:56:27 DEBUG[4185] app_rxfax.c: FLOW FAX FAX exchange complete<br>
Jan 18 09:56:39 DEBUG[4185] app_rxfax.c: Got hangup</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>