Browse Source

feat(call-flows): Removing cancel hook for ringing status.

master
Jacob MacElroy 7 years ago
parent
commit
01899b1dfd
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      resources/prosody-plugins/mod_muc_call.lua

+ 0
- 2
resources/prosody-plugins/mod_muc_call.lua View File

17
 
17
 
18
 -- Status strings that trigger call events.
18
 -- Status strings that trigger call events.
19
 local calling_status   = "calling"
19
 local calling_status   = "calling"
20
-local ringing_status   = "ringing"
21
 local busy_status      = "busy"
20
 local busy_status      = "busy"
22
 local rejected_status  = "rejected"
21
 local rejected_status  = "rejected"
23
 local connected_status = "connected"
22
 local connected_status = "connected"
53
 --    Status      | Event Type
52
 --    Status      | Event Type
54
 --    _________________________
53
 --    _________________________
55
 --    "calling"   | INVITE
54
 --    "calling"   | INVITE
56
 --    "busy"      | CANCEL
55
 --    "busy"      | CANCEL
57
 --    "rejected"  | CANCEL
56
 --    "rejected"  | CANCEL
58
 --    "connected" | CANCEL
57
 --    "connected" | CANCEL
93
 	local switch = function(status)
91
 	local switch = function(status)
94
 	   case = {
92
 	   case = {
95
 		  [calling_status]   = function() invite() end,
93
 		  [calling_status]   = function() invite() end,
96
-		  [ringing_status]   = function() cancel() end,
97
 		  [busy_status]      = function() cancel() end,
94
 		  [busy_status]      = function() cancel() end,
98
 		  [rejected_status]  = function() cancel() end,
95
 		  [rejected_status]  = function() cancel() end,
99
 		  [connected_status] = function() cancel() end
96
 		  [connected_status] = function() cancel() end

Loading…
Cancel
Save