Web (React) Guide
Web (React) Guide
Web (React) Guide
This guide walks you through building a voice calling application in the browser using React.
Create a component that connects to your jambonz SBC:
Run npm run dev and click Connect. You should see the status change to registered.
Add a call button to your component:
Listen for incoming calls and show an answer/decline UI:
Add mute, hold, and DTMF:
Instead of managing state manually, use the built-in hooks:
The repo includes a complete softphone example built with React + Vite + Tailwind CSS — with a polished dark theme UI, DTMF pad, incoming call handling, and console logs.
Open http://localhost:5173 in your browser.
The example app has clean separation between SDK logic and UI:
src/useJambonz.ts — all SDK interactions (connect, call, mute, hold, transfer, incoming calls). Read this file to learn the SDK.src/App.tsx — wires SDK state to UI componentssrc/components/ — reusable UI: ConnectionForm, DialerView, ActiveCallView, IncomingCallView, DtmfPad, LogPanelwss://sbc.example.com:8443)Source: github.com/jambonz/webrtc-sdk/tree/main/examples/web