Tech

Vodia: Optimizing Enterprise VoIP

Published on:

May 15, 2024

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.

While recently wrapping up a project with a large number of devices connected over wireless, we encountered some challenges with the quality of the audio connection. These sorts of issues are not uncommon, particularly within the realm of Voice over Internet Protocol (VoIP) applications. The key difference between VoIP and many other web applications is its real-time nature; unlike traditional Web applications, wherein data can be buffered and processed before delivery to the user, VoIP requires the transmission and reception of audio data in real-time to ensure seamless communication. This real-time requirement introduces unique challenges in maintaining audio quality, as factors such as jitter, network latency and packet loss often result in negative impacts on the user experience. Additionally, the quality of the audio connection often depends on the type of codec used, the efficiency of the audio processing algorithms and the hardware components involved in the reception and transmission of audio data.

Finding the needle in the haystack

Our experience investigating media-related issues during a past project involving a large PCAP file with concurrent calls prompted us to develop a feature for our PBX that records the packets associated with each call, along with the call record. This feature greatly simplified the process of identifying and troubleshooting media issues, including bursts, excessive jitter or one-way audio.

The ability to conveniently find a problematic call in the call log and download the corresponding packets saves a significant amount of time. Encrypted media presented a challenge, however, as playback of the actual audio in Wireshark was complex and time-consuming. To address this, our phone system now records the decrypted RTP packets for easy playback, eliminating the need for manual extraction and decryption of SDES crypto lines from SDP in INVITE packets. Unfortunately today, for DTLS-encrypted media streams, there isn’t a way to decrypt the media stream after the PCAP has been recorded, which highlights the effectiveness of DTLS in securing media streams.

Further optimization involved enriching the packet information with details such as destination IP addresses, source and timestamps. In Linux, we leverage the socket's ability to report the actual timestamp when a packet is received, along with the IP addresses. While Windows only provides the IP addresses, it’s still an improvement over the original PCAP recording, where the addresses had to be inferred by the PBX.

Our ongoing efforts to refine the troubleshooting tool have greatly improved accuracy and efficiency. By recording decrypted RTP packets, capturing additional packet information and leveraging operating system capabilities, we have streamlined the process of identifying and resolving media-related issues. This enables a seamless, high-quality communication experience for our users.

Why not for every call?

The cost of hard drive space has decreased significantly, making it affordable to store large amounts of data. Calls typically occupy only a few MB, which is less space than modern camera photos require. Additionally, the CPU overhead associated with storing call data is minimal.

Privacy concerns arise, however, when considering call recording: calls contain sensitive information, and recording them carries various obligations and liabilities. For instance, callers may need to be notified their calls may be recorded, which is impractical in typical PBX deployments during media problem troubleshooting.

To address these concerns, we have introduced two additional options in the PBX. The first option allows for the inclusion of SIP packets in every call record - SIP packets typically amount to a few KB of data, so even if the PBX records millions of calls, the additional hard drive space required is an insignificant amount for modern servers. Moreover, since SIP packets contain metadata about calls, the compliance requirements are much lower, as compared to actual conversation data. The caller ID is already included in the CDR, and the technical details of the call add limited information from a privacy perspective. This option is enabled by default, but it can be disabled by the system administrator.

The second option replaces the PBX media with dummy data. While every media packet is still added to the packet trace, the actual content is erased, ensuring there is no way to playback the actual content. Although playback is no longer possible, all other information is retained; this facilitates the identification of typical issues such as one-way audio, packet drops and burst problems.

Time is money

Everybody knows installing and operating hundreds of access points isn’t possible without management tools capable of measuring the performance of the access points and the registered clients, the cost for such a project would explode. While home WLAN access points can be operated without such tools, complexities arise when multiple cells come into play. The same is true for VoIP projects that go beyond a handful of extensions. Tools and data collection are crucial for a successful project within a limited time budget. 

