vobiz_webrtc) turns your Android or iOS app into a phone. It registers with Vobiz over a secure WebSocket, carries call audio over WebRTC, and gives you in-call controls: mute, speaker and Bluetooth routing, hold and resume, DTMF, and call-quality metrics. Vobiz push wakes a closed app when a call arrives: through Firebase on Android, and through PushKit and CallKit on iOS.
This guide documents every public method of the SDK, grouped by task. Each method lists its signature, parameters, return value, errors, and an example.
Features
- Sign in as a SIP endpoint (username and password), through a credentials provider your backend serves, or with a short-lived access token. No Vobiz Auth Token ever has to reach the device.
- Outbound calls to phone numbers in E.164 format, with a caller ID, recording, and custom
X-VH-SIP headers. - Incoming calls rung by your application’s
<Dial><User>, with the caller’s number and SIP headers. - In-call controls: mute, speakerphone and audio routes (earpiece, speaker, Bluetooth, wired), hold and resume, DTMF (RFC 4733 or SIP INFO).
- Call quality: round-trip time, jitter, packet loss, and a MOS estimate with good, fair, and poor levels.
- Network resilience: automatic reconnection with backoff, re-registration when the app returns to the foreground, and calls that survive a Wi-Fi to mobile switch.
- Push-to-wake (Android): Vobiz holds an incoming call while a push wakes your closed app, then hands the call to the SDK.
- Conference calls: add people to a call, mute, hold, or remove them, and end the conference for everyone.
- Typed events as Dart streams for connection, calls, media, network, errors, and push.
How it works
- The app registers with the Vobiz registrar as a SIP endpoint (or as an access-token identity).
- Outbound: the app sends the call to Vobiz. Vobiz requests the Answer URL of the endpoint’s application, and your VobizXML decides where the call goes, usually with
<Dial>. - Inbound: a call reaches the app when an application rings it with
<Dial><User>sip:USERNAME@registrar.vobiz.ai</User></Dial>, or when you place a call to that SIP address with the Voice API.
Requirements
Platform support
Quick start
1
Create a SIP endpoint
In the Vobiz Console, open Voice > Endpoints and click Create endpoint. Note the SIP username and password. See Create a SIP endpoint.
2
Install the SDK
Add
vobiz_webrtc to pubspec.yaml and the microphone permissions to your app. See Installation.3
Sign in
4
Make a call
5
Answer incoming calls
Guide
Create a SIP endpoint
Create the endpoint the app signs in as, step by step in the Console.
Installation
Add the package, Android and iOS permissions, and platform settings.
Sign in
Create the client, configure it, and sign in with credentials or access tokens.
Make and receive calls
Place calls, answer or decline incoming calls, and follow the call lifecycle.
In-call controls
Mute, speaker and audio routes, hold, DTMF, and audio interruptions.
Custom SIP headers
Send caller ID, recording, and your own
X-VH- headers to your Answer URL.Events and states
Every stream the client emits, with its event fields and states.
Call quality
Round-trip time, jitter, packet loss, and MOS levels.
Network and reconnection
Reconnection, keep-alive, network changes during a call, and TURN.
Push notifications (Android)
Ring a closed app with Vobiz push-to-wake.
Conference calls
Add people to a call and manage participants.
Errors and troubleshooting
Exceptions, error codes, access-token codes, and common fixes.
Resources
- Source code and example app: vobiz-ai/vobiz-flutter-sdk. The
example/folder is a complete calling app built on the SDK. - Platform setup reference: PLATFORM_SETUP.md
- Release notes: CHANGELOG.md
- Browser calling: Vobiz WebRTC SDK