From eb70a35c734e2c4088720914b270249419a0a487 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 29 Jul 2014 09:52:27 +0000 Subject: [PATCH] Another adjustment for follow me toggle --- resources/install/scripts/follow_me.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/install/scripts/follow_me.lua b/resources/install/scripts/follow_me.lua index 8a044d9dd4..5485093413 100644 --- a/resources/install/scripts/follow_me.lua +++ b/resources/install/scripts/follow_me.lua @@ -117,7 +117,7 @@ end); --set follow me - if (enabled == "true") then + if (enabled == "false") then --answer and play a tone session:answer(); api = freeswitch.API(); @@ -130,7 +130,7 @@ end --unset follow me - if (enabled == "false") then + if (enabled == "true") then --answer and play a tone session:answer(); api = freeswitch.API(); @@ -161,9 +161,9 @@ --update the extension sql = "update v_extensions set "; if (enabled == "true") then - sql = sql .. "dial_string = '"..dial_string.."', "; - else sql = sql .. "dial_string = null, "; + else + sql = sql .. "dial_string = '"..dial_string.."', "; end sql = sql .. "do_not_disturb = 'false', "; sql = sql .. "forward_all_enabled= 'false' ";