@jambonz/node-red-contrib-jambonz 2.5.1 → 2.5.3
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.html +9 -0
- package/src/nodes/dial.js +4 -0
- package/src/nodes/gather.js +1 -2
package/package.json
CHANGED
package/src/nodes/dial.html
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
amd_timers_noSpeechTimeoutMs: {},
|
|
84
84
|
amd_timers_toneTimeoutMs: {},
|
|
85
85
|
amd_digitCount: {},
|
|
86
|
+
forwardPAI: {value: 'default'},
|
|
86
87
|
},
|
|
87
88
|
inputs:1,
|
|
88
89
|
outputs:1,
|
|
@@ -569,6 +570,14 @@
|
|
|
569
570
|
<input type="text" id="node-input-tag" placeholder="tag object">
|
|
570
571
|
<input type="hidden" id="node-input-tagType">
|
|
571
572
|
</div>
|
|
573
|
+
<div class="form-row">
|
|
574
|
+
<label for="node-input-forwardPAI">forwardPAI</label>
|
|
575
|
+
<select id="node-input-forwardPAI">
|
|
576
|
+
<option value="default" selected>default</option>
|
|
577
|
+
<option value=true>true</option>
|
|
578
|
+
<option value=false>false</option>
|
|
579
|
+
</select>
|
|
580
|
+
</div>
|
|
572
581
|
<fieldset>
|
|
573
582
|
<legend>Live audio</legend>
|
|
574
583
|
<div class="form-row">
|
package/src/nodes/dial.js
CHANGED
|
@@ -60,6 +60,7 @@ module.exports = function(RED) {
|
|
|
60
60
|
data.exitMediaPath = config.exitmediapath;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
|
|
63
64
|
if (config.onholdhook) {
|
|
64
65
|
data.onHoldHook = await new_resolve(RED, config.onholdhook, config.onholdhookType, node, msg);
|
|
65
66
|
}
|
|
@@ -72,6 +73,9 @@ module.exports = function(RED) {
|
|
|
72
73
|
data.boostAudioSignal = await new_resolve(RED, config.boostaudiosignal, config.boostaudiosignalType, node, msg)
|
|
73
74
|
}
|
|
74
75
|
|
|
76
|
+
if (config.forwardPAI != 'default') {
|
|
77
|
+
data.forwardPAI = JSON.parse(config.forwardPAI);
|
|
78
|
+
}
|
|
75
79
|
// headers
|
|
76
80
|
const headers = {};
|
|
77
81
|
for (const h of config.headers) {
|
package/src/nodes/gather.js
CHANGED
|
@@ -57,8 +57,7 @@ module.exports = function(RED) {
|
|
|
57
57
|
if (/^\d+$/.test(config.mindigits)) obj.minDigits = parseInt(config.mindigits);
|
|
58
58
|
if (/^\d+$/.test(config.maxdigits)) obj.maxDigits = parseInt(config.maxdigits);
|
|
59
59
|
if (/^\d+$/.test(config.interdigittimeout)) obj.interDigitTimeout = parseInt(config.interdigittimeout);
|
|
60
|
-
|
|
61
|
-
if (config.dtmfbargein) obj.dtmfBargein = config.dtmfbargein;
|
|
60
|
+
if (config.dtmfbargein !== undefined) obj.dtmfBargein = config.dtmfbargein;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
63
|
// prompt
|