From 68d65bf83512b82c1d43c6f6a5000ae2e643c987 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 4 Jul 2016 18:32:22 +0300 Subject: [PATCH] Fix. `call_flow_monitor` use new field call_flow_alternate_label instead old `call_flow_anti_label` (#1730) --- resources/install/scripts/call_flow_monitor.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/install/scripts/call_flow_monitor.lua b/resources/install/scripts/call_flow_monitor.lua index b3ddebb1dc..6ca281c57b 100644 --- a/resources/install/scripts/call_flow_monitor.lua +++ b/resources/install/scripts/call_flow_monitor.lua @@ -68,7 +68,7 @@ log.notice("Start") --monitor the call flows status local sql = "select d.domain_name, f.call_flow_uuid, f.call_flow_extension, f.call_flow_feature_code," .. - "f.call_flow_status, f.call_flow_label, f.call_flow_anti_label ".. + "f.call_flow_status, f.call_flow_label, f.call_flow_alternate_label ".. "from v_call_flows as f, v_domains as d " .. "where f.domain_uuid = d.domain_uuid " -- and call_flow_enabled = 'true' while true do @@ -92,7 +92,7 @@ local call_flow_status = row.call_flow_status; --local pin_number = row.call_flow_pin_number; local call_flow_label = row.call_flow_label; - local call_flow_anti_label = row.call_flow_anti_label; + local call_flow_alternate_label = row.call_flow_alternate_label; -- turn the lamp presence_in.turn_lamp( call_flow_status == "false", @@ -101,7 +101,7 @@ ); if (debug["log"]) then - local label = (call_flow_status == "true") and call_flow_label or call_flow_anti_label + local label = (call_flow_status == "true") and call_flow_label or call_flow_alternate_label log.noticef("label=%s,status=%s,uuid=%s", label, call_flow_status, call_flow_uuid); end end);