Chapter 4. Optimizing Connectivity

Table of Contents

Codec selection
Recommendations
Media stream encryption compatibility
Supporting multiple schemes
Recommendations for maximizing connectivity
Recommendations for security
Use ICE and a TURN server
Use the TLS transport for SIP signalling
Getting through firewalls

People who have tried many of the free RTC softphones have observed that they don't always work through firewalls or NAT networks. Sometimes these problems give visual feedback, in the form of error messages advising that the call can't proceed. In other cases, the call appears to be connected but audio only works in one direction or stops after some brief period of time.

Metcalfe's law tells us that the value of a telecommunications network is proportional to the square of the number of connected users of the system (n2), demonstrated in Figure 4.1, “Metcalfe's law”.

Figure 4.1. Metcalfe's law


Therefore, the benefit of making the solution work for all those users who may suffer in certain NAT environments does not just have a gradual or linear impact, the benefit is quadratic.

Today's RTC technology gives us the tools to deal with these problems in the vast majority of cases. This chapter gives an overview of the main concerns.