How to I disable echo cancellation module without removing the hardware?

You’ll need to:

  1. Stop Asterisk
  2. Stop DAHDI
  3. Unload the driver for your card from the Linux kernel
  4. Load the driver for your card with the module parameter “vpmsupport=0”.

You can stop Asterisk with the command:

asterisk -rx “core stop gracefully”

You can stop DAHDI with the command:

/etc/init.d/dahdi stop

In order to find the kernel module that matches your card, search for the knowledgebase article that shows which kernel modules match which hardware cards.

In this case, we’ll assume you have an AEX2400 card. The AEX2400 uses the wctdm24xxp kernel module.  Please adjust the instructions below to match your adapter’s driver (e.g. wcte12xp, wct4xxp).

From the Linux command line run the command:

rmmod wctdm24xxp

Now that the kernel module has been unloaded, we can load the kernel module with a parameter that disables the echo canceling hardware with this command:

modprobe wctdm24xxp vpmsupport=0

You can verify that the VPM has been disabled after the module has been loaded by running the command:

dmesg

and checking to see that the last few lines contain something like this:

wctdm24xxp 0000:01:04.0: VPM: Support Disabled
Alternatively, users can disable the VPM temporarily without reloading the driver, like so:
echo 0 >  /sys/module/wctdm24xxp/parameters/vpmsupport
Note that reloading the driver will clear this setting.To make these changes permanent (i.e., make the change survive across a system reboot), add the following to the file (/etc/modprobe.d/dahdi.conf, consult your system documentation for details on exactly how to do this for your Linux distribution):

options wctdm24xxp vpmsupport=0

Note that you should change “wctdm24xxp” to the name of your particular card’s driver (e.g. wcte12xp or wct4xxp).  Simply restarting DAHDI will load that change.

Related Posts

  • 50
    cd : Change Directory The cd command, which stands for "change directory", changes the shell's current working directory. It is a builtin command, which means that it is executed directly by your shell, instead of launching an external program. cd is a command-line OS shell commandused to change the current working directory…
    Tags: change, command, linux
  • 45
    rsync = Remote Sync This is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions of files that have changed. This is a very flexible network-enabled syncing tool. Due to its ubiquity on Linux and Unix-like…
    Tags: linux, command
  • 42
    SELinux  - Security-Enhanced Linux Linux is regarded as one of the most secure operating systems you can use today, that is because of its illustrious security implementation features. For starters, SELinux is described as a mandatory access control (MAC) security structure executed in the kernel. SELinux offers a means of enforcing some security…
    Tags: disable, linux, system
  • 42
    What is Asterisk? Asterisk is an open source framework for building communications applications. Asterisk turns an ordinary computer into a communications server. Asterisk powers IP PBX systems, VoIP gateways, conference servers and other custom solutions. It is used by small businesses, large businesses, call centers, carriers and government agencies, worldwide.…
    Tags: asterisk
  • 41
    Use the blow command to set the linux date #date 072511242014 where 07= mm (Month) 25=dd (Date) 11=hh (Hour) 24=mm (minute) 2014=yyyy (Year)
    Tags: linux, command

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: