SIP/VoIP and PBX load testing
I measure how many calls your PBX, SIP server or contact center can handle, and whether callers can still hear each other under load. I use xk6-sip, a Grafana k6 extension for telephony that I built and maintain.
What gets tested
-
1.Capacity
Concurrent calls, calls per second (CPS) and registration rate: at what load call setup time begins to increase and calls start failing, and which component hits the limit first.
-
2.Audio under load
Check that audio flows both ways and detect one-way audio and crossed media. Score voice quality against a reference phrase, and measure RTP packet loss and jitter on every call leg.
-
3.Subscriber scenarios
Registration with digest authentication, call initiation and cancellation, hold and resume, blind and attended transfer, DTMF, and IVR prompt and announcement checks against a recorded reference.
-
4.Regressions after upgrades
Tests in GitLab CI or GitHub Actions: the pipeline fails when the share of failed calls grows or voice quality drops. Only failed calls are recorded, for later analysis.
What you get
- A report covering the system's capacity limit, bottleneck, signaling and voice quality metrics, and a remediation plan.
- A repository with scenarios, subscriber data and run instructions.
- A Grafana dashboard: calls, voice quality and load generator health next to your PBX metrics.
- CI tests that catch telephony regressions before a release.
The engagement follows the same steps as other projects: consultation, agreement on success criteria, measurements and tests, and delivery of the report and code. See how I work.
The tool
xk6-sip is listed in the official Grafana k6 extension registry. Each k6 virtual user drives real SIP subscribers: they register, call each other through the system under test and check what arrives on the other side. More in the announcement on Grafana Community.
Write-ups (in Russian, on Habr):
FAQ
How is this different from SIPp?
SIPp checks signaling: a call answered with 200 OK counts as successful even if there is only silence. With xk6-sip the subscribers actually talk, and the test checks that the audio arrived and that its quality is acceptable. Scenarios are written in JavaScript and kept in Git, and metrics go to Prometheus and Grafana.
Which PBXs does it work with?
With systems that accept SIP and G.711 audio (PCMU or PCMA): Asterisk, FreeSWITCH, Kamailio, OpenSIPS and commercial PBXs. Compatibility is checked with a few test calls before the project starts.
Do we need a separate test environment?
A staging environment or a separate tenant is best. Without one, load is applied during off-peak hours with limited intensity and test numbers, and external carriers are replaced with mocks so you don't pay for test traffic.
Can we run the tests ourselves?
Yes. xk6-sip is open source under the Apache-2.0 license. I hand over a repository with scenarios and documentation, and from then on your team or your CI runs the tests.
How much does it cost?
The initial consultation is $100. We go through your telephony setup and the task, and afterwards I quote the cost and timeline. The price is fixed in the contract before work starts.
Other services: Performance audit · Load testing with k6 in CI/CD · Monitoring with Prometheus and Grafana · all services.