VoIP platforms like the Vodia PBX can integrate with external tools like VoIP monitors by sharing TLS master keys - this enables the decryption of packets. Other tools like sipcapture focus on SIP signaling, which provides valuable insights. When it comes to delving deeper into the timing of media packets, however, these tools fall short. This is where the Vodia PBX steps in and provides the media packets as well, encrypted or not, with meaningful data that can be analyzed by standard tools.

Most VoIP projects are executed at a professional level - they need to be profitable and stay within budget. Having the right data and the proper tools for analysis is paramount in achieving these goals. The PBX collects relevant data and makes it accessible for these tools to facilitate the identification and resolution of issues.

The future holds even more promise, thanks to the potential integration of Artificial Intelligence (AI) in data analysis: AI could provide suggestions or even make changes to the setup based on the collected data. Such tools are still in their nascent stages, and human intelligence remains indispensable for successful deployment in complex environments.

Having the right tools and data is essential for troubleshooting and optimizing telecommunication systems, especially in enterprise deployments. As technology advances, we can expect even more sophisticated tools and techniques to emerge, further enhancing our ability to manage and maintain these critical systems effectively and efficiently.

We are glad to help our partners

Vodia’s expertise in enterprise VoIP business makes it so our partners can deploy the highest quality professional services for impeccable customized communication experiences. Don’t hesitate to contact us with any inquiries, sales@vodia.com, (617) 861-3490.

About Vodia Networks

Vodia Networks, Inc. is a pioneering provider of B2B Cloud Communications Solutions catering to enterprises, contact centers and service providers. Vodia's PBX software boasts an extensive suite of business telephony features for on-premise and cloud-based systems and operates seamlessly across Windows, Linux or Mac platforms. Fully compliant with SIP industry standards, the Vodia phone system integrates effortlessly with a wide range of SIP-based devices and trunking providers, granting ultimate freedom in telephony. Vodia’s multi-tenancy platforms are compatible with an unprecedented number of technologies, including desk phones, softphones and APIs, for myriad third-party software and CRM systems. Our mission is to empower our partners and end-users with the world's best cloud PBX and personalized support to ensure their success at every turn. Visit Vodia on LinkedIn, Twitter and YouTube.

Derniers articles

Voir tous

Integrating OpenAI's Realtime API with Vodia PBX: Webinar Recording Now Available

In our recent webinar, "Integrate OpenAI’s Realtime API with Vodia PBX," we explored how integrating AI with your communication systems can revolutionize the way your business operates. From automating repetitive tasks to improving workflow efficiency, the webinar covered how the collaboration between Vodia PBX and OpenAI’s Realtime API can streamline operations, enhance collaboration - especially for Microsoft Teams users - and provide intelligent automation to stay ahead in a competitive landscape. If you missed the live session or want to revisit the insights, the recording is now available for you to access.

December 18, 2024

Unlock the Power of OpenAI’s Realtime API with Vodia PBX: Join Our Exclusive Webinar!

Join our exclusive webinar to explore how Vodia PBX seamlessly integrates with OpenAI’s Realtime API, unlocking powerful new capabilities for your communication systems. This session will showcase how AI-driven features can streamline workflows, improve operational efficiency and elevate the PBX experience for both general users and those on Microsoft Teams. Whether you’re looking to stay ahead of the competition or leverage the latest AI trends, this webinar offers practical knowledge and actionable strategies. Register now to secure your spot and take the first step toward transforming your telecom infrastructure with AI innovation!

December 4, 2024

Connecting to OpenAI Realtime API

This document details the beta version of the Vodia PBX that connects to the OpenAI realtime API, enabling users to interact with a chatbot via telephone. The backend JavaScript code facilitates the connection, handling audio input and output, and the WebSocket connection to the OpenAI API. The setup requires a Vodia PBX version 69.5.3 or higher, an API key, and a license with an IVR node. The demo can be accessed by editing the ivrnode.js template and creating an IVR node in the tenant. The system supports various VoIP devices and offers good voice quality. Future improvements include voice activity detection and the ability to take actions based on OpenAI responses.

November 26, 2024