Revert. Both legs can control of call.

This commit is contained in:
Alexey Melnichuk
2015-08-19 10:06:22 +04:00
parent 6d7271c793
commit 911fd65aa1
2 changed files with 6 additions and 5 deletions

View File

@@ -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