Echo cancelling problems

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Echo cancelling problems

Postby gossamer » Wed Sep 21, 2011 2:26 pm

Hi,
There is a huge echo on outgoing calls, and I'm unsure how to resolve it. I'm using asterisk-v1.8.5.0 on fedora15 with a Tiger3XX FXO card over business-class cable voice (optimum online). I'm seeing the following in the logs:

[Sep 21 16:00:32] WARNING[22225] chan_dahdi.c: Unable to request echo training on channel 1: Invalid argument

I have the following in chan_dahdi.conf:

Code: Select all
[channels]
language                        = en
context                         = incoming
accountcode                     = pstn-incoming
signalling                      = fxs_ks
callwaiting                     = no
immediate                       = no
amaflags                        = default
cancallforward                  = no
busydetect                      = yes
callprogress                    = no
musiconhold                     = default
threewaycalling                 = no
callreturn                      = no
transfer                        = no
usedistinctiveringdetection     = no
usecallerid                     = yes
hidecallerid                    = no
callwaitingcallerid             = no
usydetect                       = yes
busycount                       = 3
hanguponpolarityswitch          = yes
echocancel                      = yes
echotraining                    = 800
group                           = 1
pickupgroup                     = 1
channel                         => 1
channel                         => 2
group                           =  2
context                         = incoming
channel                         => 3
group                           =  3
context                         = incoming
channel                         => 4


Any ideas greatly appreciated.
Thanks,
Alex
gossamer
Newsterisk
 
Posts: 25
Joined: Wed Jan 19, 2011 7:35 pm

Re: Echo cancelling problems

Postby gossamer » Fri Sep 23, 2011 2:51 pm

Hi,

I posted the message below a few days ago and haven't received any replies. Is there someone who can help?

If there is a more appropriate forum to post this question, please advise.

Thanks,
Alex

gossamer wrote:Hi,
There is a huge echo on outgoing calls, and I'm unsure how to resolve it. I'm using asterisk-v1.8.5.0 on fedora15 with a Tiger3XX FXO card over business-class cable voice (optimum online). I'm seeing the following in the logs:

[Sep 21 16:00:32] WARNING[22225] chan_dahdi.c: Unable to request echo training on channel 1: Invalid argument

I have the following in chan_dahdi.conf:

Code: Select all
[channels]
language                        = en
context                         = incoming
accountcode                     = pstn-incoming
signalling                      = fxs_ks
callwaiting                     = no
immediate                       = no
amaflags                        = default
cancallforward                  = no
busydetect                      = yes
callprogress                    = no
musiconhold                     = default
threewaycalling                 = no
callreturn                      = no
transfer                        = no
usedistinctiveringdetection     = no
usecallerid                     = yes
hidecallerid                    = no
callwaitingcallerid             = no
usydetect                       = yes
busycount                       = 3
hanguponpolarityswitch          = yes
echocancel                      = yes
echotraining                    = 800
group                           = 1
pickupgroup                     = 1
channel                         => 1
channel                         => 2
group                           =  2
context                         = incoming
channel                         => 3
group                           =  3
context                         = incoming
channel                         => 4


Any ideas greatly appreciated.
Thanks,
Alex
gossamer
Newsterisk
 
Posts: 25
Joined: Wed Jan 19, 2011 7:35 pm

Re: Echo cancelling problems

Postby david55 » Fri Sep 23, 2011 4:11 pm

The rejection was by dahdi, so the dahdi version and the specific low level driver in use are more important than the Asterisk version.

However, the likely cause is trying to pass parameters to a low level driver that supports echo cancellation but doesn't accept parameters. It might also be an invalid parameter value for the low level driver.

I note that the fallback code only accepts powers of two for the number of taps, although it uses a default, rather than rejecting, for other values.
david55
Moves Like Spencer
 
Posts: 7694
Joined: Fri Sep 26, 2008 5:03 am

Re: Echo cancelling problems

Postby gossamer » Fri Sep 23, 2011 9:30 pm

david55 wrote:The rejection was by dahdi, so the dahdi version and the specific low level driver in use are more important than the Asterisk version.

However, the likely cause is trying to pass parameters to a low level driver that supports echo cancellation but doesn't accept parameters. It might also be an invalid parameter value for the low level driver.

I note that the fallback code only accepts powers of two for the number of taps, although it uses a default, rather than rejecting, for other values.


Hi, thanks very much for the note.

> dahdi show version
DAHDI Version: SVN-trunk-r10179 Echo Canceller: HWEC

I don't see any references to "fallback" or where the echo canceller would be accepting arguments.

Do you have any suggestions on how to fix the echo problem?

Thanks,
Alex
gossamer
Newsterisk
 
Posts: 25
Joined: Wed Jan 19, 2011 7:35 pm

Re: Echo cancelling problems

Postby david55 » Sat Sep 24, 2011 4:26 am

You are using a development version of DAHDI. Why?

HWEC presumably stands for hardware echo cancellation.

You haven't identified the low level driver.

