Home / PBX Appliances / FreePBX - Appliances / FXO Tuning for Echo

FXO Tuning for Echo


In case you are having echo over your analog calls, here are some options to try. Keep in mind that if you would like to receive/detect faxes on your analog lines, we do not recommend enabling any echo cancelation option.

Also, be aware you will need to perform these actions when you have no calls because you need to restart the unit several times.


DAHDI Config


The first thing to do is enable echo at the DAHDI Config level.

  • Go to Connectivity > DAHDI Config
          

  • Click on Global Settings and a new window will emerge. 
        

  • Set to 'YES' the options Enable Echo Canceling and Enable EC when bridged
         

  • Click on Save and Apply Config
       


  • When the system finishes reloading click on Restart DAHDI and Asterisk
         

  • Reboot the server.


FXO Tune


Another thing to try is FXO Tune (fxotune). The FXO Tune utility is included in DAHDI-tools (see our DAHDI wiki here ), and it is used to calibrate hybrid impedance on analog cards, when audio problems are experienced on an analog connection.


FXO Tune has three modes of operation:


  • Detect mode (i): Detects and tunes all the available FXO channels.  It writes settings to a configuration file (/etc/fxotune.conf) from which it can be loaded (e.g: at startup)  using -s.
  • Dump mode (-d): Runs detection on a single DAHDI channel,  and  dumps waveforms to fxotune_dump.vals.
  • Startup mode (-s): fxotune just reads the settings from fxotune.conf into the FXO modules.

In our case, we will use the Detect mode.


  • To know the port number of your FXO ports configured by DAHDI, you can go to Connectivity > DAHDI Config > Analog Hardware Tab and see what are the FXO ports in your device:


      




  • or with the command service dahdi status


              



For our example the FXO ports are 5,6,7,and 8


  • Before running the fxotune command we need to stop all the Telephony services with the command fwconsole stop
               

  • With this information we will run the following command:

  fxotune -i -n 4 -b 5 -e 8 -p -vvv


    • Where:
    • -i = Run the command in Detect Mode.
    • -n = Digits to dial to the PSTN in order to get it stop its dial tone and waiting for the next digit. In this case the program will dial 4.
    • -b = Start tuning from DAHDI channel number.
    • -e = Tune only up to DAHDI channel number.
    • -p = Print the top five detected echo cancellation parameters

  • The fxotune command should take about a minute per channel.
  • FXO Tune will write the results to /etc/fxotune.conf.

  • This is part of the output when running the command:


               


  • When fxtotune is done it will show the following status.



  • Here are the contents of the file  /etc/fxotune.conf
         


  • Don't forget to restart the server when fxotune is finished with the command reboot or shutdown -r now.




     RSS of this page