Socket
Socket
Sign inDemoInstall

onlinepbx

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    onlinepbx

Simple OnlinePBX telephony interface. Powered by plain JavaScript (written in TypeScript)


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

OnlinePBX

Simple OnlinePBX telephony interface. Powered by plain JavaScript (written in TypeScript) ⚡️

⚠️ This package is unstable and in active development. Use at your own risk or wait for the release of a stable version for use in a production environment.

Features

  • Intuitive API
  • Lightweight
  • TypeScript
  • Plain JS

Documentation

Coming soon...

Install

npm install onlinepbx

Usage

import { createOnlinePBXClient } from 'onlinepbx'

const telephony = createOnlinePBXClient({
  apiKey: '',
  domain: '',
  autoConnect: false // turns off automatic connection when creating a client
})

// Create ws connection
telephony.connect()

// Hanlde success connection event
telephony.on('connect', () => {
    console.log('success')
})

// Call to subscriber
telephony.command('make_call', {
    from: '101', // internal onlinepbx user number
    to: '998992221144' // subscriber phone number
})

License

MIT

Copyright (c) 2022-present, azabroflovski

Keywords

FAQs

Last updated on 02 May 2022

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