Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-wazo-platform

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-wazo-platform - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

4

nodes/answer.js

@@ -14,3 +14,3 @@ module.exports = function (RED) {

application_uuid = msg.data.application_uuid;
console.log('Call answer');
node.log('Call answer');
try {

@@ -21,3 +21,3 @@ node.client.answerCall(application_uuid, call_id);

catch(err) {
console.log(err);
node.error(err);
}

@@ -24,0 +24,0 @@ }

@@ -18,3 +18,3 @@ module.exports = function(RED) {

this.authenticate = async function() {
console.log("Connection to Wazo Auth...");
node.log("Connection to Wazo Auth...");

@@ -28,3 +28,3 @@ try {

catch(error) {
console.log(error);
node.error(error);
}

@@ -31,0 +31,0 @@ };

@@ -21,3 +21,3 @@ module.exports = function (RED) {

console.log('Bridge Call');
node.log('Bridge Call');
try {

@@ -28,3 +28,3 @@ node.client.bridgeCall(application_uuid, call_id, context, exten, node.autoAnswer, callerId);

catch(err) {
console.log(err);
node.error(err);
}

@@ -31,0 +31,0 @@ }

@@ -12,3 +12,3 @@ module.exports = function (RED) {

if (msg.data.dtmf == node.dtmf) {
console.log(`DTMF ${node.dtmf} received`);
node.log(`DTMF ${node.dtmf} received`);
node.send(Call(msg));

@@ -15,0 +15,0 @@ }

@@ -15,3 +15,3 @@ module.exports = function (RED) {

node.client.hangupCall(application_uuid, call_id);
console.log('Call hangup');
node.log('Call hangup');
}

@@ -18,0 +18,0 @@ });

@@ -16,3 +16,3 @@ module.exports = function (RED) {

application_uuid = msg.data.application_uuid;
console.log('Call playback');
node.log('Call playback');
try {

@@ -23,3 +23,3 @@ node.client.startPlaybackCall(application_uuid, call_id, node.language, node.uri);

catch(err) {
console.log(err)
node.error(err)
}

@@ -26,0 +26,0 @@ }

@@ -15,3 +15,3 @@ module.exports = function (RED) {

node.client.startProgressCall(application_uuid, call_id);
console.log('Call progress');
node.log('Call progress');
node.send(msg);

@@ -18,0 +18,0 @@ }

@@ -18,3 +18,3 @@ module.exports = function (RED) {

if (msg.data.id == node.trunk_id) {
console.log(`Trunk ${node.trunk_id} event`);
node.log(`Trunk ${node.trunk_id} event`);
setStatus(msg.data);

@@ -21,0 +21,0 @@ node.send(msg);

@@ -41,3 +41,3 @@ module.exports = function (RED) {

wazo_ws.updateToken(token);
console.log('Refresh Token refreshed');
node.log('Refresh Token refreshed');
});

@@ -49,3 +49,3 @@

}
console.log('Force refresh Token');
node.log('Force refresh Token');
node.client.forceRefreshToken();

@@ -70,2 +70,3 @@ });

wazo_ws.on('onopen', () => {
node.log('Wazo Websocket connection');
node.status({

@@ -79,2 +80,3 @@ fill:"green",

wazo_ws.on('initialized', () => {
node.log('Wazo Websocket is initialized and ready to received messages');
node.status({

@@ -87,3 +89,4 @@ fill:"green",

wazo_ws.on('onclose', () => {
wazo_ws.on('onclose', (err) => {
node.error({message: "Websocket is closed", error: err});
node.status({

@@ -96,3 +99,4 @@ fill:"red",

wazo_ws.on('onerror', () => {
wazo_ws.on('onerror', (err) => {
node.error({message: "Websocket has closed with error", error: err});
node.status({

@@ -99,0 +103,0 @@ fill:"red",

{
"name": "node-red-contrib-wazo-platform",
"version": "0.0.17",
"version": "0.0.18",
"description": "Node Red module for the Wazo Platform API",

@@ -16,3 +16,3 @@ "main": "index.js",

"dependencies": {
"@wazo/sdk": "0.26.8",
"@wazo/sdk": "0.26.10",
"ws": "^7.2.1"

@@ -19,0 +19,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc