1.0.3 • Published 5 years ago

broadsoftoci v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Welcome to the Broadsoft OCI Application Server Helper Class!

Hi! And welcome. broadsoftoci is a module used to build Broadsoft OCI commands with little effort. Let's get right into it.

NOTE: (1.0.3) This finally connects to Broadsoft AS through a socket and sends just an AuthenticationRequest! It's a little messy so I hope that's okay. I'm using two XML parsers so I'm not too happy about that; but that's XML back and forth with JSON for you. The client.connect(...) section shows how the promise structure of command() works.

NPM Installation

npm i broadsoftoci
npm i --save broadsoftoci

Node Initialization

// Import the file
const bs = require('broadsoftoci')

// Initiate a Broadsoft OCI session
const session = new OCIConnection(serverIp, serverPort); //cluster = int

// Create parameters for command
params = {
  "param1:" {
    "nestedParam1": "Value1"
  },
  "param2": "Value2"
}

// Send a command
session.command("CommandName", params).then(response => {
  console.log(response)
})

Improvements

Necessary Items to finish:

  • Login command needs to be finished. The Broadsoft Login process is to send an AuthenticationRequest (with user as parameter), get the nonce from the response, and send a LoginRequest14sp4 with a signed password. You can then send a VerifySessionIsValidRequest to confirm the authorization was a success.
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago