-
Notifications
You must be signed in to change notification settings - Fork 15
/
callmonitor.html
70 lines (64 loc) · 2.29 KB
/
callmonitor.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<script type="text/javascript">
RED.nodes.registerType("fritzbox-callmonitor", {
category: "fritzbox",
paletteLabel: "FRITZ!Box Callmonitor",
color: "#2E90DD",
defaults: {
device: {type:"fritzbox-config", required: true},
name: {value:"", required: false},
topic: {value:"", required: false}
},
inputs:0,
outputs:1,
icon: "fritz.png",
label: function() {
return this.name ? this.name : "FRITZ!Box Callmonitor";
}
});
</script>
<script type="text/x-red" data-template-name="fritzbox-callmonitor">
<div class="form-row">
<label for="node-input-device"><i class="fa fa-server"></i> Device</label>
<input type="text" id="node-input-device">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" />
</div>
<div class="form-row">
<label for="node-input-topic"><i class="icon-bookmark"></i> Topic</label>
<input type="text" id="node-input-topic" />
</div>
</script>
<script type="text/x-red" data-help-name="fritzbox-callmonitor">
<p>Get notified about incoming/outgoing/missed calls.</p>
<h3>Outputs</h3>
<dl class="message-properties">
<dt>payload.type
<span class="property-type">string</span>
</dt>
<dd>Event type: INBOUND/MISSED, OUTBOUND/UNREACHED, CONNECT/DISCONNECT</dd>
<dt>payload.caller
<span class="property-type">string</span>
</dt>
<dd>Number of the caller.</dd>
<dt>payload.callee
<span class="property-type">string</span>
</dt>
<dd>Number of the callee.</dd>
<dt>payload.extension
<span class="property-type">string</span>
</dt>
<dd>Extension for the call. (Only for outgoing calls.)</dd>
<dt>payload.id
<span class="property-type">string</span>
</dt>
<dd>Call id</dd>
<dt>payload.timestamp
<span class="property-type">string</span>
</dt>
<dd>Timestamp of the event</dd>
</dl>
<h3>Details</h3>
<p>Note: To use the callmonitor node, you have to activate the callmonitor service in your FritzBox (Otherwise the node will emit the error <code>connect ECONNREFUSED</code>). This can be done by using a telephone which is connected to the FritzBox. Call <code>#96*5*</code> to enable the callmonitor service. Use <code>#96*4*</code> if you want disable the feature again.</p>
</script>