Solved

Asterisk:Help Stopping echo over outside calls

Posted on 2007-11-20
25
291 Views
Last Modified: 2013-11-12
I desparatly need help stopping or at least reducing the amount of echo i get whenever i make or recivieve a cal from the outside. extension to extension is fine. Im using grandstream budgetone 101 sip phones and my zapta.conf file is below. any ideas are welcome.

;
; Configuration file

[trunkgroups]

[channels]

language=en
context=default
signalling=fxs_ks
group=1
channel=2-4
rxwink=300            ; Atlas seems to use long (250ms) winks
busydetect=yes
busycount=3



;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
rxgain=4
txgain=2
callgroup=1
pickupgroup=1
immediate=no
callprogress=yes
hanguponpolarityswitch


;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

;Include genzaptelconf configs
#include zapata-auto.conf



;Include AMP configs
#include zapata_additional.conf
0
Comment
Question by:jonnydollar
  • 13
  • 12
25 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 20320798
How bad is the echo?
Does asterisk manage to get rid of the echo after a while?
0
 

Author Comment

by:jonnydollar
ID: 20322408
after a while sometimes it does fade but not entirely and in somecase it will remain the entire conversation
0
 
LVL 36

Expert Comment

by:grblades
ID: 20323326
If it remains for the entire conversation and does not clear within 30 seconds or so then that points to the delay being too big and the echo cancelation not being able to copy. Try setting "echocancel=256" in zapata.conf and then restart asterisk and let me know what difference that makes.
Hopefully it should enable it to cancel the echo although it may take a bit longer to do so with that setting.
0
 

Author Comment

by:jonnydollar
ID: 20323988
well i tested each call for about 30 secs

it fades but is still loud enough to the point it can be interupt the conversation
0
 

Author Comment

by:jonnydollar
ID: 20324105
even more strange is that if i comment out all echo cancel tools everything sounds the same. i enable each one at a time and there is no change. Like the parameters arent affecting anything
0
 
LVL 36

Expert Comment

by:grblades
ID: 20326358
Have you tried restarting asterisk rather than just reloading the configuration?
I dont think you have to do this but it is worth making sure.

What telephone interface card are you using?
If I remember correctly it is a Digium TDM400 based card?
If the card is under warrenty and you still experience echo then you are entitled to a free license for Digiums better software echo cancelation. That may well be worth enquiring about. See http://www.digium.com/en/products/software/hpec.php
0
 

Author Comment

by:jonnydollar
ID: 20329875
ok i will attempt to get the liscense. but in terms of the method i would use i do a 'restart now' at the asterisk cli promt. should this be sufficent or is a system restart neccessary?

also i see info regarding another echo cancelation tool located in a zconfig.h. some MG2 thing. but i dont see this file anywhere on my machine.

take a look at this fourm thread and tell me what you think

http://forums.whirlpool.net.au/forum-replies-archive.cfm/553626.html
0
 
LVL 36

Expert Comment

by:grblades
ID: 20330066
A 'restart now' will be fine.

The MG2 is the echo cancelation algorithm. The license you are applying for is yet another one but a commercial one that should work much better.

The forum thread has some good tips. In particular the use of fxotune to calibrate the card to the particular line characteristics you have which should enable the echo cancelation to work better. You can read more on how to do this at http://www.voip-info.org/wiki/view/Asterisk+fxotune
0
 

Author Comment

by:jonnydollar
ID: 20331226
ok im about to fill out the request for the liscense but they are asking for configuration of the card. what configuration in particular do they (Digium) mean?

also why cant i find the zconfig.h file on the trixbox
0
 
LVL 36

Expert Comment

by:grblades
ID: 20333737
The configuration they mean are probably the contents of the /etc/zaptel.conf and /etc/asterisk/zapata.conf files.

I suspect trixbox only comes with the compiled version of zaptel and not the source code. You will probably have to download the source code and install it and it will contain the zconfig.h file.
0
 

Author Comment

by:jonnydollar
ID: 20355439
hello
i called and finally got the software and the license. should i follow the instructions that accompany the download?  A section talks about rebuilding the zaptel drivers. This being a trixbox is it as simple as that or would i have to jump thru some special hoops?
0
 
LVL 36

Expert Comment

