Socket
Socket
Sign inDemoInstall

baresip-wrapper

Package Overview
Dependencies
3
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    baresip-wrapper

A NodeJS wrapper for BareSIP utility


Version published
Weekly downloads
15
increased by36.36%
Maintainers
1
Install size
21.9 kB
Created
Weekly downloads
 

Readme

Source

BareSIP NodeJS Wrapper

Requirements

httpd module has to be uncommented in the BareSIP config

Install

$ npm install baresip-wrapper

Usage

import Baresip from 'baresip-wrapper';

const baresip = new Baresip('command to start baresip');
baresip.connect();

Methods

  • accept () to accept an incoming call
  • dial (phoneNumber) to dial the phone number
  • hangUp () to hang up
  • kill () to kill the spawned process.
  • on (event, callback) to set event handlers
  • reload () to re-create the spawned process (it is required e.g. once the accounts file has been changed)
  • toggleCallMuted () to mute or unmute your microphone for the current call

Events

  • ready BareSIP has been initialized
  • serverConnected BareSIP has been connected to the SIP server provider
  • callEstablished your outgoing call has been accepted by the other side
  • callReceived an incoming call has been received
  • hangUp the phone has been hanged up on the other side

phone number is provided as an argument for the following event handlers

  • hangUp
  • callReceived

Keywords

FAQs

Last updated on 07 Apr 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc