@jambonz/node-red-contrib-jambonz 2.3.1 → 2.3.2

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.
Files changed (66) hide show
  1. package/package.json +4 -4
  2. package/src/nodes/auth.html +9 -16
  3. package/src/nodes/auth.js +2 -9
  4. package/src/nodes/conference.html +12 -15
  5. package/src/nodes/conference.js +0 -4
  6. package/src/nodes/config.js +0 -4
  7. package/src/nodes/create_call.html +7 -16
  8. package/src/nodes/create_call.js +2 -6
  9. package/src/nodes/create_sms.html +3 -15
  10. package/src/nodes/create_sms.js +0 -5
  11. package/src/nodes/dequeue.html +6 -8
  12. package/src/nodes/dequeue.js +0 -4
  13. package/src/nodes/dial.html +3 -8
  14. package/src/nodes/dial.js +0 -5
  15. package/src/nodes/dialogflow.html +3 -13
  16. package/src/nodes/dialogflow.js +0 -5
  17. package/src/nodes/dtmf.html +5 -11
  18. package/src/nodes/dtmf.js +0 -5
  19. package/src/nodes/enqueue.html +7 -14
  20. package/src/nodes/enqueue.js +0 -6
  21. package/src/nodes/gather.html +3 -8
  22. package/src/nodes/gather.js +0 -5
  23. package/src/nodes/get_alerts.html +5 -27
  24. package/src/nodes/get_alerts.js +14 -16
  25. package/src/nodes/get_calls.html +6 -28
  26. package/src/nodes/get_calls.js +36 -36
  27. package/src/nodes/get_recent_calls.html +25 -27
  28. package/src/nodes/get_recent_calls.js +21 -21
  29. package/src/nodes/hangup.html +5 -11
  30. package/src/nodes/hangup.js +2 -7
  31. package/src/nodes/lcc.html +12 -19
  32. package/src/nodes/lcc.js +0 -4
  33. package/src/nodes/leave.html +4 -5
  34. package/src/nodes/leave.js +0 -6
  35. package/src/nodes/lex.html +5 -3
  36. package/src/nodes/lex.js +0 -5
  37. package/src/nodes/listen.html +2 -3
  38. package/src/nodes/listen.js +0 -5
  39. package/src/nodes/message.html +5 -6
  40. package/src/nodes/message.js +30 -30
  41. package/src/nodes/pause.html +5 -8
  42. package/src/nodes/pause.js +0 -6
  43. package/src/nodes/play.html +7 -10
  44. package/src/nodes/play.js +0 -5
  45. package/src/nodes/rasa.html +5 -13
  46. package/src/nodes/rasa.js +1 -5
  47. package/src/nodes/redirect.html +4 -8
  48. package/src/nodes/redirect.js +0 -6
  49. package/src/nodes/s3-upload.html +0 -2
  50. package/src/nodes/s3-upload.js +1 -6
  51. package/src/nodes/say.html +5 -7
  52. package/src/nodes/say.js +0 -4
  53. package/src/nodes/sip-decline.html +5 -8
  54. package/src/nodes/sip-decline.js +0 -5
  55. package/src/nodes/sip-refer.html +4 -12
  56. package/src/nodes/sip-refer.js +1 -5
  57. package/src/nodes/sip-request.html +5 -11
  58. package/src/nodes/sip-request.js +1 -8
  59. package/src/nodes/tag.html +2 -4
  60. package/src/nodes/tag.js +0 -5
  61. package/src/nodes/template.html +7 -16
  62. package/src/nodes/userauth.html +47 -21
  63. package/src/nodes/userauth.js +18 -6
  64. package/src/nodes/webhooks.html +26 -29
  65. package/src/utils/http-helpers.js +5 -4
  66. package/src/utils/tts-utils.js +1 -0
@@ -1,11 +1,5 @@
1
-
2
- var {createHash} = require('crypto');
3
- const bent = require('bent');
4
- var mustache = require('mustache');
5
- mustache.escape = function(text) {return text;};
6
1
  var {appendVerb} = require('./libs')
7
2
 
8
-
9
3
  module.exports = function(RED) {
10
4
  function leave(config) {
11
5
  RED.nodes.createNode(this, config);
@@ -100,7 +100,6 @@
100
100
  });
101
101
  </script>
102
102
 
103
-
104
103
  <!-- HTML -->
