Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

SIP Audio Problems: Difference between revisions

m
 
(38 intermediate revisions by 2 users not shown)
<indicator name="VoIP">[[File:menu-voip.svg|link=:Category:VoIP_Faults|30px|Back up to the VoIP Faults page]]</indicator>
[[Category:VoIP Faults]]
 
 
Here is a list of things to go through when dealing with VoIP Quality issues with VoIP calls, eg: calls breaking up, garbled audio, silence or gaps in the call.
*If you have registration problems then this page isn't going to help much
*CODECs are not mentioned here, as A&A only support G7.11 A-LAW CODEC
 
= Brief overview =
Here is a very brief overview of types of audio problems, their cause and the fix. This is not exhaustive, and usually there isn't a quick fix and diagnosing and investigation is required.
 
=== Types of problems that could be reported ===
* VoIP calls audio has echo echo
* VoIP calls are <big>too loud</big> or <small>too quiet</small>
* VoIP calls sound like they are under water
* VoIP calls are silent
* Audio starts out ok, but stops after a few seconds or a few minutes
* Audio has gaps, missing words
 
==General direction to take with different types of audio problem:==
 
{| class="wikitable"
|+ SIP Audio Problems, quick fixes or things to do
|-
! Type !! Typical Cause !! Typical fix
|-
| '''No audio''' || On mute, handset loose cable?! Firewall/NAT blocking traffic || Investigate firewall/NAT/ALG
|-
| '''Short silent gaps''' || Packet loss || Check internet quality
|-
| '''Audio garbled''' || Internet quality || Check jitter and quality of internet connection
|-
| '''No audio after a few minutes''' || Firewall/NAT/session timeouts || Investigate firewall/NAT/ALG
|}
 
* Calling *100 will play a continuous 1Khz tone - if the audio breaks up then there is a problem
 
== Audio transportation ==
 
The cause of an audio problem needs to be determined, especially if it's intermittent or only in one direction.
 
This diagram shows the possible places (each arrow) that could affect audio on a call.
 
[[File:Voip-audio.drawio.png|800px|frameless]]
 
The checks and questions outlined below go to some length to try to pinpoint which step is introducing the audio problem.
 
=== A&A Recordings ===
 
A&A Call recording can narrow down the cause of the problem, as it captures the audio part way through the path. This can tell if we are receiving bad audio from either party or not and so is a good way to narrow down the cause of the problem.
 
[[File:Voip-audio-recording.drawio.png|800px|frameless]]
 
= Checklist: =
 
== NAT ==
If your phones are are on a 192.168.x.x or 10.x.x.x IP address then they will be behind a NAT router. Our [[VoIP NAT|VoIP and NAT]] page has information and tips if your phones are behind a NAT router and you have problems.
 
== Things to figure out ==
Dealing with audio problems can be tricky, we need to identify as much detail about when the problems happens to aid investigation.
* Exactly how is audio affected? gaps, garbled, delayed, silence after a few minutes, etc.
* Is the audio problem heard on call recordings - this feature can be enabled on the control pages
** Our call recording software has a large jitter buffer and rearranges out of order packets, so bear in mind it is possible for a garbled call to have a perfect call recording.
* Is the audio problem only on incoming or outgoing calls, or on both?
* Is the audio problem present on 'internal to A&A' calls - eg, if you call another A&A number such as our technical support. Or is it only affecting calls that are sent outside of A&A
* Does it affect calls to/from BOTH mobiles and landlines, or just one?
* If only mobiles, is it specific to a particular carrier, eg onle EE, or Three, etc
* Is the audio problem heard on both sides of the call, or just one? Which side?
* Test the above multiple times so as to be sure.
* If problem is outbound, then A&A Support can provide details on how to test making calls via the different upstream carriers that we use.
 
