How to use the ringcentral-web-phone function in ringcentral-web-phone

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

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://travis-ci.org/ringcentral/ringcentral-web-phone.svg?branch=master)](https://travis-ci.org/ringcentral/ringcentral-web-phone) [![Coverage Status](https://coveralls.io/repos/github/ringcentral/ringcentral-web-phone/badge.svg?branch=

MIT
Latest version published 8 days ago

Package Health Score

84 / 100
Full package analysis

Popular ringcentral-web-phone functions

Similar packages