How to use ringcentral-web-phone - 2 common examples

To help you get started, we’ve selected a few ringcentral-web-phone examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ringcentral / ringcentral-js-widgets / packages / ringcentral-integration / modules / Webphone / index.js View on Github external
async _createWebphone(provisionData) {
    await this._removeWebphone();
    this._webphone = new RingCentralWebphone(provisionData, {
      appKey: this._appKey,
      appName: this._appName,
      appVersion: this._appVersion,
      uuid: this._auth.endpointId,
      logLevel: this._webphoneLogLevel, // error 0, warn 1, log: 2, debug: 3
      audioHelper: {
        enabled: true, // enables audio feedback when web phone is ringing or making a call
      },
      media: {
        remote: this._remoteVideo,
        local: this._localVideo,
      },
      enableQos: isChrome(),
      enableMidLinesInSDP: isEnableMidLinesInSDP(),
      ...this._webphoneSDKOptions,
    });
github ringcentral / ringcentral-js-widgets / src / modules / webphone / index.js View on Github external
async function initPhoneInstance() {
  const info = await this[symbols.platform]
    .post('/client-info/sip-provision', {
      sipInfo: [{ transport: 'WSS' }],
    })
    .then(res => res.json());
  return new RingCentralWebphone(info, {
    logLevel: 0,
    audioHelper: {
      enabled: true,
    },
  });
}

ringcentral-web-phone

[![Build Status](https://github.com/ringcentral/ringcentral-web-phone/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/ringcentral/ringcentral-web-phone/actions/workflows/tests.yml) [![Coverage Status](https://coveralls.io/repos/gi

MIT
Latest version published 2 months ago

Package Health Score

74 / 100
Full package analysis

Popular ringcentral-web-phone functions

Similar packages