You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@vgip/vonage-dialer-sdk

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vgip/vonage-dialer-sdk

Vonage CTI Dialer SDK

2.0.3
latest
Source
npm
Version published
Weekly downloads
414
-15.85%
Maintainers
0
Weekly downloads
 
Created
Source

Vonage CTI Dialer SDK

by Vonage Integration Platform

Installation

npm install @vgip/vonage-dialer-sdk

Demo

https://plnkr.co/edit/TGj0HCbDU6yapgfL

Javascript

const VonageDialer = require('@vgip/vonage-dialer-sdk');

VonageDialer.init({ debug: true }, (dialer) => { // (optional)
  dialer.setOnDialerEvent((event) => {
    switch (event.type) {
      case 'CALL_START': {
        break;
      }
      case 'CALL_ANSWER': {
        break;
      }
      case 'CALL_END': {
        console.log(event.data); // VGIP Call Detail Record
        break;
      }
      default: {
        this.debugLog('Unhandled event', event);
      }
    }
  });
});

Plain HTML

<!DOCTYPE html>
<html>
  <head>
    <script type="text/javascript" src="vonage.dialer.sdk.js"></script>
  </head>
  <body>
    ...
  </body>
</html>

Dot vs Embed mode

By default, the script creates a Vonage Dot button and inserts it inside the host page. You can drag and reposition the Dot button everywhere on the page and it will remember its position on reload. The dialer becomes shown when a phone call is started or when the Dot button is clicked.

In order to place the dialer into a designated container on the page, create an HTML element with CSS class .vonage-dialer-container;

<div class='vonage-dialer-container' style='width: 280px; height: 460px; position: relative;'></div>

Customization

You can extend the dialer with additional behavior, implement contacts autocomplete and add extra settings. Find out how in the Dialer SDK documentation.

FAQs

Package last updated on 08 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts