Try<br><br>In chan_zap.c change the following line:<br><br>#define READ_SIZE 160<br><br>to<br><br>#define READ_SIZE 16<br><br>In zapata.conf<br><br>jitterbuffers=40<br><br>This will also increase system load by a factor of 10.
<br><br><div><span class="gmail_quote">2006/1/15, Aryanto Rachmad &lt;<a href="mailto:aryanto.rachmad@chello.at">aryanto.rachmad@chello.at</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><font face="Courier New" size="2">Hello everybody,</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">I am sorry to bring this up again if this 
kind of echo issue has ever discussed.</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">Phone2 in below call path experiences quite 
annoying echo:</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">Phone1 --&gt; FXS (TDM400P) --&gt; Asterisk 
--&gt; SIP GW --&gt; PSTN --&gt; Phone2</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">It is annoying as on phone2, we can hear 
the whole words we say with the level of maybe 25% of the original sound. I can 
reduce the echo&nbsp;to maximum with the following settings for my FXS port on 
zapata.conf:</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">rxgain=-8.0<br>txgain=2.0<br>echocancel=256<br>echotraining=500</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">But&nbsp;it is&nbsp;still not entirely 
eliminated as we&nbsp;still sometimes hear the last syllables, with the level 
of&nbsp;maybe 5% of the original sound.</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">What I did was just playing around with the 
values of those parameters, use ztmonitor to have the FXS rx/tx 
signal&nbsp;visualised and use only my ears to check it. I think my ears are 
fine :), as I do&nbsp;this because my friends complain about the echo they 
hear.</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">Does anybody know a better method 
to&nbsp;find the best value for&nbsp;those parameters?</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">There is no echo on phone2 when 
I&nbsp;use&nbsp;softphone like this:</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">
<div><font face="Courier New" size="2">PC(X-Lite) --&gt; Asterisk --&gt; SIP GW 
--&gt; PSTN --&gt; Phone2</font></div></font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">The following is the version of asterisk I 
am using:</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">CLI&gt; show version</font></div>
<div><font face="Courier New" size="2">Asterisk SVN-branch-1.2-r7999 built by root 
@ atvie-asterisk on a i686 running Linux on 2006-01-13 06:15:02 UTC</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">And I set the echo canceller in zconfig.h 
to ECHO_CAN_MG2.</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">Cheers,</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>
<div><font face="Courier New" size="2">Anto</font></div>
<div><font face="Courier New" size="2"></font>&nbsp;</div>

<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.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><br><br></blockquote></div><br><br clear="all"><br>-- <br>Giovanni Miano