PRI- Audio/Noise Issues
This page will help to resolve the following audio issues:
Â
Low Volume
If there are issues where the calling or called party hears the remote side too quiet, there is an option in chan_dahdi.conf (located in /etc/asterisk directory) where you can increase the gain in either direction.
Open /etc/asterisk/chan_dahdi.conf
locate:
rxgain=0
txgain=0ÂGain Settings: increasing / decreasing the volume level on a channel.
The values are in db (decibells). A positive number will increase the volume level on a channel and a negavive value decreases volume level.
There are several independent gain settings: rxgain: gain for the rx (receive - into Asterisk) channel. Default: 0.0
txgain: gain for the tx (transmit - out of Asterisk Asterisk) channel. Default: 0.0Â
Change the gain value according to your needs
restart Asterisk for changes to take affect
Make your test call where the issue should be fixed
If the issue still persists, then the issue is either on your SIP side, or your telco side (the Sangoma card does not have any affect on the audio volume)
Robotic, choppy Sound
Â
The following information will help you resolve an issue where calling parties and/or users hear weird sounds, static, choppy and robotic audio.
Typically this issue occurs due to 3 reasons:
Poor physical layer connection
server is under-performing, causing data loss and bottleneck situation
Timing related issue due to clock synchronization issues (from the lines plugged into the Sangoma card)
Â
For Poor Physical layer connection use wanpipemon to verify the RX level is ideal and the performance counters are not incrementing.
Type the following in your Linux command line:
-> wanpipemon -i wXg1 -c Ta
(replace X above with the Wanpipe port in question).
You will see an output similar to the image below
As seen in the image above, the RX level is ideal at -2.5db
View the Performance Monitoring Counters for increments. If this occurs this is the cause for bad audio. Contact your telco for resolution.
To monitoring the performance counters over time, simply re-type the wanpipemon command a few more times and compare.
Â
Â
For scenarios 2 and 3, visit full troubleshooting information at:
    -> Troubleshooting-Telephony Cards- Overruns & Performance Issues
Â
If the above page does not help you resolve your issue with robotic, choppy sound, make sure to have visited the DAHDI Chunk side adjustment page.  This may resolve all your issues.Â
Â
If your card has a hardware echo canceller try disabling it during the time of issue, incase the issue is due to your card itself:
Â
Make your call that experiences the issue
Identify which port the call is on, that is having audio issues
Type the following command to disable the hardware echo canceller immediately:
wan_ec_client wanpipeXÂ disable
replace X with the port number in question
if successful you will notice the following output
If you notice all the audio issue go away, please contact Sangoma support at support.sangoma.com
If there is no difference you can re-enable the hardware echo canceller via the following ways:
type:Â wan_ec_client wanpipe1 enable
restart wanpipe:Â wanrouter restart
Â
If non of the above info has assisted, it is time to take an Audio trace to narrow in on the issue:
If your Card has a hardware echo canceller, take a HWEC trace and a dahdi_monitor trace
If your Card does NOT have a hardware echo canceller, take only a dahdi_monitor traceÂ