There seems to have been a major rework of the echo cancellation API between the DAHDI version that I checked and the current development version. I don't know if your version is closer to the current development or the Asterisk 1.6 compatible release versions, so I don't know if showing the relevant code from the latter will help explain.

If the low level driver came with the card, you need to contact the card's support organisation. If the card is providing the echo-cancellation function, you need to do the same.

For some errors, you will find kernel log messages from the dahdi driver.
david55
Moves Like Spencer
 
Posts: 7694
Joined: Fri Sep 26, 2008 5:03 am

Re: Echo cancelling problems

Postby sruffell » Sat Sep 24, 2011 11:53 am

Alex,

The most likely culprit here is that you are attempting to enable echotraining on the channel but you have not attached a software echocanceler to the channel.

What are the contents of /etc/dahdi/system.conf? You will want to make sure you have an echocanceler configured as described at the end of http://svnview.digium.com/svn/dahdi/too ... onf.sample.

You can also see what the current echocanceler attached to a channel is in the proc file system. For example:

# head /proc/dahdi/1
Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER) B8ZS/ESF ClockSource
IRQ misses: 1

1 WCT1/0/1 Clear (EC: MG2 - INACTIVE)
2 WCT1/0/2 Clear (EC: MG2 - INACTIVE)
3 WCT1/0/3 Clear (EC: MG2 - INACTIVE)
4 WCT1/0/4 Clear (EC: MG2 - INACTIVE)
5 WCT1/0/5 Clear (EC: MG2 - INACTIVE)
6 WCT1/0/6 Clear (EC: MG2 - INACTIVE)
7 WCT1/0/7 Clear (EC: MG2 - INACTIVE)

highlights how MG2 is attached to the channels on this TE122 card.
sruffell
Oldsterisk
 
Posts: 92
Joined: Fri Jan 07, 2011 2:02 pm

Re: Echo cancelling problems

Postby gossamer » Sun Sep 25, 2011 4:22 pm

sruffell wrote:Alex,

The most likely culprit here is that you are attempting to enable echotraining on the channel but you have not attached a software echocanceler to the channel.

What are the contents of /etc/dahdi/system.conf? You will want to make sure you have an echocanceler configured as described at the end of http://svnview.digium.com/svn/dahdi/too ... onf.sample.

You can also see what the current echocanceler attached to a channel is in the proc file system. For example:

# head /proc/dahdi/1
Span 1: WCT1/0 "Wildcard TE122 Card 0" (MASTER) B8ZS/ESF ClockSource
IRQ misses: 1

1 WCT1/0/1 Clear (EC: MG2 - INACTIVE)
2 WCT1/0/2 Clear (EC: MG2 - INACTIVE)
3 WCT1/0/3 Clear (EC: MG2 - INACTIVE)
4 WCT1/0/4 Clear (EC: MG2 - INACTIVE)
5 WCT1/0/5 Clear (EC: MG2 - INACTIVE)
6 WCT1/0/6 Clear (EC: MG2 - INACTIVE)
7 WCT1/0/7 Clear (EC: MG2 - INACTIVE)

highlights how MG2 is attached to the channels on this TE122 card.


Yes, this was the solution, thanks. For reference, here is my complete system.conf:

Code: Select all
# egrep -v '^#|^$' system.conf
loadzone = us
defaultzone=us
channels=1
echocanceller=mg2,1-8
fxsks=1-4

I only have one phone line:
Code: Select all
# cat /proc/dahdi/1
Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)

           1 WCTDM/4/0 FXSKS (In use) (EC: MG2 - INACTIVE)
           2 WCTDM/4/1 FXSKS (In use) RED (EC: MG2 - INACTIVE)
           3 WCTDM/4/2 FXSKS (In use) RED (EC: MG2 - INACTIVE)
           4 WCTDM/4/3 FXSKS (In use) RED (EC: MG2 - INACTIVE)


Thanks again,
Alex
gossamer
Newsterisk
 
Posts: 25
Joined: Wed Jan 19, 2011 7:35 pm

Re: Echo cancelling problems

Postby atomattias » Thu Mar 22, 2012 5:46 am

What was your solution to this problem. please help me, i am fighting with the same problem. for many days
atomattias
Newsterisk
 
Posts: 2
Joined: Thu Mar 22, 2012 5:39 am

Re: Echo cancelling problems

Postby atomattias » Thu Mar 22, 2012 5:48 am

I mean "this" the above problem. i have exactly the same problem as you had
atomattias
Newsterisk
 
Posts: 2
Joined: Thu Mar 22, 2012 5:39 am

Re: Echo cancelling problems

Postby srueda » Sat Apr 28, 2012 11:34 pm

atomattias wrote:I mean "this" the above problem. i have exactly the same problem as you had


Atomattias, the way i solved this issue is by setting:
echotraining=no
in /etc/asterisk/chan_dahdi.conf
Hopefully this will help you.
srueda
Newsterisk
 
Posts: 2
Joined: Mon Jun 20, 2011 2:07 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 12 guests