You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ext_events.lib.lua 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. -- cancel will perform the trigger for external call cancellation.
  12. -- This trigger is left unimplemented. The implementation is expected
  13. -- to be specific to the deployment.
  14. local function cancel(stanza, url, reason, call_id)
  15. module:log(
  16. "warn",
  17. "A module has been configured that triggers external events."
  18. )
  19. module:log("warn", "Implement this lib to trigger external events.")
  20. end
  21. -- missed will perform the trigger for external call missed notification.
  22. -- This trigger is left unimplemented. The implementation is expected
  23. -- to be specific to the deployment.
  24. local function missed(stanza, call_id)
  25. module:log(
  26. "warn",
  27. "A module has been configured that triggers external events."
  28. )
  29. module:log("warn", "Implement this lib to trigger external events.")
  30. end
  31. -- Event that speaker stats for a conference are available
  32. -- this is a table where key is the jid and the value is a table:
  33. --{
  34. -- totalDominantSpeakerTime
  35. -- nick
  36. -- displayName
  37. --}
  38. -- This trigger is left unimplemented. The implementation is expected
  39. -- to be specific to the deployment.
  40. local function speaker_stats(room, speakerStats)
  41. module:log(
  42. "warn",
  43. "A module has been configured that triggers external events."
  44. )
  45. module:log("warn", "Implement this lib to trigger external events.")
  46. end
  47. local ext_events = {
  48. missed = missed,
  49. invite = invite,
  50. cancel = cancel,
  51. speaker_stats = speaker_stats
  52. }
  53. return ext_events