Make a Call

This guide uses the full SIP.js API. The Simple User is intended to help get beginners up and running quickly. This guide is adopted from the SIP.js Github API documentation.


See the User Agent guide on how to create a user agent. This guide requires a user agent.

Sending an Invite

To send an ivite to a remote SIP endpoint use an Inviter. To create a new Inviter a valid UserAgent is required along with the target URI. The UserAgent.makeURI() helper can create a URI from a string. Once the Inviter is constructed, calling the invite() function on it will send the SIP INVITE.

// userAgent defined elsewhere
userAgent.start().then(() => {
  const target = UserAgent.makeURI("");

  const inviter = new Inviter(userAgent, target);