[Asterisk-Users] Echo calibration with ztmonitor and a testlinefrom a telco

Robert Murray robertm at marco-na.com
Tue Aug 16 08:11:08 MST 2005


If you are using a TDM card its also important to use the new tool fxotune.
This should help as it will match the fxo card to the line. Hybrid balance
will help echo as well and I assume fxotune is helping to balance the line.
With a matched hybrids on both ends of a 2 wire interface you will never
hear
you own transmission (Well your own signal would be 60db or more down)
and not have any echo. Most phones hybrids are not matched because most
people like to hear some of there own voice in the handset as it helps them
judge how load they talk into the phone.

This is how I adjusted my system.

Run the fxotune program to set the fxo ports to match the incoming lines.
This
will save a file called /etc/fxotune.conf you need to run fxotune -s on
bootup
to reconfigure the TDM card. fxotune took about 5 mins to run on my one fxo
port.

Now tune your audio levels using ztmonitor using the milliwatt test line.

Then enable you echo cancel again.

This removed all echo I had on my lines and I have a 10 DB RX gain setting.
along with a 4DB TX setting.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Rich
Adamson
Sent: Tuesday, August 16, 2005 11:00 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Echo calibration with ztmonitor and a
testlinefrom a telco



> I have already seen this page but since the head version of ztmonitor is
> able to show the real number value of the rx and tx (ztmonito  -vv), I
> was thinking that maybe someone could confirm to which value we want the
> rx of ztmonitor  when we try to calibrate the system with a test line
> from a Telco and a TDM card.
>
> The only information that I have found is that I have to setup my rxgain
> to get a 14800 value with ztmonitor but that is not working.
>
> Any others suggestions ?

The bottom line is that regardless of what tool you use to adjust the
gains, you will still have to play with the settings to balance echo and
transmission loss.

The gain settings (in a non-asterisk telephony environment) typically are
about 2db less then whatever the pstn cable loss happens to be for your
particular implementation. However, if you find out that your 7db from the
central office (as an example only) and you set your gains to +5 db (-2db
less then the loss), you _will_ end up with echo. The majority of us that
have digium analog cards (regardless of whether its the old X100P or the
newer TDM) end up with a transmission loss that is less then optimal, and
very little echo. Most of the echo that is left is heard only during the
first few seconds of a call.

Assuming you're in the US, I'd suggest starting with something like this:
echocancel=yes
echotraining=800
echocancelwhenbridged=yes
rxgain=5.0
txgain=0.0
callprogress=no
channel => 1

and adjust the rxgain & txgain upwards until echo is objectionable, and
then back downwards a small amount.

If the gain settings are too far off, dtmf will fail as well, so keep
that in mind during your testing.

If you still can't get rid of the echo, there are some options that can
be configured in one of the zaptel files to change the echo cancellation
method to Agressive, etc. Some folks have to play with those options while
others don't. It is 100% dependent on _your_ specific pstn connection
(eg, cable loss & quality) and your specific asterisk system (eg, distro,
motherboard).



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list