npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@voicenter-team/vsip

v1.1.63

Published

A vue based jssip wrapper.

Downloads

214

Readme

vsip

A vue based jssip wrapper.

Installation

Using npm:

$ npm i -g npm
$ npm i @voicenter-team/vsip

Usage

Firstly use the lib:

import VueJsSIP from '@voicenter-team/vsip';

Vue.use(VueJsSIP, {
    store // Vuex store
});

This lib will be injected to your Vex as a vsip module.

To init library call init action with the following options:

const options = {
  configuration: {
    session_timers: Boolean,
    uri: String,
    password: String,
  },
  socketInterfaces: [String],
  sipDomain: String,
  sipOptions: {
    session_timers: Boolean,
    extraHeaders: [String],
    pcConfig: {}
  }
}

Then you will be able to use getters and call actions.

Actions

  • async setMediaDevices() - will set up media devices
  • async setMicrophone(deviceId: Number) - set passed device as input for calls
  • async setSpeaker(deviceId: Number) - set passed device as output for calls
  • async setCurrentActiveRoom(roomId: Number) - move to the room
  • doCallHold({callId: Number, toHold: Boolean}) - hold/unhold call by id
  • doCall(target: String) - call to the target
  • callTerminate(callId: Number) - terminate call
  • callTransfer({callId: Number, target: String}) - transfer call to target
  • callMerge(roomId: Number) - merge calls in specific room
  • callAnswer(callId: Number) - answer the call
  • setMetricConfig(config: Object) - set the metric config (used for audio quality indicator)
  • doMute(muted: Boolean) - set the agent muteness
  • setDND(value: Boolean) - set the agent "Do not disturb" status
  • async callChangeRoom({callId: Number, roomId: Number}) - move call to the room
  • callMove({callId: Number, roomId: Number}) - Same as callChangeRoom. Move call to the specific room
  • subscribe({type: String, listener: function}) - subscribe to an event. Available events: new_call, ended, progress, failed, confirmed
  • removeListener(type: String) - remove event listener
  • init({configuration: Object, socketInterfaces: String[], listeners: Array, sipDomain: String, sipOptions: Object}) - init the lib

Getters

  • getActiveRooms: [] - returns a list of active rooms
  • getSipDomain: String - returns sip domain
  • getSiOptions: Object - returns sip options
  • getInputDeviceList: [] - returns list of input devices
  • getOutputDeviceList: [] - returns list of output devices
  • getCurrentActiveRoomId: Number - returns current active room id
  • getSelectedInputDevice: Number - returns current selected input device
  • getSelectedOutputDevice: Number - returns current selected output device
  • isDND: Boolean - returns if the agent is in "Do not disturb" status
  • isMuted: Boolean - returns if the agent is muted
  • metricConfig: Object - returns metric config (used for audio quality indicator)