Tech

Call PCAP

Published on:

October 14, 2013

Troubleshooting a PBX can be challenging, but the goal is to minimize issues through smart design, like providing NAT traversal solutions for SIP endpoints. When issues arise, it’s essential to have the right tools, such as SIP registration reporting, which notifies administrators of registration issues caused by firewalls or unstable internet connections. Additional tools help with provisioning problems by logging generated files and their history. For call-related issues, the PBX now captures call PCAPs based on trunks or extensions, making it easier to isolate specific problems. TLS and SRTP encryption are also addressed by decoding traffic before sending it to the PCAP subsystem, ensuring accurate timestamps for troubleshooting.

Troubleshooting is an unpleasant necessity when setting up and operating a PBX in the cloud or on customer premises. Our approach is to avoid trouble as much as possible by design; for example by providing a NAT traversal solution for SIP endpoints. However when it comes to trouble it is important to have the necessary tools to find out what is going on quickly.

Troubleshooting SIP registrations is relatively simple. By checking out the SIP packets, most cases can be closed quickly. We added registration stability reporting practically from version 1; when an endpoint losses it registration or changes its registration address, the administrator gets an email. This makes it easy to locate buggy firewalls and unstable internet connections. We have now even the overview on how phones are registered in a domain, which shows very quickly where the problems are.

We have also added more and more features for troubleshooting the provisioning process. The PBX writes the generated files into the “generated” folder into the file system. Here the administrator can take a look at what the phone has received for provisioning. The latest addition is a history file that shows when which file has been generated.

But the most recent addition is the troubleshooting tool for calls. We have seen an increased need to troubleshoot media-related problems with the PBX. This is probably because more and more deployments are happening out there in the “cloud”, where quality of service is not the same like in the LAN with a PSTN gateway. We have RTCP-XR reports for many years. Those reports find their way into the MOS graph. However they provide only a superficial overview on how users may perceive the overall quality. But in real PBX operations life, the RTCP-XR reports are not enough.

Our old approach to run Wireshark on the system was a good starting point. However when you have hosted environments with hundreds of registrations and lots of calls, those PCAP files can get huge. What is even worse, finding the right call is like looking for the needle in the haystack.

In most cases, complaints about call quality affect a certain extension or trunk. Therefore, the PBX records the PCAP for calls based on the trunk or based on an extension. Each calls generates a separate PCAP file; if there are multiple calls that match the capturing criteria, the PBX will write several files accordingly.

Call Pcap

And while we were on it, we also addressed another problem. Recording TLS and SRTP encrypted traffic with Wireshark is difficult by nature. Because the PBX has the security context for both the signaling and the media, it first decodes the traffic before sending it to the PCAP subsystem. Don’t be surprised if you find a SIP packet that was sent over TLS as a UDP packet in the trace. It is just to keep you informed what has been send and received at what time. The RTP time-stamps are critical for the PCAP. In Linux, we are able to retrieve those time-stamps from the networking subsystem for received packets. For sent packets the PBX takes the current time-stamp and uses that to add the packet to the PCAP file. This must also be done for the other operating systems that do not support retrieving time-stamps from the network subsystem (e.g. Windows). However the time-stamps should be good enough to troubleshoot visible and audible problems in the media stream.

Call pcap

The files are put into a directory that depends on the day. Inside that directory the file name contains the time and the call port number, so that it can be easily correlated to the other logs in the system.

The feature is available for all operating systems. This is another distinction from previous releases where PCAP was only available for Linux systems. Now it is possible to generate SIP call traces for Windows, MAC, FreeBSD and of course the Linux flavors.

The new feature will be available in 5.1.3 with previews available in 5.1.2r.

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