2018-04-05 21:23:59 +00:00
|
|
|
-- invite will perform the trigger for external call invites.
|
|
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
|
|
-- to be specific to the deployment.
|
2018-07-11 20:49:11 +00:00
|
|
|
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.")
|
2018-04-05 21:23:59 +00:00
|
|
|
end
|
|
|
|
|
2018-05-07 16:12:11 +00:00
|
|
|
-- cancel will perform the trigger for external call cancellation.
|
|
|
|
-- This trigger is left unimplemented. The implementation is expected
|
|
|
|
-- to be specific to the deployment.
|
2018-07-11 20:49:11 +00:00
|
|
|
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.")
|
2018-05-07 16:12:11 +00:00
|
|
|
end
|
|
|
|
|
2018-10-01 19:02:51 +00:00
|
|
|
-- 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
|
2018-04-05 21:23:59 +00:00
|
|
|
|
|
|
|
local ext_events = {
|
2018-07-11 20:49:11 +00:00
|
|
|
missed = missed,
|
|
|
|
invite = invite,
|
2018-10-01 19:02:51 +00:00
|
|
|
cancel = cancel,
|
|
|
|
speaker_stats = speaker_stats
|
2018-04-05 21:23:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return ext_events
|