Fix. Delete number-alias from cache when set DND/Follome/Forward.

This commit is contained in:
Alexey Melnichuk
2015-08-26 13:44:34 +04:00
parent 9f1385dd80
commit 9ad23e65b5
3 changed files with 15 additions and 6 deletions
+4 -1
View File
@@ -81,7 +81,7 @@
end
status = dbh:query(sql, function(row)
extension = row.extension;
number_alias = row.number_alias;
number_alias = row.number_alias or '';
accountcode = row.accountcode;
follow_me_uuid = row.follow_me_uuid;
--freeswitch.consoleLog("NOTICE", "[call forward] extension "..row.extension.."\n");
@@ -165,6 +165,9 @@
--clear the cache
if (extension ~= nil) then
api:execute("memcache", "delete directory:"..extension.."@"..domain_name);
if #number_alias > 0 then
api:execute("memcache", "delete directory:"..number_alias.."@"..domain_name);
end
end
--wait for the file to be written before proceeding