Tech

IP-based authentication is not dead yet

Published on:

June 30, 2015

Usually every domain needs their own telephone number or numbers that link the world of VoIP with the good old telecom industry. This is done using SIP trunks. While it is possible to share a SIP trunk with several domains, most hosted providers prefer one trunk per domain. But how does the SIP trunk provider know which trunk is being addressed when there is a call coming in?

Running multiple instances on a single IP address has a lot of benefits, especially when you are still on IPV4. Many clients can share the same host similar to what is standard today on web servers that can have hundreds and thousands of domains on a single server.

Usually every domain needs their own telephone number or numbers that link the world of VoIP with the good old telecom industry. This is done using SIP trunks. While it is possible to share a SIP trunk with several domains, most hosted providers prefer one trunk per domain. But how does the SIP trunk provider know which trunk is being addressed when there is a call coming in?

The SIP RFC provides several ways to identify where the call comes from on the SIP side. The caller-ID itself is not very useful as it can be spoofed easily, so it does not really count. Most service providers use a simple registration with the right password and a somehow unique contact in the SIP request to figure out where the request comes from.

Thinks get tricky on a multi-tenant PBX when the trunk identification is based on the IP address and the port. If it is only based on the IP address, then the potentially hundreds of domains can use only one telephone number, practically putting that SIP trunk provider out of business for that hosted PBX. Some trunk providers also consider the port, then it would be possible to open another port on the host for that trunk, so that all communication inbound and outbound run on that port.

This is what we have just added to the Vodia PBX. With the next version (post 5.2.6) it will be possible to use SIP service providers that solely rely on the IP address and port for the authentication. All you need to do to make this happen is to add another port to the list of SIP UDP ports on the PBX admin level and then mention that port number in the trunk setting. Then when that port is really available, the PBX will prefer that port for sending traffic from that trunk.

This feature is possible because the PBX is able to deal with a list of ports, not just one port for IPv4 and for IPv6. The performance implications are modest as long as there are not hundreds of those ports. The new open ports also slightly increase the exposure to SIP attacks; however realistically if you have already port 5060 open an attacker would not have any reason to try non-standard ports anyway.

The whole story reminds me a little bit about H.323, where a lot of the backbone VoIP traffic was sent based on the IP address for authentication. Let’s hope hackers don’t find an easy way to put themselves into the middle of that traffic and use this primitive authentication method to their advantage.

Latest Articles

View All

Vodia: Optimizing Enterprise VoIP

At Vodia, we recognize the inherent challenges facing enterprise VoIP, particularly in maintaining high-quality audio connections amidst factors like jitter, network latency, and packet loss. These issues disrupt the seamless communication experience essential for business operations. To address these challenges, we've developed innovative solutions within our PBX, such as recording decrypted RTP packets and offering flexible options for data privacy. Our commitment lies in resolving these obstacles efficiently, ensuring businesses can rely on uninterrupted communication without compromising on security or performance.

May 15, 2024

Transcribe Recorded Calls and Voicemails in Multiple Languages with the Vodia Cloud Phone System

Unlock the power of multilingual communication with Vodia's Cloud Phone System, supporting up to 18 languages for transcription and translation. Our global commitment to innovation ensures accessibility to our feature-rich PBX worldwide. Using AI language models, Vodia enables speech-to-text and text-to-speech conversion in 18 languages. Seamlessly integrate languages like Arabic, Spanish, and Japanese into your Vodia PBX. Enhance customer service, streamline call handling and expand your global reach with our multi-language capabilities.

May 7, 2024

Version 69.2.4 of The Vodia Phone System Now Available​

Vodia recently released version 69.2.4, the latest update to their industry-leading cloud phone system. This update boasts a completely rebuilt frontend, providing a modern user experience, and integrates seamlessly with nearly any browser-based platform. A key feature is integration with Grafana, a powerful tool that enables comprehensive monitoring of Vodia instances across various platforms. Version 69.2.4 also brings several other improvements, including the ability to add custom notes to accounts, sending CDR emails for regular extensions, and enhanced support for Mitel 68xx and 69xx series phones.

April 30, 2024