From 8720866ce9f4800b519407ea51fe892fff5e84fc Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 23 Sep 2015 13:08:22 +0400 Subject: [PATCH] Add. intercept for call center calls --- resources/install/scripts/intercept.lua | 4 +++- resources/install/scripts/intercept_group.lua | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/install/scripts/intercept.lua b/resources/install/scripts/intercept.lua index a18f0d17b5..7f0d8bdca3 100644 --- a/resources/install/scripts/intercept.lua +++ b/resources/install/scripts/intercept.lua @@ -138,7 +138,9 @@ if ( session:ready() ) then -- freeswitch.consoleLog("NOTICE", "result "..key.." "..val.."\n"); --end if result.uuid == result.call_uuid then - uuid = channel_variable(result.uuid, 'ent_originate_aleg_uuid') or row.uuid + uuid = channel_variable(result.uuid, 'ent_originate_aleg_uuid') or + channel_variable(result.uuid, 'cc_member_session_uuid') or + result.uuid else uuid = result.call_uuid; end diff --git a/resources/install/scripts/intercept_group.lua b/resources/install/scripts/intercept_group.lua index 4db4e8793b..4ba42b71be 100644 --- a/resources/install/scripts/intercept_group.lua +++ b/resources/install/scripts/intercept_group.lua @@ -198,7 +198,9 @@ -- freeswitch.consoleLog("NOTICE", "row "..key.." "..val.."\n"); --end if row.uuid == row.call_uuid then - uuid = channel_variable(row.uuid, 'ent_originate_aleg_uuid') or row.uuid + uuid = channel_variable(row.uuid, 'ent_originate_aleg_uuid') or + channel_variable(row.uuid, 'cc_member_session_uuid') or + row.uuid else uuid = row.call_uuid; end