Replace if statement so that it doesn't cause a problem with user_exist.
This commit is contained in:
parent
fb4a561149
commit
71bfd161b3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue