simtrunkDocs

Register a phone

Sign a SIP phone, a softphone or a WebRTC client in to a line.

A phone rings for a line and calls out on it once it is registered as a SIP user of that line.

Add a SIP user

  1. Open SIP users and choose Add.
  2. Give it a username and a password, and the line it belongs to.

Your organization's SIP domain, realm and addresses are on the dashboard's telephony settings, and in the API (GET /v1/sip).

A SIP phone or softphone

Desk phones and softphones (Linphone, Zoiper and the like) sign in over UDP, TCP or TLS:

SettingValue
Usernamethe SIP user's username
Passwordits password
Domainyour organization's SIP domain
TransportUDP, TCP or TLS

The phone shows as registered under Registrations, and the line's incoming calls ring it.

A WebRTC client (JsSIP)

Browser and app clients register over SIP over WebSocket, with WebRTC media. Use the WebSocket URL from the dashboard and register as sip:<user>@<your SIP domain>:

phone.js
import JsSIP from 'jssip'const socket = new JsSIP.WebSocketInterface('wss://…') // the WebSocket URL from the dashboardconst ua = new JsSIP.UA({  sockets: [socket],  uri: 'sip:alice@your-sip-domain', // your SIP user at your organization's SIP domain  password: '…',})ua.on('newRTCSession', ({ session }) => {  if (session.direction === 'incoming') session.answer({ mediaConstraints: { audio: true } })})ua.start()

The dashboard softphone

The dashboard has a softphone too: call, answer and text from the browser, on the line you choose, with no SIP user to set up.

Next

Make a call.

How is this guide?

Last updated on

On this page