Asterisk®-based PBX Solutions

White Papers

TwinStar: Full PBX Redundancy

Xorcom's dual-server high availability solution for Asterisk-based PBX Best of Show Award for TwinStar
received the "Best of Show" award. Find out why!
Join the Xorcom Partner Channel
 

Treating Echo

Introduction to Treating Echo in Telephony Systems and in Asterisk

Echo in telephony systems is a phenomenon in which one caller hears the echo of his own voice after a short (or long) delay, alongside the remote party's voice. There are two sources of echo in telephony systems:

  1. Network echo, which is produced by the interface between the two-wire local subscriber loop (a telephone set, for example) and the four-wire transmission system of telecommunications trunk lines (PBXs, PSTN, etc.).
  2. Acoustic echo, which is caused by feedback at the terminal device level, such as phone speaker acoustic feedback to its microphone.

Both types of echo can occur simultaneously in any single connection, compounding the negative effects. Although echo can be generated on both sides of the line (as a matter of fact, at each point that the four-wire system interfaces with the two-wire system), the echo that degrades phone call quality is typically generated on the other party's equipment (the remote side).

The reason that the local echo does not affect the call is simple: when a portion of the voice energy is fed back into the earpiece with a very small delay (milliseconds), we hear it as the positive feedback of a working telephone line. Telephone sets are designed to feed our voice back from the microphone to the earpiece, and the local echo is just additional volume that is perceived as acceptable.

Reducing Echo in Asterisk Systems

The main reason for line echo generation is impedance mismatch. Impedance is the circuit resistance to AC signals, and it changes with frequency. The first step to reduce echo is to match impedances.

In Asterisk, this is done in two steps:

  1. Set the country (in /etc/zaptel.conf loadzone = [your country]) and adjust the impedance of the FXO ports to match those of the PSTN lines.
  2. Fine-tune the impedance matching by running the “FXO Tune” program (execute the “fxotune” command as root user).

This program sends a tone to the telephone line and listens to the echo level. It checks the echo with different parameters, and chooses the parameter set that produces the least amount of echo.

Eliminating Echo in Asterisk Systems

The procedure described above will decrease the echo, but will not eliminate it. Echo cancellation is done by a signal processing code that compares the digital voice that is sent to the circuit with the digital voice that is received by the circuit. When a pattern is identified, the signal processing program subtracts it from the outgoing signal, producing an echo-free signal for transmission.

More information about echo in telephony systems can be found at: http://www.linuxjournal.com/article/8424 and: http://www.gipscorp.com.


Last Updated ( Friday, 31 October 2008 )
 
  • Send to a friend
  •  
    Bookmark and Share
    rs_teleinterface.jpg

    Xorcom has developed a revolutionary concept in telephony interfaces for Asterisk systems which we call Astribank XPP Technology.

    Using USB 2.0 ports to connect to any Asterisk server, Astribank eliminates the requirement for a PCI (E1/T1) card, and even for PCI slots.

    Can You Run 300 Concurrent Calls on an Asterisk Server?

    Find out the answer and more in the results from load tests recently performed on the XR3000, and explained in the "Five Culprits that Kill Asterisk IP-PBX Performance" recorded webinar.

    Related Info - White Papers
    Xorcom has developed a library of white papers to help leverage the benefits of VoIP technology in general, and the Asterisk platform in particular:



    U.S. & Canada Latin America EMEA APAC Africa
    Feedback Form