Changing the status strings for call flows to be lowercased where possible.

This should allow us to have a consistent convention and assist
with client translation of status strings.
This commit is contained in:
Jacob MacElroy 2018-05-22 17:54:47 +00:00 committed by Дамян Минков
parent c8c198b0b1
commit 9e2a101089
1 changed files with 9 additions and 9 deletions

View File

@ -16,11 +16,11 @@ if not muc_domain_base then
end
-- Status strings that trigger call events.
local invited_status = "Invited"
local calling_status = "Calling"
local ringing_status = "Ringing"
local busy_status = "Busy"
local rejected_status = "Rejected"
local invited_status = "Invited"
local calling_status = "calling"
local ringing_status = "ringing"
local busy_status = "busy"
local rejected_status = "rejected"
local connected_status = "connected"
@ -53,11 +53,11 @@ end
-- -------------------------
-- Status | Event Type
-- _________________________
-- "Calling" | INVITE
-- "calling" | INVITE
-- "Invited" | INVITE
-- "Ringing" | CANCEL
-- "Busy" | CANCEL
-- "Rejected" | CANCEL
-- "ringing" | CANCEL
-- "busy" | CANCEL
-- "rejected" | CANCEL
-- "connected" | CANCEL
module:hook("muc-broadcast-presence", function (event)
-- Detect if the presence is for a poltergeist or not.