Merge pull request #3073 from jmacelroy/new-invite-only
No longer triggering calls for the Invited status of a poltergeist.
This commit is contained in:
commit
a4cfe97b38
|
@ -16,7 +16,6 @@ if not muc_domain_base then
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Status strings that trigger call events.
|
-- Status strings that trigger call events.
|
||||||
local invited_status = "Invited"
|
|
||||||
local calling_status = "calling"
|
local calling_status = "calling"
|
||||||
local ringing_status = "ringing"
|
local ringing_status = "ringing"
|
||||||
local busy_status = "busy"
|
local busy_status = "busy"
|
||||||
|
@ -54,7 +53,6 @@ end
|
||||||
-- Status | Event Type
|
-- Status | Event Type
|
||||||
-- _________________________
|
-- _________________________
|
||||||
-- "calling" | INVITE
|
-- "calling" | INVITE
|
||||||
-- "Invited" | INVITE
|
|
||||||
-- "ringing" | CANCEL
|
-- "ringing" | CANCEL
|
||||||
-- "busy" | CANCEL
|
-- "busy" | CANCEL
|
||||||
-- "rejected" | CANCEL
|
-- "rejected" | CANCEL
|
||||||
|
@ -82,7 +80,6 @@ module:hook("muc-broadcast-presence", function (event)
|
||||||
|
|
||||||
local switch = function(status)
|
local switch = function(status)
|
||||||
case = {
|
case = {
|
||||||
[invited_status] = function() invite() end,
|
|
||||||
[calling_status] = function() invite() end,
|
[calling_status] = function() invite() end,
|
||||||
[ringing_status] = function() cancel() end,
|
[ringing_status] = function() cancel() end,
|
||||||
[busy_status] = function() cancel() end,
|
[busy_status] = function() cancel() end,
|
||||||
|
|
Loading…
Reference in New Issue