API : PBX : Call test

Introduction

The call test lets a public web page place one real call through the platform and report back whether audio flowed in both directions and how good it was. The browser provisions a disposable WebRTC SIP phone, registers it, dials a number that plays a recording and hangs up, then hands the phone back and asks for the measured result.

Three of these four endpoints are unauthenticated. They are called by anonymous browsers. What makes that acceptable is not a token:

configuration - there is no request field that can be pointed at another customer.

it to a single dialplan item - every dialled number, every star code and 112 alike.

another's session.

The design document lives in the tcx-pbx-asterisk2 repository at docs/superpowers/specs/2026-09-02-pbx-call-test-design.md; its section 6 is the full containment argument and should be read before changing any of these endpoints.

API Description
Session Provision a disposable WebRTC SIP phone and return its credentials. Unauthenticated.
Finish Delete the phone and return the call's result. Unauthenticated.
Result Poll for the result of a session. Unauthenticated.
Reap Delete test phones past their lifetime. ADMIN.

Redis

The only key this feature adds is callTest:<session-token>.