This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

onlinepbx

0.1.26 • Public • Published

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

Package Sidebar

Install

npm i onlinepbx

Weekly Downloads

0

Version

0.1.26

License

none

Unpacked Size

15.9 kB

Total Files

7

Last publish

Collaborators

  • azabroflovski