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 / Software / What is fxotune and how do I use it?

What is fxotune and how do I use it?

Views: 7559, Votes: 1

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 I am hearing an echo. What can I do to fix this?
document How do I install the G.729 Codec?
document What is Asterisk?
document I want to execute asterisk command in shell. How do I do that ?
document I want to be able to log the console output. How do I do that ?
document I updated asterisk code from SVN and now I want to go back to older code. How can I do that ?
document ACD Terminology
document Do I need a sound card for music on hold or voicemail?
document How many calls can I get on a system simultaneously?
document Why do I hear echo when I make a call?
document How do I execute Asterisk commands in a shell?
document How do I log console input?
document ACD terminology?
document What is the maximum number of simultaneous calls allowed by Asterisk Business Edition?
document How do I use Windows Messenger with Asterisk?
document Why won't Asterisk start?
document Why am I not getting any audio using SIP?
document Why am I only getting audio in one direction using SIP?
document Why does Asterisk's Playback function not work?
document How can I get additional debug information for SIP?
document Why am I getting dropped calls?
document Why am I getting phantom rings?
document Why am I having DTMF detection problems?
document Why is there a pause after the last DTMF digit?
document Can I use G.729 on a 64-bit system?
document Why am I not getting a dialtone using a channel bank and a T1 card?
document Why is my handset not ringing?
document I'm running SELinux and Digium's G729 codec won't load properly. What can I do?
document How can I get additional debug information for IAX?
document How can I get additional debug information for RTP?
document What ports does SIP use?
document What ports does IAX use?
document Does the IAX protocol traverse NAT easily?
document Why am I getting a clicking noise?
document How do I troubleshoot problems over email with Digium's Technical Support staff?
document How do I convert the IVR prompts I've purchased from Digium to a format usable by Asterisk?
document Does Asterisk support faxing?

RSS Powered by KBPublisher (Knowledge base software)