mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-22 10:56:31 +00:00
Revert. Both legs can control of call.
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
<!--Allow transfer/record only for internal users-->
|
||||
<condition field="${sip_authorized}" expression="true" break="never">
|
||||
<action application="set" data="bind_target=both" inline="true"/>
|
||||
<anti-action application="set" data="bind_target=peer" inline="true"/>
|
||||
<!-- set to `peer` to prevent manipulate of call by callee -->
|
||||
<anti-action application="set" data="bind_target=both" inline="true"/>
|
||||
</condition>
|
||||
|
||||
<condition>
|
||||
|
||||
@@ -490,10 +490,10 @@
|
||||
session:execute("set", "hangup_after_bridge=true");
|
||||
session:execute("set", "continue_on_fail=true");
|
||||
|
||||
local bind_target = 'peer'
|
||||
if session:getVariable("sip_authorized") == "true" then
|
||||
bind_target = 'both'
|
||||
end
|
||||
local bind_target = 'both'
|
||||
-- if session:getVariable("sip_authorized") ~= "true" then
|
||||
-- bind_target = 'peer'
|
||||
-- end
|
||||
|
||||
--set bind digit action
|
||||
local record_file = recordings_dir.."/archive/"..os.date("%Y").."/"..os.date("%m").."/"..os.date("%d").."}/"..uuid.."."..record_ext
|
||||
|
||||
Reference in New Issue
Block a user