How it works

Where the browser meets the phone network.

The CodeB SIP bridge sits between the WebRTC half (Opus over SRTP-DTLS) and the SIP half (G.711 over plain UDP), transcoding on the fly. Your SIP trunk credentials, fraud controls, and call detail records all stay on your own Windows host — CodeB never sees or routes your PSTN traffic.

B Browser WEBRTC OPUS 48 KHZ signal.ashx IIS · WEBSOCKET CodeB SIP bridge SIPSorcery · Windows Service Opus ↔ G.711 · DTLS ↔ UDP FraudGuard · whitelist · CDR SIP trunk YOUR CARRIER PSTN G.711 OR G.722 CodeB Webphone OFFICE.HTML PWA SIP softphone MICROSIP · GROUNDWIRE SDP · ICE · DIAL DIAL FAN-OUT INVITE · SDP RTP OPUS 48K SRTP/DTLS RTP G.711 8 KHZ µ-LAW REGISTER · INVITE REGISTER · INVITE BRIDGE TRANSCODES OPUS ↔ G.711 · CDR + WHITELIST + FRAUDGUARD ON BRIDGE
Signaling / control RTP media (transcoded at the bridge)

Browser, signal.ashx, SIP bridge, trunk · CodeB Webphone + SIP softphone share the same bridge

Browser
01 / WebRTC half

SRTP-DTLS Opus to the bridge

The browser opens a regular WebRTC PeerConnection to the SIP bridge. Audio rides on Opus at 48 kHz inside SRTP-over-DTLS. The connection is identical to a browser-to-browser CodeB meeting — the bridge is just the “other peer”.

Bridge
02 / Transcoding

Opus ↔ G.711, in-process

The SIP bridge is a Windows Service built on SIPSorcery. It decodes Opus, resamples 48 kHz ↔ 8 kHz, then encodes µ-law or A-law for the SIP side. The same process owns the SIP UDP listener (default port 5060) and the public-listener channel for inbound calls.

SIP side
03 / Plain SIP/RTP

Your trunk, your numbers

Outbound to the PSTN goes over SIP INVITE against your registered trunk(s). Inbound DIDs land on the same trunk. RTP between bridge and trunk is plain UDP G.711 — the SIP-side cipher posture is whatever your carrier supports.

What you operate vs. what we operate

CodeB Conference ships the bridge as part of the install. You operate the SIP trunk — we never see, route, or carry your PSTN traffic. The bridge connects to your trunk credentials, on your Windows host, behind your firewall:

Fraud + abuse controls

The bridge enforces three gates before any PSTN egress:

Inbound calls get the symmetric treatment: a per-source-IP rate limit on the public SIP listener, optional REGISTER-required mode (default on), and SIP Digest authentication against the same credential store as the OIDC IdP — one credential, three services.

Inbound call paths

A call coming the other way — an external SIP phone calling a CodeB number — takes one of three branches inside the bridge:

What the server sees vs. doesn’t

The signal.ashx WebSocket only carries control frames (dial requests, ring frames, accept/reject). Media never traverses signal.ashx. The bridge is the only piece that ever holds decrypted PCM samples in memory — for the milliseconds it takes to transcode and forward. Nothing is buffered to disk unless you have SaveTranscripts turned on for an AI receptionist rule (and even then only that one vnum’s text is persisted, never raw audio).

Related

Browser-to-browser media data flow → · Virtual-agent (AI receptionist) data flow → · OIDC sign-in data flow →