|
@@ -16,11 +16,11 @@ if not muc_domain_base then
|
16
|
16
|
end
|
17
|
17
|
|
18
|
18
|
-- Status strings that trigger call events.
|
19
|
|
-local invited_status = "Invited"
|
20
|
|
-local calling_status = "Calling"
|
21
|
|
-local ringing_status = "Ringing"
|
22
|
|
-local busy_status = "Busy"
|
23
|
|
-local rejected_status = "Rejected"
|
|
19
|
+local invited_status = "Invited"
|
|
20
|
+local calling_status = "calling"
|
|
21
|
+local ringing_status = "ringing"
|
|
22
|
+local busy_status = "busy"
|
|
23
|
+local rejected_status = "rejected"
|
24
|
24
|
local connected_status = "connected"
|
25
|
25
|
|
26
|
26
|
|
|
@@ -53,11 +53,11 @@ end
|
53
|
53
|
-- -------------------------
|
54
|
54
|
-- Status | Event Type
|
55
|
55
|
-- _________________________
|
|
56
|
+-- "calling" | INVITE
|
56
|
57
|
-- "Invited" | INVITE
|
|
58
|
+-- "ringing" | CANCEL
|
|
59
|
+-- "busy" | CANCEL
|
|
60
|
+-- "rejected" | CANCEL
|
57
|
61
|
-- "connected" | CANCEL
|
58
|
62
|
module:hook("muc-broadcast-presence", function (event)
|
59
|
63
|
-- Detect if the presence is for a poltergeist or not.
|