Browser softphone and mobile clients through port 443 only (no exposed SIP) #23

Closed
opened 2026-11-27 13:48:05 +00:00 by jonasled · 1 comment
Owner
  • Browser (and mobile) clients must not require exposed SIP ports
  • Signalling and media run through a TLS tunnel so that only port 443 has to be exposed
  • Softphone integrated in the web UI
- Browser (and mobile) clients must not require exposed SIP ports - Signalling and media run through a TLS tunnel so that only port 443 has to be exposed - Softphone integrated in the web UI
Author
Owner

Done: softphone in the web UI (call, answer, mute, hold, transfer, DTMF). Signalling goes through an authenticated websocket proxy and media through a built-in TURN server on the same port as HTTPS; relaying is restricted to the Asterisk address(es).

Tested: two real Chromium instances calling each other with iceTransportPolicy: relay through the single published port, audio received on both sides (SOFTPHONE=1 test/integration.sh, plain HTTP on localhost). HTTPS + TURN-over-TLS on one port is covered by a separate Go test; a browser against a real TLS certificate was not tested. Mute, hold, transfer and DTMF have no test.

Requirements: OpenPBX must terminate TLS itself (or the reverse proxy must pass TCP through), because a plain HTTP reverse proxy cannot forward TURN. With host-networked Asterisk, authenticated users can relay UDP to other services on that same host address. Native mobile apps are tracked in #33; mobile browsers use this softphone but get no push calls in the background.

Done: softphone in the web UI (call, answer, mute, hold, transfer, DTMF). Signalling goes through an authenticated websocket proxy and media through a built-in TURN server on the same port as HTTPS; relaying is restricted to the Asterisk address(es). Tested: two real Chromium instances calling each other with `iceTransportPolicy: relay` through the single published port, audio received on both sides (`SOFTPHONE=1 test/integration.sh`, plain HTTP on localhost). HTTPS + TURN-over-TLS on one port is covered by a separate Go test; a browser against a real TLS certificate was not tested. Mute, hold, transfer and DTMF have no test. Requirements: OpenPBX must terminate TLS itself (or the reverse proxy must pass TCP through), because a plain HTTP reverse proxy cannot forward TURN. With host-networked Asterisk, authenticated users can relay UDP to other services on that same host address. Native mobile apps are tracked in #33; mobile browsers use this softphone but get no push calls in the background.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jonasled/openpbx#23
No description provided.