by:grblades
ID: 20356439
Being trixbox you wont have the zaptel source on the box but you should hopefully at least have the software required to compile the source.
If you download and put a copy into /usr/src and also save a text file there with any additional instructions or license codes then I can connect, download the zaptel source and rebuild it for you.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:jonnydollar
ID: 20357566
that i can do, but i would like it to be after work hours today to avoid down time. Is that good?
0
 
LVL 36

Expert Comment

by:grblades
ID: 20358032
Send me the details whenever you like. We can do it in two steps. The downloading of the source and recompiling can be done without any downtime. The only downtime will be to install the new modules and then restart asterisk which should be only a minute or so.
Then its just changing asterisk configuration to use the new echo cancelation which I assume is easy.
0
 

Author Comment

by:jonnydollar
ID: 20359586
the email with the details will be emailed now
0
 

Author Comment

by:jonnydollar
ID: 20361701
hey all is ready to go
0
 

Author Comment

by:jonnydollar
ID: 20362454
any update?
0
 
LVL 36

Expert Comment

by:grblades
ID: 20364046
Just saw your second mail when I got in this morning. I'll have a look at it today for you.
0
 

Author Comment

by:jonnydollar
ID: 20365016
ok lets do this. Install the modules like you will need to do for the process. once completed send me and email letting me know its time for a reboot. beacause it may take a long time for me to see your update here. least the email will notify me right away. then I can contact the office and let them know to expect downtime and do a remote reboot.

then can you post the procedure you went thru here for me in case i ever have to do this?
0
 
LVL 36

Expert Comment

by:grblades
ID: 20373444
Sorry I dont think I am going to be able to do it.

I downloaded the kernel source and kernel-devel packages from http://vault.centos.org/4.3/updates/ which match the version of the kernel that you have. However when I try and compile zaptel I get these errors :-

[root@asterisk1 zaptel-1.2.19]# make

make -C /lib/modules/2.6.9-34.0.2.EL/build SUBDIRS=/usr/src/zaptel-1.2.19 HOTPLUG_FIRMWARE=yes modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.0.2.EL-i586'
  CC [M]  /usr/src/zaptel-1.2.19/zaptel-base.o
/usr/src/zaptel-1.2.19/zaptel-base.c:385: error: syntax error before "zone_lock"
/usr/src/zaptel-1.2.19/zaptel-base.c:385: warning: type defaults to `int' in declaration of `zone_lock'
/usr/src/zaptel-1.2.19/zaptel-base.c:385: error: incompatible types in initialization
/usr/src/zaptel-1.2.19/zaptel-base.c:385: error: initializer element is not constant
/usr/src/zaptel-1.2.19/zaptel-base.c:385: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.19/zaptel-base.c:386: error: syntax error before "chan_lock"
/usr/src/zaptel-1.2.19/zaptel-base.c:386: warning: type defaults to `int' in declaration of `chan_lock'
/usr/src/zaptel-1.2.19/zaptel-base.c:386: error: incompatible types in initialization
/usr/src/zaptel-1.2.19/zaptel-base.c:386: error: initializer element is not constant
/usr/src/zaptel-1.2.19/zaptel-base.c:386: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.19/zaptel-base.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel-1.2.19/zaptel-base.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.2.19] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.0.2.EL-i586'
make: *** [all] Error 2

Maybe the people on the trixbox mailing list can help. One of the developers might be able to give you an updated package with the echo canceler already compiled into it.
0
 

Author Comment

by:jonnydollar
ID: 20374261
0
 
LVL 36

Expert Comment

by:grblades
ID: 20376796
That looks very promising.
Is your system up to date and running trixbox 2.2?

I tried having a look but I think you changed the password.
0
 

Author Comment

by:jonnydollar
ID: 20377316
ok at your suggestion i changed it but i placed it back for you? Please help
0
 
LVL 36

Expert Comment

by:grblades
ID: 20377664
working on it now
0
 
LVL 36

Accepted Solution

by:
grblades earned 500 total points
ID: 20378132
No luck so far. I got asterisk and zaptel all updated for you but I could not find the zaptel-echo_oslec-modules rpm. The 'yum' program just could not find it even though I had it configured to search the deveopment files aswell.

I have left it in a working state. Give it another go. Its a later version so the echo cancelation might work better.
If it is still bad then let me know and I will join the trixbox forums and ask how I can get a copy.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In my office we had 10 Cisco 7940G IP phones that were useless as they were showing PROTOCOL APPLICATION INVALID when started. I searched through Google and worked for a week continuously on those phones, and finally got them working. This is a di…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now