소스 검색

Merge pull request #3073 from jmacelroy/new-invite-only

No longer triggering calls for the Invited status of a poltergeist.
master
Aaron van Meerten 7 년 전
부모
커밋
a4cfe97b38
No account linked to committer's email address
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0
    2
      resources/prosody-plugins/mod_muc_call.lua

+ 0
- 2
resources/prosody-plugins/mod_muc_call.lua 파일 보기

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"
19
 local calling_status   = "calling"
21
 local ringing_status   = "ringing"
20
 local ringing_status   = "ringing"
22
 local busy_status      = "busy"
21
 local busy_status      = "busy"
54
 --    Status      | Event Type
53
 --    Status      | Event Type
55
 --    _________________________
54
 --    _________________________
56
 --    "calling"   | INVITE
55
 --    "calling"   | INVITE
57
 --    "ringing"   | CANCEL
56
 --    "ringing"   | CANCEL
58
 --    "busy"      | CANCEL
57
 --    "busy"      | CANCEL
59
 --    "rejected"  | CANCEL
58
 --    "rejected"  | CANCEL
82
 
80
 
83
 	local switch = function(status)
81
 	local switch = function(status)
84
 	   case = {
82
 	   case = {
85
-		  [invited_status]   = function() invite() end,
86
 		  [calling_status]   = function() invite() end,
83
 		  [calling_status]   = function() invite() end,
87
 		  [ringing_status]   = function() cancel() end,
84
 		  [ringing_status]   = function() cancel() end,
88
 		  [busy_status]      = function() cancel() end,
85
 		  [busy_status]      = function() cancel() end,

Loading…
취소
저장