Procházet zdrojové kódy

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 před 7 roky
rodič
revize
9e2a101089
1 změnil soubory, kde provedl 9 přidání a 5 odebrání
  1. 9
    5
      resources/prosody-plugins/mod_muc_call.lua

+ 9
- 5
resources/prosody-plugins/mod_muc_call.lua Zobrazit soubor

16
 end
16
 end
17
 
17
 
18
 -- Status strings that trigger call events.
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
 local connected_status = "connected"
24
 local connected_status = "connected"
25
 
25
 
26
 
26
 
53
 --    -------------------------
53
 --    -------------------------
54
 --    Status      | Event Type
54
 --    Status      | Event Type
55
 --    _________________________
55
 --    _________________________
56
+--    "calling"   | INVITE
56
 --    "Invited"   | INVITE
57
 --    "Invited"   | INVITE
58
+--    "ringing"   | CANCEL
59
+--    "busy"      | CANCEL
60
+--    "rejected"  | CANCEL
57
 --    "connected" | CANCEL
61
 --    "connected" | CANCEL
58
 module:hook("muc-broadcast-presence", function (event)
62
 module:hook("muc-broadcast-presence", function (event)
59
     -- Detect if the presence is for a poltergeist or not.
63
     -- Detect if the presence is for a poltergeist or not.

Načítá se…
Zrušit
Uložit