Replace if statement so that it doesn't cause a problem with user_exist.

This commit is contained in:
Mark Crane
2014-10-22 00:32:00 +00:00
parent fb4a561149
commit 71bfd161b3

View File

@@ -489,7 +489,7 @@
end
--disable registration for number-alias
if (params:getHeader("type") ~= "attr") then
if (params:getHeader("sip_auth_method") == "REGISTER") then
if (api:execute("user_data", user .. "@" .. domain_name .." attr id") ~= user) then
XML_STRING = nil;
end