Docs

WebSDK

GET STARTED with examples

DOWNLOAD full USER GUIDE

This Web SDK provides an easy way to use Apifonica service with REST APIs, to rent numbers, create XML and do other common server-side programming tasks.

The Web SDK consists of two parts: the server-side part and the Web Phone demo project.

Server-side packet

Overview

The server-side part of Web SDK is used for monitoring and connection between Mobile (iOS/Android), WebPhone devices and Apifonica service.

Requirements:

  • npm installation
  • Node.js
  • MySQL or PostgreSQL

Features:

  • Server management and its interaction with Mobile SDK apps and Apifonica server;
  • Monitoring of the rented phone numbers;
  • Monitoring of Incoming/Outgoing Calls via XML scenarios;
  • Synchronize rented numbers stored on your server-side with rented numbers stored in your Apifonica account.

184.png

 

Architecture

  • Your app initiates communications with your server via REST APIs to rent a number and requests a Capability (JWT) Token
  • Your app talks with Apifonica to register with it’s services and make/receive VoIP connections
  • Apifonica talks with your server to get XML or your server initiates communications with Apifonica via REST APIs to rent a number

185.png

Web Phone (VoIP)

Web Phone is a demo project which contains functions to rent a phone number and make WebRTC based VoIP phone calls from the customer's web browser.

Requirements:

  • npm installation
  • Node.js
  • MySQL or PostgreSQL

Features:

  • Rent a phone number;
  • Supports incoming/outgoing VoIP calls on the base of WebRTC service;
  • Audio connection with audio codecs (OPUS/G722/G711(u/a-law)/SHA-256);
  • Supports Google Chrome, Firefox Mozilla and Safari browsers.
186.png

187.png