您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ext_events.lib.lua 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. local ext_events = {
  32. missed = missed,
  33. invite = invite,
  34. cancel = cancel
  35. }
  36. return ext_events