Bläddra i källkod

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.
j8
Jacob MacElroy 7 år sedan
förälder
incheckning
9e2a101089
1 ändrade filer med 9 tillägg och 5 borttagningar
  1. 9
    5
      resources/prosody-plugins/mod_muc_call.lua

+ 9
- 5
resources/prosody-plugins/mod_muc_call.lua Visa fil

@@ -16,11 +16,11 @@ 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
-local calling_status  = "Calling"
21
-local ringing_status  = "Ringing"
22
-local busy_status     = "Busy"
23
-local rejected_status = "Rejected"
19
+local invited_status   = "Invited"
20
+local calling_status   = "calling"
21
+local ringing_status   = "ringing"
22
+local busy_status      = "busy"
23
+local rejected_status  = "rejected"
24 24
 local connected_status = "connected"
25 25
 
26 26
 
@@ -53,11 +53,11 @@ end
53 53
 --    -------------------------
54 54
 --    Status      | Event Type
55 55
 --    _________________________
56
+--    "calling"   | INVITE
56 57
 --    "Invited"   | INVITE
58
+--    "ringing"   | CANCEL
59
+--    "busy"      | CANCEL
60
+--    "rejected"  | CANCEL
57 61
 --    "connected" | CANCEL
58 62
 module:hook("muc-broadcast-presence", function (event)
59 63
     -- Detect if the presence is for a poltergeist or not.

Laddar…
Avbryt
Spara