From 41b55d843376d4e67d2aa731fd4373b0f413a54d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 21 Mar 2014 20:02:49 +0000 Subject: [PATCH] After toggling the call flow hangup the call. --- resources/install/scripts/call_flow.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/install/scripts/call_flow.lua b/resources/install/scripts/call_flow.lua index 35c6243117..ee62ed61a6 100644 --- a/resources/install/scripts/call_flow.lua +++ b/resources/install/scripts/call_flow.lua @@ -160,6 +160,8 @@ if (session:ready()) then freeswitch.consoleLog("notice", "Call Flow: label="..call_flow_anti_label..",status=false,uuid="..call_flow_uuid.."\n"); end dbh:query("UPDATE v_call_flows SET call_flow_status = '"..toggle.."' WHERE call_flow_uuid = '"..call_flow_uuid.."'"); + --hangup the call + session:hangup(); else --app_data freeswitch.consoleLog("notice", "Call Flow: " .. app .. " " .. data .. "\n");