From 61c805244733a228cfc7df94ec055c973a121e84 Mon Sep 17 00:00:00 2001 From: Joao Arruda Date: Fri, 3 Jul 2015 13:12:26 -0300 Subject: Adjust provisioning.cgi to better handle PUT from Polycom phones Signed-off-by: Ted Trask --- cgi-bin/provisioning.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cgi-bin/provisioning.cgi b/cgi-bin/provisioning.cgi index fcad3a1..0e7e5be 100755 --- a/cgi-bin/provisioning.cgi +++ b/cgi-bin/provisioning.cgi @@ -153,10 +153,9 @@ elseif ( request_method == "PUT" ) then os.exit() end - -- If it's a Polycom, do not pass the MAC-directory.xml file to ACF - -- Don't bother for .log files + -- Don't bother for .log, -calls.xml (VVX related) and -directory.xml files local f = string.match(basename, mac.."(.*)") - if not string.match(path_info, "%.log$") then + if not ( string.match(path_info, "%.log$") or string.match(path_info, "%-calls.xml$") or string.match(path_info, "%-directory.xml$") ) then log:write("Checking PROV Table for results\n") -- Load the ACF mvc mvc = require("acf.mvc") -- cgit v1.2.3