login | register
Mon 22 of Mar, 2010 [10:00 UTC]

voip-info.org

Discuss [6] History

Asterisk x100p echotraining

Created by: oej,Last modification on Tue 27 of May, 2008 [13:37 UTC] by mwatson

Echo Cancellation on the Wildcard X100P


If you are experiencing echo on the Digium Wildcard X100P, you can configure the Zap Channel Module to do echo cancellation training. Use the echotraining option in the Zap Channel Module's configuration file. Note that this had a few issues before Dec 2, 2003 when Mark nailed down the bug that caused the DTMF to be unreliable.

Configuration


From the zapata.conf.sample:
 
 ; In some cases, the echo canceller doesn't train quickly enough and there
 ; is echo at the beginning of the call.  Enabling echo training will cause
 ; asterisk to briefly mute the channel, send an impulse, and use the impulse
 ; response to pre-train the echo canceller so it can start out with a much
 ; closer idea of the actual echo.
 ;
 ;echotraining=yes


If you set this to yes, use ztmonitor to adjust the rxgain and txgain. Ztmonitor isn't installed by default; but it is included with the Zaptel source code, so look in /usr/src/zaptel. Use ztmonitor like this:

 ./ztmonitor 1 -v
 Rx #################################* Tx

When there is echo on one side, both sides will have hashes even when one side is completely silent, like this:
 Rx ################################ * Tx ##### *
The objective of using visual cues from ztmonitor to tune rxgain and txgain is so when you talk and remote mute, Tx side has visual bars but Rx side has nil; and vice versa.

Place a call, mute yourself and let the remote party talk. Adjust rxgain and txgain until the remote side no longer hears echo. Then mute the remote party and you talk. Adjust again. You can do this by your own. It appears to me that txgain is more effective to control remote side echo, and rxgain is more effective to control Asterisk side echo.

For example, try this setting in zapata.conf:

 rxgain=10.5
 txgain=-4.5

Note: If you set the txgain value too low, your outbound calls may not go thorugh since the DTMF tones are too quiet to be picked up.

Hope this helps with Wildcard X100P echo issues. I no longer have that 5-10 seconds of echo when making a call. HUGE IMPROVEMENT!

bkw dec 2, 2003


If echocancel=256 instead of 128(yes) then that could also be causing a echo + some terrible feedback. Cause i tried those same settings and was still getting echos. So try echocancel=yes, rxgain=4.5, txgain=4.5.

g powell Dec 30,2004


If you are unable to get rid of echo it is worth trying this: In the zconfig.h file a new zaptel echo canceller called ECHO_CAN_MG2 (MG2), Edit this file (found in /usr/src/zaptel on AAH) compile the driver and compile Asterisk - no echo at either end!!!


See Also



Asterisk | Tips & Tricks | FAQ

Comments

Comments Filter
222

333

by styelz, Wednesday 23 of May, 2007 [05:01:06 UTC]
Digium are charging $10 for a 1 channel HPEC licence.
http://www.digium.com/en/products/software/hpec.php

I decided to test it with my Wildcard X100P card. It completly solved my local echo problem.

rxgain=8.5
txgain=1.0
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes

Works great for me on my P3 733Mhz.

Check out this link:
http://forums.digium.com/viewtopic.php?p=50887&sid=ee023f82de284b893074a41f2e573c2a

All the best.
222

333Console side echo

by valley, Saturday 03 of February, 2007 [17:51:45 UTC]
For me, rxgain=-15, txgain=-10 are effective without fainting voice too much. Hardware is Encore SM56 (Motorola), Asterisk 1.2.13, zaptel 1.2.10, kernel 2.6.15-27-386, Pentium III 650MHz.

I had some extreme echoes on the Asterisk side (using either a SIP phone or the console channel) when I set rxgain=0.0. Remote side (PSTN) never has much echo.
222

333

by yunie, Tuesday 14 of March, 2006 [11:24:20 UTC]
Place a call and you'll see the change at the same time with your conversation
222

333Mine does not make any difference

by yezdi, Wednesday 07 of July, 2004 [19:42:42 UTC]
Whatever I put in rxgain / txgain, the ztmonitor does not show any change at all. I stopped asterisk completely and restarted again but no diff.

what else must I do?
Thanks
222

333additional info

by , Friday 05 of December, 2003 [05:07:53 UTC]

The purpose is to get the HASH marks about half way on both the TX and RX for best results.
222

333

by ,