@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 +1 -1
- package/src/nodes/dial.js +1 -1
package/package.json
CHANGED
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) : '';
|