|
@@ -1,29 +1,41 @@
|
1
|
1
|
-- invite will perform the trigger for external call invites.
|
2
|
2
|
-- This trigger is left unimplemented. The implementation is expected
|
3
|
3
|
-- to be specific to the deployment.
|
4
|
|
-local function invite(stanza, url)
|
5
|
|
- module:log(
|
6
|
|
- "warn",
|
7
|
|
- "A module has been configured that triggers external events."
|
8
|
|
- )
|
9
|
|
- module:log("warn", "Implement this lib to trigger external events.")
|
|
4
|
+local function invite(stanza, url, call_id)
|
|
5
|
+ module:log(
|
|
6
|
+ "warn",
|
|
7
|
+ "A module has been configured that triggers external events."
|
|
8
|
+ )
|
|
9
|
+ module:log("warn", "Implement this lib to trigger external events.")
|
10
|
10
|
end
|
11
|
11
|
|
12
|
12
|
-- cancel will perform the trigger for external call cancellation.
|
13
|
13
|
-- This trigger is left unimplemented. The implementation is expected
|
14
|
14
|
-- to be specific to the deployment.
|
15
|
|
-local function cancel(stanza, url, reason)
|
16
|
|
- module:log(
|
17
|
|
- "warn",
|
18
|
|
- "A module has been configured that triggers external events."
|
19
|
|
- )
|
20
|
|
- module:log("warn", "Implement this lib to trigger external events.")
|
|
15
|
+local function cancel(stanza, url, reason, call_id)
|
|
16
|
+ module:log(
|
|
17
|
+ "warn",
|
|
18
|
+ "A module has been configured that triggers external events."
|
|
19
|
+ )
|
|
20
|
+ module:log("warn", "Implement this lib to trigger external events.")
|
|
21
|
+end
|
|
22
|
+
|
|
23
|
+-- missed will perform the trigger for external call missed notification.
|
|
24
|
+-- This trigger is left unimplemented. The implementation is expected
|
|
25
|
+-- to be specific to the deployment.
|
|
26
|
+local function missed(stanza, call_id)
|
|
27
|
+ module:log(
|
|
28
|
+ "warn",
|
|
29
|
+ "A module has been configured that triggers external events."
|
|
30
|
+ )
|
|
31
|
+ module:log("warn", "Implement this lib to trigger external events.")
|
21
|
32
|
end
|
22
|
33
|
|
23
|
34
|
|
24
|
35
|
local ext_events = {
|
25
|
|
- invite = invite,
|
26
|
|
- cancel = cancel
|
|
36
|
+ missed = missed,
|
|
37
|
+ invite = invite,
|
|
38
|
+ cancel = cancel
|
27
|
39
|
}
|
28
|
40
|
|
29
|
41
|
return ext_events
|