Revert. Both legs can control of call.
This commit is contained in:
parent
42a15cab44
commit
72cb20f6c4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue