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:
parent
c8c198b0b1
commit
9e2a101089
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue