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