Test if Hardware Echo Cancellation is Working
Verify that your Sangoma card has hardware echo cancellation
-> type:Â wanrouter hwprobe
------------------------------- | Wanpipe Hardware Probe Info | ------------------------------- 1 . AFT-A108-SH : SLOT=1 : BUS=5 : IRQ=17 : CPU=A : PORT=1 : HWEC=256 : V=43 2 . AFT-A108-SH : SLOT=1 : BUS=5 : IRQ=17 : CPU=A : PORT=2 : HWEC=256 : V=43 3 . AFT-A108-SH : SLOT=1 : BUS=5 : IRQ=17 : CPU=A : PORT=3 : HWEC=256 : V=43 4 . AFT-A108-SH : SLOT=1 : BUS=5 : IRQ=17 : CPU=A : PORT=4 : HWEC=256 : V=43
Â
Â
at the end of the output if you see:
HWEC=0Â <---no hardware echo cancellorÂ
HWEC= <anything not 0>   <---you have hardware echo cancellationExample of "wanrouter hwprobe" for card with Hardware echo cancellation:
Â
type: wanpipemon -i wXg1 -c ehw  (where X=1,2,3..for interface. ie w1g1)
If your hardware echo cancellor is activated and being used, the output should show the following for all your channels:Â
# wanpipemon -i w1g1 -c ehw  Sangoma HW Echo Canceller is enabled for channel 2 Sangoma HW Echo Canceller is enabled for channel 3 Sangoma HW Echo Canceller is enabled for channel 4 .....
Â
If your Sangoma card DOES have hardware echo cancellation and you see:
            Sangoma HW Echo Canceller is disabled for all channels!
This means hardware echo cancellation is disabled, not used
so,
-> vi /etc/wanpipe/wanpipeX.conf  (replace X with 1,2,3,4...)
-> verify near the end of each file TDMV_HWEC= YES:
[w1g1]
     ACTIVE_CH      = ALL
     TDMV_HWEC      = YES
     MTU            = 8 |
Â
Â
-> If TDMV_HWEC=NO, change to YES, then restart wanpipe, "wanrouter restart" (make sure Asterisk/FreeSWITCH is stopped first)
-> If TDMV_HWEC=YES and you still have this issue, restart wanpipe:
   -> wanrouter restart  (make sure Asterisk/FreeSWITCH is stopped first)
-> run wanpipemon -i wXg1 -c ehw again and see if issue is resolved
   -> if issue not resolved, please contact Sangoma Technical Support
Â
For Customers using Asterisk and Dahdi:
-> If wanpipemon -i wXg1 -c ehw indicates echo cancellation is enabled, Dahdi software echo cancellation is NOT used. Disregard the MG2/OSLEC information in /etc/dahdi/system.conf:
Â
Dahdi software echo cancellation is only enabled if Sangoma Hardware echo cancellation is disabled/not present. Asterisk/Dahdi checks to see if Sangoma card has hardware echo cancellation. If it does, Asterisk/Dahdi uses Hardware echo cancellation and disabled software echo cancellation. It cannot run both hardware and software echo cancellation at the same time. Â
A further check to verify software echo cancellation is not being used:
-> During a call (with wanrouter started of course), run the following command:
   -> lsdahdi
The above command will indicate the live status of Dahdi's software echo cancellation for each channel
The following is an example of "lsdahdi" during a call for a Sangoma card WITH hardware echo cancellation enabled:
Â
Â
Â
Â
If software echo cancellation was enabled and being used instead of Hardware echo cancellation, the above output would have indicated:
-> (EC: MG2 -Â ACTIVE)Â