"Fossies" - the Fresh Open Source Software Archive 
Member "jitsi-meet-7315/resources/prosody-plugins/ext_events.lib.lua" (2 Jun 2023, 1885 Bytes) of package /linux/misc/jitsi-meet-7315.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 -- invite will perform the trigger for external call invites.
2 -- This trigger is left unimplemented. The implementation is expected
3 -- to be specific to the deployment.
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 end
11
12 -- cancel will perform the trigger for external call cancellation.
13 -- This trigger is left unimplemented. The implementation is expected
14 -- to be specific to the deployment.
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.")
32 end
33
34 -- Event that speaker stats for a conference are available
35 -- this is a table where key is the jid and the value is a table:
36 --{
37 -- totalDominantSpeakerTime
38 -- nick
39 -- displayName
40 --}
41 -- This trigger is left unimplemented. The implementation is expected
42 -- to be specific to the deployment.
43 local function speaker_stats(room, speakerStats)
44 module:log(
45 "warn",
46 "A module has been configured that triggers external events."
47 )
48 module:log("warn", "Implement this lib to trigger external events.")
49 end
50
51 local ext_events = {
52 missed = missed,
53 invite = invite,
54 cancel = cancel,
55 speaker_stats = speaker_stats
56 }
57
58 return ext_events