105
104
  <script type="text/html" data-template-name="lex">
106
105
  <div class="form-row">
@@ -234,7 +233,7 @@
234
233
 
235
234
  <!-- Help Text -->
236
235
  <script type="text/html" data-help-name="lex">
237
- <p>Connects a call to a lex bot</p>
236
+ <p>Connects a call to a Amazon lex bot</p>
238
237
 
239
238
  <h3>Properties</h3>
240
239
  <p><code>Name</code> - Label for the node</p>
@@ -260,5 +259,8 @@
260
259
  <p><code> </code> - </p>
261
260
  <p><code> </code> - </p>
262
261
 
263
-
262
+ <h3>References</h3>
263
+ <ul>
264
+ <li><a href="https://www.jambonz.org/docs/webhooks/lex/">Jambonz lex reference</a></li>
265
+ </ul>
264
266
  </script>
package/src/nodes/lex.js CHANGED
@@ -1,10 +1,5 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
-
8
3
  module.exports = function(RED) {
9
4
  /** lex */
10
5
  function lex(config) {
@@ -107,7 +107,6 @@ RED.nodes.registerType('listen',{
107
107
  });
108
108
  </script>
109
109
 
110
-
111
110
  <!-- HTML -->
112
111
  <script type="text/html" data-template-name="listen">
113
112
  <div class="form-row">
@@ -336,6 +335,6 @@ RED.nodes.registerType('listen',{
336
335
  <h3>Details</h3>
337
336
  The listen verb establishes a connection to a websocket server and sends live audio for the current call.<h3>References</h3>
338
337
  <ul>
339
- <li><a href="https://docs.jambonz.org/jambonz/#listen">Jambonz listen reference</a></li>
338
+ <li><a href="https://www.jambonz.org/docs/webhooks/listen/">Jambonz listen reference</a></li>
340
339
  </ul>
341
- </script>
340
+ </script>
@@ -1,10 +1,5 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
-
8
3
  module.exports = function(RED) {
9
4
  function listen(config) {
10
5
  RED.nodes.createNode(this, config);
@@ -1,6 +1,6 @@
1
1
  <!-- Javascript -->
2
2
  <script type="text/javascript">
3
- RED.nodes.registerType('message', {
3
+ RED.nodes.registerType('message', {
4
4
  category: 'jambonz',
5
5
  color: '#bbabaa',
6
6
  defaults: {
@@ -47,7 +47,6 @@ RED.nodes.registerType('message', {
47
47
  });
48
48
  </script>
49
49
 
50
-
51
50
  <!-- HTML -->
52
51
  <script type="text/html" data-template-name="message">
53
52
  <div class="form-row">
@@ -82,14 +81,14 @@ RED.nodes.registerType('message', {
82
81
 
83
82
  <h3>Outputs</h3>
84
83
  <dl class="message-properties">
85
- <dt>jambonz<span class="property-type">object</span></dt>
86
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>message</code> action appended </dd>
84
+ <dt>jambonz<span class="property-type">object</span></dt>
85
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>message</code> action appended </dd>
87
86
  </dl>
88
87
 
89
88
  <h3>Details</h3>
90
89
  The message verb sends an SMS message.
91
90
  <h3>References</h3>
92
91
  <ul>
93
- <li><a href="https://docs.jambonz.org/jambonz/#message">Jambonz redirect reference</a></li>
92
+ <li><a href="https://www.jambonz.org/docs/webhooks/message/">Jambonz message reference</a></li>
94
93
  </ul>
95
- </script>
94
+ </script>
@@ -1,32 +1,32 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
- var {appendVerb, v_resolve} = require('./libs')
1
+ var { appendVerb, v_resolve } = require("./libs");
6
2
 
7
-
8
- module.exports = function(RED) {
9
- function message(config) {
10
- RED.nodes.createNode(this, config);
11
- var node = this;
12
- node.on('input', function(msg, send, done) {
13
- var from = v_resolve(config.from, config.fromType, this.context(), msg);
14
- var to = v_resolve(config.to, config.toType, this.context(), msg);
15
- var text = v_resolve(config.text, config.textType, this.context(), msg);
16
- var provider = v_resolve(config.provider, config.providerType, this.context(), msg);
17
- if ((!provider || 0 === provider.length) && msg.sms.provider) {
18
- provider = msg.sms.provider;
19
- }
20
-
21
- appendVerb(msg, {
22
- verb: 'message',
23
- from,
24
- to,
25
- text,
26
- provider
27
- });
28
- node.send(msg);
29
- });
3
+ module.exports = function (RED) {
4
+ function message(config) {
5
+ RED.nodes.createNode(this, config);
6
+ var node = this;
7
+ node.on("input", function (msg, send, done) {
8
+ var from = v_resolve(config.from, config.fromType, this.context(), msg);
9
+ var to = v_resolve(config.to, config.toType, this.context(), msg);
10
+ var text = v_resolve(config.text, config.textType, this.context(), msg);
11
+ var provider = v_resolve(
12
+ config.provider,
13
+ config.providerType,
14
+ this.context(),
15
+ msg
16
+ );
17
+ if ((!provider || 0 === provider.length) && msg.sms.provider) {
18
+ provider = msg.sms.provider;
30
19
  }
31
- RED.nodes.registerType('message', message);
32
- }
20
+
21
+ appendVerb(msg, {
22
+ verb: "message",
23
+ from,
24
+ to,
25
+ text,
26
+ provider,
27
+ });
28
+ node.send(msg);
29
+ });
30
+ }
31
+ RED.nodes.registerType("message", message);
32
+ };
@@ -1,13 +1,12 @@
1
1
  <!-- Javascript -->
2
2
  <script type="text/javascript">
3
- RED.nodes.registerType('pause',{
3
+ RED.nodes.registerType('pause',{
4
4
  category: 'jambonz',
5
5
  color: '#bbabaa',
6
6
  defaults: {
7
7
  name: {value: ''},
8
8
  len: {required: true},
9
9
  lenType: {value: 'num'},
10
-
11
10
  },
12
11
  inputs:1,
13
12
  outputs:1,
@@ -21,10 +20,8 @@
21
20
  });
22
21
  }
23
22
  });
24
-
25
23
  </script>
26
24
 
27
-
28
25
  <!-- HTML -->
29
26
  <script type="text/html" data-template-name="pause">
30
27
  <div class="form-row">
@@ -36,7 +33,7 @@
36
33
  <input type="text" id="node-input-len" placeholder="number of seconds to pause">
37
34
  <input type="hidden" id="node-input-lenType">
38
35
  </div>
39
- </script>
36
+ </script>
40
37
 
41
38
  <!-- Help Text -->
42
39
  <script type="text/html" data-help-name="pause">
@@ -45,7 +42,7 @@
45
42
  <dl class="message-properties">
46
43
  <dt>Duration<span class="property-type">object</span></dt>
47
44
  <dd>Number of seconds pause</dd>
48
- </dl>
45
+ </dl>
49
46
 
50
47
  <h3>Outputs</h3>
51
48
  <dl class="message-properties">
@@ -57,6 +54,6 @@
57
54
  The pause verb waits a specified number of seconds before continuing to execute the application.
58
55
  <h3>References</h3>
59
56
  <ul>
60
- <li><a href="https://docs.jambonz.org/jambonz/#pause">Jambonz pause reference</a></li>
57
+ <li><a href="https://www.jambonz.org/docs/webhooks/pause/">Jambonz pause reference</a></li>
61
58
  </ul>
62
- </script>
59
+ </script>
@@ -1,10 +1,5 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
-
8
3
  module.exports = function(RED) {
9
4
  /** pause */
10
5
  function pause(config) {
@@ -21,5 +16,4 @@ module.exports = function(RED) {
21
16
  });
22
17
  }
23
18
  RED.nodes.registerType('pause', pause);
24
-
25
19
  }
@@ -22,10 +22,8 @@ RED.nodes.registerType('play',{
22
22
  });
23
23
  }
24
24
  });
25
-
26
25
  </script>
27
26
 
28
-
29
27
  <!-- HTML -->
30
28
  <script type="text/html" data-template-name="play">
31
29
  <div class="form-row">
@@ -52,17 +50,16 @@ RED.nodes.registerType('play',{
52
50
  <p>Play a wav or mp3 file</p>
53
51
  <h3>Properties</h3>
54
52
  <p><code>Url</code> -
55
- a single url or array of urls (will play in sequence) to a wav or mp3 file</p>
53
+ a single url or array of urls (will play in sequence) to a wav or mp3 file</p>
56
54
  <p><code>Early media</code> -
57
- if checked, play the url over an early media connection</p>
55
+ if checked, play the url over an early media connection</p>
58
56
  <p><code>Loop</code> -
59
- number of times to play the url</p>
60
-
57
+ number of times to play the url</p>
61
58
 
62
59
  <h3>Outputs</h3>
63
60
  <dl class="message-properties">
64
- <dt>jambonz<span class="property-type">object</span></dt>
65
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>play</code> action appended </dd>
61
+ <dt>jambonz<span class="property-type">object</span></dt>
62
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>play</code> action appended </dd>
66
63
  </dl>
67
64
 
68
65
  <h3>Details</h3>
@@ -71,6 +68,6 @@ RED.nodes.registerType('play',{
71
68
 
72
69
  <h3>References</h3>
73
70
  <ul>
74
- <li><a href="https://docs.jambonz.org/jambonz/#play">Jambonz play reference</a></li>
71
+ <li><a href="https://www.jambonz.org/docs/webhooks/play/">Jambonz play reference</a></li>
75
72
  </ul>
76
- </script>
73
+ </script>
package/src/nodes/play.js CHANGED
@@ -1,10 +1,5 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
-
8
3
  module.exports = function(RED) {
9
4
  function play(config) {
10
5
  RED.nodes.createNode(this, config);
@@ -1,8 +1,6 @@
1
1
  <!-- Javascript -->
2
-
3
-
4
2
  <script type="text/javascript">
5
- RED.nodes.registerType('rasa',{
3
+ RED.nodes.registerType('rasa',{
6
4
  category: 'jambonz',
7
5
  color: '#bbabaa',
8
6
  defaults: {
@@ -41,13 +39,9 @@
41
39
  });
42
40
  }
43
41
  });
44
-
45
-
46
42
  </script>
47
43
 
48
-
49
44
  <!-- HTML -->
50
-
51
45
  <script type="text/html" data-template-name="rasa">
52
46
  <div class="form-row">
53
47
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
@@ -77,7 +71,6 @@
77
71
  </script>
78
72
 
79
73
  <!-- Help Text -->
80
-
81
74
  <script type="text/html" data-help-name="rasa">
82
75
  <p>The rasa verb is used to connect a call to a Rasa assistant.
83
76
 
@@ -89,10 +82,10 @@
89
82
  <p><code>actionHook </code> - A webhook that is called when the rasa verb completes </p>
90
83
 
91
84
  <h3>Outputs</h3>
92
- <dl class="message-properties">
93
- <dt>payload<span class="property-type">object</span></dt>
94
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>rasa</code> action appended </dd>
95
- </dl>
85
+ <dl class="message-properties">
86
+ <dt>payload<span class="property-type">object</span></dt>
87
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>rasa</code> action appended </dd>
88
+ </dl>
96
89
 
97
90
  <h3>Details</h3>
98
91
  The rasa verb performs speech recognition on the caller audio stream and sends it as text input to the rasa assistant using the rasa RestInput channel. Text returned from the assistant is played to the caller using text-to-speech. As the conversation proceeds, webhook events can be sent to notify of all of the messages being exchanged between the user and the bot, allowing your application to intercede at any point, e.g. to transfer the call to an agent.
@@ -102,5 +95,4 @@
102
95
  <li><a href="https://www.jambonz.org/docs/webhooks/rasa/">Jambonz rasa reference</a></li>
103
96
  </ul>
104
97
  </script>
105
-
106
98
  </script>
package/src/nodes/rasa.js CHANGED
@@ -1,8 +1,4 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
- var {appendVerb, v_resolve, v_text_resolve, doLCC, doCreateCall, doCreateMessage} = require('./libs')
1
+ var {appendVerb} = require('./libs')
6
2
 
7
3
  module.exports = function(RED) {
8
4
  function rasa(config) {
@@ -37,8 +37,7 @@
37
37
  </script>
38
38
 
39
39
  <!-- Help Text -->
40
- <script type="text/html" data-help-name="audio in">
41
- <script type="text/html" data-help-name="redirect">
40
+ <script type="text/html" data-help-name="redirect">
42
41
  <p>Redirect a call to a new application URL</p>
43
42
  <h3>Inputs</h3>
44
43
  <dl class="message-properties">
@@ -48,17 +47,14 @@
48
47
 
49
48
  <h3>Outputs</h3>
50
49
  <dl class="message-properties">
51
- <dt>jambonz<span class="property-type">object</span></dt>
52
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>redirect</code> action appended </dd>
50
+ <dt>jambonz<span class="property-type">object</span></dt>
51
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>redirect</code> action appended </dd>
53
52
  </dl>
54
53
 
55
54
  <h3>Details</h3>
56
55
  The redirect verb retrieves a new URL to execute for the current call.
57
56
  <h3>References</h3>
58
57
  <ul>
59
- <li><a href="https://docs.jambonz.org/jambonz/#redirect">Jambonz redirect reference</a></li>
58
+ <li><a href="https://www.jambonz.org/docs/webhooks/redirect/">Jambonz redirect reference</a></li>
60
59
  </ul>
61
- </script>
62
-
63
-
64
60
  </script>
@@ -1,10 +1,5 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
-
8
3
  module.exports = function(RED) {
9
4
  /** redirect */
10
5
  function redirect(config) {
@@ -20,5 +15,4 @@ module.exports = function(RED) {
20
15
  });
21
16
  }
22
17
  RED.nodes.registerType('redirect', redirect);
23
-
24
18
  }
@@ -48,7 +48,6 @@
48
48
  </dd>
49
49
  </dl>
50
50
 
51
-
52
51
  <h3>Details</h3>
53
52
  <dl>
54
53
  <dt>node-input-path</dt>
@@ -56,5 +55,4 @@
56
55
  <dt>S3 Bucket Access Point </dt>dt>
57
56
  <dd>The access point of an S3 bucket to upload recording to. This must allow public access.</dd>
58
57
  </dl>
59
-
60
58
  </script>
@@ -1,13 +1,9 @@
1
- const { notDeepStrictEqual } = require('assert');
2
- const { memoryStorage } = require('multer');
3
-
4
1
  module.exports = function(RED) {
5
2
  var WebSocket = require('ws');
6
3
  var url = require('url');
7
- var AWS = require('aws-sdk') ;
4
+ var AWS = require('aws-sdk') ;
8
5
  var S3Stream = require('s3-upload-stream');
9
6
 
10
-
11
7
  var serverUpgradeAdded = false;
12
8
  function handleServerUpgrade(request, socket, head) {
13
9
  const pathname = url.parse(request.url).pathname;
@@ -22,7 +18,6 @@ module.exports = function(RED) {
22
18
  }
23
19
  var listenerNodes = {};
24
20
 
25
-
26
21
  // A node red node that sets up a local websocket server
27
22
  function WebSocketListenerNode(n) {
28
23
  // Create a RED node
@@ -23,10 +23,8 @@
23
23
  prepareTtsControls(node);
24
24
  }
25
25
  });
26
-
27
26
  </script>
28
27
 
29
-
30
28
  <!-- HTML -->
31
29
  <script type="text/html" data-template-name="say">
32
30
  <div class="form-row">
@@ -79,7 +77,7 @@
79
77
  </select>
80
78
  </div>
81
79
  </fieldset>
82
- </script>
80
+ </script>
83
81
 
84
82
  <!-- Help Text -->
85
83
  <script type="text/html" data-help-name="say">
@@ -102,8 +100,8 @@
102
100
 
103
101
  <h3>Outputs</h3>
104
102
  <dl class="message-properties">
105
- <dt>jambonz<span class="property-type">object</span></dt>
106
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>say</code> action appended </dd>
103
+ <dt>jambonz<span class="property-type">object</span></dt>
104
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>say</code> action appended </dd>
107
105
  </dl>
108
106
 
109
107
  <h3>Details</h3>
@@ -115,5 +113,5 @@
115
113
  <code>The payload is {{msg.payload}}</code>
116
114
  <h3>References</h3>
117
115
  <ul>
118
- <li><a href="https://docs.jambonz.org/jambonz/#say">Jambonz say reference</a></li>
119
- </script>
116
+ <li><a href="https://www.jambonz.org/docs/webhooks/say/">Jambonz say reference</a></li>
117
+ </script>
package/src/nodes/say.js CHANGED
@@ -1,7 +1,3 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_text_resolve} = require('./libs')
6
2
 
7
3
  module.exports = function(RED) {
@@ -27,11 +27,8 @@
27
27
  });
28
28
  }
29
29
  });
30
-
31
30
  </script>
32
31
 
33
-
34
-
35
32
  <!-- HTML -->
36
33
  <script type="text/html" data-template-name="sip:decline">
37
34
  <div class="form-row">
@@ -48,7 +45,7 @@
48
45
  <input type="text" id="node-input-reason" placeholder="sip reason">
49
46
  <input type="hidden" id="node-input-reasonType">
50
47
  </div>
51
- </script>
48
+ </script>
52
49
 
53
50
  <!-- Help Text -->
54
51
  <script type="text/html" data-help-name="sip:decline">
@@ -63,14 +60,14 @@
63
60
 
64
61
  <h3>Outputs</h3>
65
62
  <dl class="message-properties">
66
- <dt>jambonz<span class="property-type">object</span></dt>
67
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>sip:decline</code> action appended </dd>
63
+ <dt>jambonz<span class="property-type">object</span></dt>
64
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>sip:decline</code> action appended </dd>
68
65
  </dl>
69
66
 
70
67
  <h3>Details</h3>
71
68
  The sip:decline verb rejects an incoming call.
72
69
  <h3>References</h3>
73
70
  <ul>
74
- <li><a href="https://docs.jambonz.org/jambonz/#sipdecline">Jambonz sip:decline reference</a></li>
71
+ <li><a href="https://www.jambonz.org/docs/webhooks/sip-decline/">Jambonz sip:decline reference</a></li>
75
72
  </ul>
76
- </script>
73
+ </script>
@@ -1,7 +1,3 @@
1
- var {createHash} = require('crypto');
2
- const bent = require('bent');
3
- var mustache = require('mustache');
4
- mustache.escape = function(text) {return text;};
5
1
  var {appendVerb, v_resolve} = require('./libs')
6
2
 
7
3
  module.exports = function(RED) {
@@ -21,5 +17,4 @@ module.exports = function(RED) {
21
17
  });
22
18
  }
23
19
  RED.nodes.registerType('sip:decline', sip_decline);
24
-
25
20
  }
@@ -49,19 +49,14 @@
49
49
  });
50
50
  }
51
51
  });
52
-
53
52
  </script>
54
53
 
55
-
56
-
57
54
  <!-- HTML -->
58
55
  <script type="text/html" data-template-name="sip:refer">
59
56
  <div class="form-row">
60
57
  <label for="node-input-name"><i class="icon-tag"></i> Name</label>
61
58
  <input type="text" id="node-input-name" placeholder="Name">
62
59
  </div>
63
-
64
-
65
60
  <div class="form-row">
66
61
  <label for="node-input-referTo">referTo</label>
67
62
  <input type="text" id="node-input-referTo" placeholder="address">
@@ -87,10 +82,7 @@
87
82
  <input type="text" id="node-input-headers" placeholder="SIP headers">
88
83
  <input type="hidden" id="node-input-headersType">
89
84
  </div>
90
- </script>
91
-
92
-
93
-
85
+ </script>
94
86
 
95
87
  <!-- Help Text -->
96
88
  <script type="text/html" data-help-name="sip:refer">
@@ -104,8 +96,8 @@
104
96
 
105
97
  <h3>Outputs</h3>
106
98
  <dl class="message-properties">
107
- <dt>jambonz<span class="property-type">object</span></dt>
108
- <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>sip:decline</code> action appended </dd>
99
+ <dt>jambonz<span class="property-type">object</span></dt>
100
+ <dd> <code>msg.jambonz</code> will contain any previous actions provided to the input with the new <code>sip:decline</code> action appended </dd>
109
101
  </dl>
110
102
 
111
103
  <h3>Details</h3>
@@ -113,4 +105,4 @@
113
105
  <ul>
114
106
  <li><a href="https://www.jambonz.org/docs/webhooks/sip-refer/">Jambonz sip:refer reference</a></li>
115
107
  </ul>
116
- </script>
108
+ </script>
@@ -1,7 +1,4 @@
1
- var {createHash} = require('crypto');
2
- var mustache = require('mustache');
3
- mustache.escape = function(text) {return text;};
4
- var {appendVerb, } = require('./libs');
1
+ var {appendVerb} = require('./libs');
5
2
 
6
3
  module.exports = function(RED) {
7
4
  function sip_refer(config) {
@@ -29,5 +26,4 @@ module.exports = function(RED) {
29
26
  });
30
27
  }
31
28
  RED.nodes.registerType('sip:refer', sip_refer);
32
-
33
29
  }