Skip to main content

Web Phone

The Web Phone is a softphone built into OPBX. It registers your own user extension with Cloudonix over WebRTC, so you can place and receive calls in the browser without a desk phone or a SIP app. Owners and Supervisors also use it to coach live calls.

Purpose​

Use the Web Phone to:

  • place calls from any page of OPBX;
  • answer calls to your extension in the browser, whether or not the panel is open;
  • redial your recent outbound calls;
  • spy, whisper or barge from Live Calls (Owners and Supervisors).

The same Web Phone can be placed on another website, such as a CRM. See Embedded Dialer.

Prerequisites​

  • A user extension assigned to you (extension type User). Other extension types, such as forward or ring group extensions, do not count. See Extensions.
  • The organization's Cloudonix settings, with a domain name. See Settings.
  • A browser with microphone access. The browser asks for permission the first time you place or answer a call.
  • Network access to wss://webrtc.cloudonix.io on port 443.

Availability​

RoleUse the Web PhoneCoach calls with it
OwnerYes, with a user extensionYes
PBX AdminYes, with a user extensionNo
PBX UserYes, with a user extensionNo
ReporterYes, with a user extensionNo
SupervisorYes, with a user extensionYes, calls in their scope

The role does not decide whether the Web Phone works; the extension does. Without a user extension the Web Phone opens with Web Phone Unavailable — "No extension is assigned to your account. Web Phone cannot be used."

note

When the organization has no Cloudonix domain configured, the panel instead says "Cloudonix isn't configured for your organization" and asks you to have your Owner complete Settings > Cloudonix (the server answers 409 cloudonix_not_configured, while a missing extension is 404).

Workflows​

No role check applies to these tasks; the Web Phone only needs your user extension.

Open the Web Phone​

Who can do this: any user with a user extension.

  1. Click the round phone button in the bottom-right corner of any page (tooltip Web Phone).
  2. The panel opens. Its header shows Web Phone and the registration status: "Initializing...", "Connecting...", "Connected, registering..." and then Registered.
  3. When it reads Registered, the Keypad tab is ready.

Close the panel with X. While a call is ringing or active, X is disabled ("End the call before closing").

The phone stays registered

The Web Phone registers when you sign in to OPBX and stays registered while you are signed in, whether the panel is open or not. An incoming call opens the panel and rings. Closing the panel does not unregister the phone; signing out does.

Place a call​

