After toggling the call flow hangup the call.
This commit is contained in:
parent
8740e0b29f
commit
41b55d8433
|
|
@ -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");
|
freeswitch.consoleLog("notice", "Call Flow: label="..call_flow_anti_label..",status=false,uuid="..call_flow_uuid.."\n");
|
||||||
end
|
end
|
||||||
dbh:query("UPDATE v_call_flows SET call_flow_status = '"..toggle.."' WHERE call_flow_uuid = '"..call_flow_uuid.."'");
|
dbh:query("UPDATE v_call_flows SET call_flow_status = '"..toggle.."' WHERE call_flow_uuid = '"..call_flow_uuid.."'");
|
||||||
|
--hangup the call
|
||||||
|
session:hangup();
|
||||||
else
|
else
|
||||||
--app_data
|
--app_data
|
||||||
freeswitch.consoleLog("notice", "Call Flow: " .. app .. " " .. data .. "\n");
|
freeswitch.consoleLog("notice", "Call Flow: " .. app .. " " .. data .. "\n");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue