Ensure that call forward doesn't update follow me if follow_me_uuid is an empty string.

This commit is contained in:
Mark Crane 2014-11-28 20:40:59 +00:00
parent f6b1ee0736
commit 53a8cd7777
1 changed files with 9 additions and 7 deletions

View File

@ -223,6 +223,7 @@
--disable the follow me
if (session:ready() and enabled == "true" and follow_me_uuid ~= nil) then
if (string.len(follow_me_uuid) > 0) then
sql = "update v_follow_me set ";
sql = sql .. "follow_me_enabled = 'false' ";
sql = sql .. "where domain_uuid = '"..domain_uuid.."' ";
@ -232,6 +233,7 @@
end
dbh:query(sql);
end
end
--check the destination
if (forward_all_destination == nil) then