Who can do this: any user with a user extension.

  1. Open the Web Phone.
  2. On the Keypad tab, type the number or click the keys (0–9, *, #). Use the backspace button to correct. A number is dialled at your Cloudonix domain; an entry that contains @ is dialled as that SIP address.
  3. Click the green call button, or press Enter in the number field. The green button stays disabled while the number is empty.
  4. The status reads "Calling..." and then "Ringing...", and you hear the ringing tone of your country (see Call-progress tones). Click the red button to cancel.
  5. When the call connects, the status reads "On call" and a timer starts: M:SS, then H:MM:SS after one hour.
  6. Hang up with the red button.

The panel returns to Registered. If the call fails because the other side is busy or the network is congested, the matching tone plays.

While a call is ringing or active, the rest of the page is dimmed and blocked, the panel cannot be closed, and the Keypad / Recents tab bar is locked. The keypad is not shown once the call connects, so you cannot send touch tones (DTMF) from the Web Phone. Transferring a call is not available in the Web Phone.

Answer an incoming call​

Who can do this: any user with a user extension.

  1. While the phone is registered, an incoming call opens the panel by itself and shows Incoming call with the caller's SIP address.
  2. Click the green Answer button. The browser asks for microphone access the first time.

The call controls appear (see Use the call controls) and the timer starts.

Reject an incoming call​

Who can do this: any user with a user extension.

  1. When the panel shows Incoming call, click the red Reject button.

The call is ended and the panel returns to Registered.

Use the call controls​

Who can do this: any user with a user extension.

During a connected call the panel shows the timer, the number and these controls:

ControlWhat it does
Mute / UnmuteStops or resumes sending your microphone
KeypadShows or hides the in-call keypad for sending tones (see below)
Hold / ResumePuts the other party on hold
Speaker buttonMutes or unmutes the incoming audio
Volume sliderSets the incoming audio level
Hang up (red)Ends the call
  1. Click Mute to stop sending your microphone; the button turns blue and reads Unmute. Click it again to resume.
  2. Click Hold to put the other party on hold; the button reads Resume. Click it again to take the call off hold.
  3. Drag the volume slider, or click the speaker button to silence and restore the incoming audio.
  4. Click the red button to hang up.

Send tones during a call​

Who can do this: any user with a user extension.

Use the in-call keypad to answer a voice menu ("press 1 for sales"), enter a conference PIN or type an account number.

  1. During a connected call, click Keypad. The button turns blue and the keypad opens above the call controls.
  2. Click a key (0–9, *, #), or type it on your keyboard. Each key sends one tone to the other party and plays a short beep for you.
  3. The keys you sent appear under the call timer.
  4. Click Keypad again to hide the keypad. The keys you sent are cleared when the call ends.

Redial a recent call​

Who can do this: any user with a user extension.

  1. Open the Web Phone.
  2. Click the Recents tab.
  3. Click the row of the number you want to call.

The Web Phone switches to Keypad, fills in the number and places the call.

The Recents tab lists the last 50 calls placed from your extension, newest first. Each row shows the number, when it was placed and, for calls with a duration, how long it lasted. The icon is green when the disposition is ANSWER or CONNECTED and red otherwise.

  • The list is reloaded each time you open the tab ("Loading recent calls...").
  • Coaching calls are left out.
  • Only your own extension's calls are shown, never another user's.

When there are none, the tab reads "No recent calls yet." If the list cannot be loaded, it reads "Could not load recent calls."

Move the Web Phone to this tab​

Who can do this: any user with a user extension.

Only one browser tab holds the registration. In any other tab the panel says "Web Phone is active in another tab".

  1. Open the Web Phone in the tab you want to use.
  2. Click Use here.

This tab takes the registration and the other tab shows "Web Phone is active in another tab". When the tab holding the registration closes, the next open tab takes over automatically.

Retry after an error​

Who can do this: any user with a user extension.

  1. When the panel shows an error (see Common errors), click Retry.

The Web Phone loads its configuration again (for configuration errors) or starts a new registration (for registration errors), and the header goes back to "Initializing...". Web Phone Unavailable — No extension is assigned to your account has no Retry button: assign a user extension and reload the page.

Coaching from Live Calls​

When an Owner or Supervisor clicks Spy, Whisper or Barge on Live Calls, the Web Phone opens by itself and dials the coaching target. Once connected, the header reads "On call - Coaching: Spy" (or Whisper, Barge). When the coaching call ends, the Web Phone closes.

Call-progress tones​

The ringing, busy and congestion tones follow the conventions of the organization's country, taken from the organization's country setting (default us; it cannot be changed from the UI). The cadences come from the standard Asterisk indications table.

Common errors​

MessageWhat it meansWhat to do
Web Phone Unavailable — No extension is assigned to your account. Web Phone cannot be used.No user extensionAssign a user extension, then reload the page
Web Phone Unavailable — Cloudonix isn't configured for your organization.The organization has no Cloudonix domainAsk your Owner to complete Settings
Web Phone Unavailable — Could not load the Web Phone configuration from the server.Any other failure of GET /v1/webphone/configRetry; if it persists, contact your administrator
Web Phone Error — The Web Phone engine failed to load.The bundled SIP library did not loadReload the page
Connection Failed — Could not open a connection to the voice server.The browser cannot reach wss://webrtc.cloudonix.ioCheck the network and firewall, then Retry
Authentication RejectedCloudonix refused the extension's passwordReset the extension password on Extensions
Extension Not FoundThe subscriber does not exist in CloudonixCheck that the extension is synced to Cloudonix
Web Phone Error — …no reply came back in time.Registration timed outRetry in a moment
Web Phone Error — Registration with the voice server failed.Any other registration failureRetry; if it persists, contact your administrator

Registration errors also show the raw cause from the SIP library (for example Request Timeout). Every error screen except the missing-extension one has a Retry button.

How it works​

  1. When you sign in (in the tab that holds the registration), OPBX calls GET /v1/webphone/config for your extension's SIP settings.
  2. The bundled JsSIP library (served by OPBX itself, not loaded from a third-party site) creates a SIP user agent.
  3. The user agent connects to wss://webrtc.cloudonix.io:443 and registers as sip:<extension>@<your Cloudonix domain> with the extension's password.
  4. Calls you place go through the normal OPBX outbound routing, as from any other phone on your extension.

Config response fields​

FieldMeaning
sip_username, sip_contactYour extension number
sip_passwordYour extension's SIP password
sip_domainThe organization's Cloudonix domain
sip_urisip:{extension}@{domain}
display_name, profile_nameYour name
wss_server, websocket_port, server_pathwss://webrtc.cloudonix.io, 443, empty
registration_modeDirect
countryCountry code for tones

The config contains your SIP password. It is returned only to you, for your own extension, and every request is logged as a security event.

MethodEndpointPurpose
GET/v1/webphone/configSIP settings for the signed-in user. 404 "No extension is assigned to this user." when there is no user extension; 409 with error: cloudonix_not_configured when the organization has no Cloudonix domain
GET/v1/webphone/calls-logThe last 50 calls placed from the user's extension
POST/v1/session-updates/{sessionId}/coach-targetDial target for coaching

These endpoints are for signed-in users only; scoped API keys cannot call them.

See the OPBX REST API reference for full schemas.