@jambonz/node-red-contrib-jambonz 2.4.27 → 2.4.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/node-red-contrib-jambonz",
3
- "version": "2.4.27",
3
+ "version": "2.4.28",
4
4
  "description": "Node-RED nodes for jambonz platform",
5
5
  "keywords": [
6
6
  "node-red"
package/src/nodes/dial.js CHANGED
@@ -8,7 +8,7 @@ module.exports = function(RED) {
8
8
  node.on('input', async function(msg) {
9
9
  node.log(`dial config: ${JSON.stringify(config)}, msg.call: ${JSON.stringify(msg.call)}`);
10
10
  const target = await Promise.all(config.targets.map(async (t) => {
11
- const obj = {};
11
+ const obj = { type: t.type }; // Initialize with type property
12
12
  const dest = await new_resolve(RED, t.dest, t.varType, node, msg);
13
13
  const trunk = await new_resolve(RED, t.trunk, t.trunkType, node, msg);
14
14
  const tenant = t.tenant ? await new_resolve(RED, t.tenant, t.tenantType, node, msg) : '';