Knowledge Base

The Digium Knowledge Base is a searchable library of troubleshooting advice and current information updated by Digium support technicians.


Search:     Advanced search
Browse by category:
Contact Us

Knowledge Base / Installation / What is fxotune and how do I use it?

What is fxotune and how do I use it?

Views: 10108, Votes: 2

Posted:
08 Nov, 2006 - Support D.

Updated:
08 Nov, 2006 - Support D.

Print Email article
Q. I have echo problems on my FXO modules and I've tried the different echo cancellation algorithms in zconfig.h, tried tweaking the gains, and still nothing works. What can I do?

A. Use the fxotune utility.

To use:
Just run the fxotune utility with the -i option. (`fxotune -i 4`) It should discover which zap channels are FXO modules and tune them accordingly. Be warned however, it takes a significant amount of time for EACH module to test, I would say somewhere around 2-3 minutes. But you only have to initialize it once for the line. It will write a configuration file to /etc/fxotune.conf. You will need to have your system run fxotune with the -s flag (`fxotune -s`) to set the module with the previously discovered values from fxotune.conf for it to take affect, so essentially if each time you reboot the machine you need to run `fxotune -s`. You might consider putting it in your startup scripts some time after the module loads and before asterisk runs.

NOTE: The digit after the -i option is the digit that will break dialtone on the line.
Basically make sure asterisk isnt running and that zaptel and wctdm modules are loaded as fxotune needs direct access to the zap channel

CLI>stop now (just Asterisk)
followed by
#modprobe zaptel
#modprobe wctdm
#/usr/src/zaptel/fxotune -i 4
Other articles in this category
document How do I install the Zaptel drivers on a system running Fedora Core?
document How do I install Zaptel drivers on a system running Redhat?
document Do I need a sound card for music on hold or voicemail?
document How do I install Digium's T1/E1 cards?
document What do I do if I can't compile Zaptel package on my system ?
document How do I upgrade the firmware on my S100i / S101i (Iaxy)?
document How do I install the TDM2400P/TDM400P?
document Can I use G.729 on a 64-bit system?
document I get errors mentioning "zone_lock" when I try to compile zaptel. How do I fix it?
document How do I troubleshoot problems over email with Digium's Technical Support staff?
document How do I install and start the OpenSSH daemon?

RSS Powered by KBPublisher (Knowledge base software)