@jambonz/node-red-contrib-jambonz 2.4.25 → 2.4.26

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.25",
3
+ "version": "2.4.26",
4
4
  "description": "Node-RED nodes for jambonz platform",
5
5
  "keywords": [
6
6
  "node-red"
@@ -60,10 +60,16 @@
60
60
  return action !== 'send_dtmf' || v.length > 0;
61
61
  }},
62
62
  dtmfDigitType: {value: 'str'},
63
- dtmfDuration: {value: ''},
63
+ dtmfDuration: {value: '', validate: function(v) {
64
+ const action = $('#node-input-action').val();
65
+ return action !== 'send_dtmf' || v.length > 0;
66
+ }},
64
67
  dtmfDurationType: {value: 'str'},
65
- tag: {value: ''},
66
- tagType: {value: 'str'},
68
+ tag: {value: '{}', validate: function(v) {
69
+ const action = $('#node-input-action').val();
70
+ return action !== 'tag' || v.length > 0;
71
+ }},
72
+ tagType: {value: 'json'},
67
73
  },
68
74
  inputs:1,
69
75
  outputs:1,
@@ -118,7 +124,7 @@
118
124
  });
119
125
  $('#node-input-sipRequestHeaders').typedInput({
120
126
  default: $('#node-input-sipRequestHeadersType').val(),
121
- types: ['json','msg', 'flow', 'global'],
127
+ types: ['msg', 'flow', 'global', 'json', 'jsonata'],
122
128
  typeField: $('#node-input-sipRequestHeadersType')
123
129
  });
124
130
  $('#node-input-siprecServerURL').typedInput({
@@ -143,7 +149,7 @@
143
149
  });
144
150
  $('#node-input-tag').typedInput({
145
151
  default: $('#node-input-tagType').val(),
146
- types: ['json', 'msg', 'flow', 'global', 'jsonata', 'env', mustacheType],
152
+ types: ['msg', 'flow', 'global', 'json', 'jsonata', 'env', mustacheType],
147
153
  typeField: $('#node-input-tagType')
148
154
  });
149
155
 
package/src/nodes/lcc.js CHANGED
@@ -62,6 +62,7 @@ function lcc(config) {
62
62
  break;
63
63
  case 'unhold_conf':
64
64
  opts.conf_hold_status = 'unhold';
65
+ break;
65
66
  case 'whisper':
66
67
  Object.assign(opts, {
67
68
  whisper: {