diff options
| author | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2020-11-23 10:28:32 +0100 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2020-11-23 10:28:32 +0100 |
| commit | d3277d65639ef43230b71305922b5ccf33d86083 (patch) | |
| tree | 87455d87a534c1bcb33a34290b840b68e573df96 /jitsi-meet/prosody-plugins/ext_events.lib.lua | |
initial commit
Diffstat (limited to 'jitsi-meet/prosody-plugins/ext_events.lib.lua')
| -rw-r--r-- | jitsi-meet/prosody-plugins/ext_events.lib.lua | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/jitsi-meet/prosody-plugins/ext_events.lib.lua b/jitsi-meet/prosody-plugins/ext_events.lib.lua new file mode 100644 index 0000000..edc0943 --- /dev/null +++ b/jitsi-meet/prosody-plugins/ext_events.lib.lua @@ -0,0 +1,58 @@ +-- invite will perform the trigger for external call invites. +-- This trigger is left unimplemented. The implementation is expected +-- to be specific to the deployment. +local function invite(stanza, url, call_id) + module:log( + "warn", + "A module has been configured that triggers external events." + ) + module:log("warn", "Implement this lib to trigger external events.") +end + +-- cancel will perform the trigger for external call cancellation. +-- This trigger is left unimplemented. The implementation is expected +-- to be specific to the deployment. +local function cancel(stanza, url, reason, call_id) + module:log( + "warn", + "A module has been configured that triggers external events." + ) + module:log("warn", "Implement this lib to trigger external events.") +end + +-- missed will perform the trigger for external call missed notification. +-- This trigger is left unimplemented. The implementation is expected +-- to be specific to the deployment. +local function missed(stanza, call_id) + module:log( + "warn", + "A module has been configured that triggers external events." + ) + module:log("warn", "Implement this lib to trigger external events.") +end + +-- Event that speaker stats for a conference are available +-- this is a table where key is the jid and the value is a table: +--{ +-- totalDominantSpeakerTime +-- nick +-- displayName +--} +-- This trigger is left unimplemented. The implementation is expected +-- to be specific to the deployment. +local function speaker_stats(room, speakerStats) + module:log( + "warn", + "A module has been configured that triggers external events." + ) + module:log("warn", "Implement this lib to trigger external events.") +end + +local ext_events = { + missed = missed, + invite = invite, + cancel = cancel, + speaker_stats = speaker_stats +} + +return ext_events |