{| class="wikitable"
|+ SIP Audio problems, things to figure out
|-
! Question !! More info
|-
| '''Exactly how is audio affected?''' || gaps, garbled, delayed, silence after a few minutes, etc.
|-
| '''Heard on call recordings?''' || this feature can be enabled on the control pages Our call recording software has a large jitter buffer and rearranges out of order packets, so bear in mind it is possible for a garbled call to have a perfect call recording.
|-
| '''Just incoming or outgoing calls,''' || ...Or on both? Knowing the direction us useful
|-
| '''internal to A&A calls OK?''' || if you call another A&A number such as our technical support. Or is it only affecting calls that are sent outside of A&A
|-
| '''BOTH mobiles and landlines''' || If only mobiles, is it specific to a particular carrier, eg onle EE, or Three, etc
|-
| '''Are both sides of the call affected''' || or just one? Which side?
|-
| '''If problem is outbound...''' || A&A Support can provide details on how to test making calls via the different upstream carriers that we use
|-
| '''What has changed recently?''' || eg, phone or pbx software upgrade, new broadband router, new ISP, new phone etc...
|}
 
=== A Checklist: ===
 
When investigating audio problems, especially if it's only on some calls and in one direction, it may be useful to go through a list of call types and describe what happens on each call for each person on either end of the call.
 
This table may help in these cases, make test calls and fill in the yellow boxes.
 
{| class="wikitable"
|+ Table of questions and test calls to try
|-
!
!
!
!
!
|-
| style="font-weight:bold;" | General Questions
| When did this start?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Describe the general problem
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Is it every single call that has the problem?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Can the problem be reproduced on demand?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Who is the internet provider?<br />
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Does calling *100 give a constant tone?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| Has a different phone/softphone be tried?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| What is the internet router being used?
| colspan="3" style="background-color:#ffffc7;" |
|-
|
| colspan="3" | ping voicelesss.aa.net.uk -c 1000
| style="background-color:#ffffc7;" | send results to A&A support
|-
|
| colspan="3" | mtr --aslookup --show-ips -o LA --report-cycles 1 --report-wide voiceless.aa.net.uk
| style="background-color:#ffffc7;" | send results to A&A support
|-
| style="font-weight:bold;" | Test calls to make:
|
|
|
|
|- style="font-weight:bold;"
| style="font-weight:normal;" |
| style="font-weight:normal;" |
| Is it OK?
| If not, describe problem
| Describe what's heard on the call recording
|-
| An incoming call from a mobile to the A&A Service<br />
|
|
|
|
|-
|
| Audio from the mobile
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
|
| Audio to the mobile
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
| An outgoing call to a mobile
|
|
|
|
|-
|
| Audio from the mobile
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
|
| Audio to the mobile
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
| An incoming call from a 'land line' to the A&A Service
|
|
|
|
|-
|
| Audio from the landline
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
|
| Audio to the landline
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
| An incoming call from the A&A Office
|
|
|
|
|-
|
| Audio from the office
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|-
|
| Audio to the office
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
| style="background-color:#ffffc7;" |
|}
 
== Things to investigate ==
 
* Check the quality of the internet connection
When did the problem start? - what changed around that time?
* Was phone system upgraded?
* Was the telephone software upgrades?
* Was the internet connection changed?
* Was the internet router changed?
* etc
 
Then:
 
* Check the quality of the internet connection - broken audio can be down to a poor internet connection
* Calling *100 will play a continuous 1Khz tone - if the audio breaks up then there is a problem
* Check the CQM graph (if using A&A for the internet connection)
* Check for other traffic on the internet connection - spikes in traffic can affect audio
* (if non-A&A internet) Try a different Internet connection, including using a different ISP
* Try non-NAT
* -Disable/Enable any SIP ALG on the broadband router - if it's a feature
* If it's only the incoming audio that is broken, look for the jitter buffer setting on the SIP device and increase it bit by bit.
 
* Get a pcap and use Wireshark to decode it
* Wireshark can play audio with different jitter buffer settings so you can sometimes recreate audio problems from the pcap
* Wireshark can [calculate jitter and delta stats](https://wiki.wireshark.org/RTP_statistics) calculate jitter and delta stats]
** Packets can arrive bunched up, with gaps between, or out of order. Jitter is a measurement of this.
** Wireshark calculates jitter as per the definition in [RFC3550](https://www.rfc-editor.org/rfc/rfc3550#page-94) RFC3550] so it uses a standard formula.
** Delta is the time difference between arrival of RTP packets. Max delta is the highest gap between arrival of packets. If the max delta is greater than the jitter buffer, audio will start getting dropped. Each packet usually contains 20ms of audio, so for high enough max delta you'll start to lose audio in 20ms chunks.
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,548

edits