|
@@ -16,7 +16,6 @@ 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
|
19
|
local calling_status = "calling"
|
21
|
20
|
local ringing_status = "ringing"
|
22
|
21
|
local busy_status = "busy"
|
|
@@ -54,7 +53,6 @@ end
|
54
|
53
|
-- Status | Event Type
|
55
|
54
|
-- _________________________
|
56
|
55
|
-- "calling" | INVITE
|
57
|
56
|
-- "ringing" | CANCEL
|
58
|
57
|
-- "busy" | CANCEL
|
59
|
58
|
-- "rejected" | CANCEL
|
|
@@ -82,7 +80,6 @@ module:hook("muc-broadcast-presence", function (event)
|
82
|
80
|
|
83
|
81
|
local switch = function(status)
|
84
|
82
|
case = {
|
85
|
|
- [invited_status] = function() invite() end,
|
86
|
83
|
[calling_status] = function() invite() end,
|
87
|
84
|
[ringing_status] = function() cancel() end,
|
88
|
85
|
[busy_status] = function() cancel() end,
|