TT#96550 mod_sipwise_redis_*: add some more debug info at add_host()

Change-Id: I266e223c24f6c4a9f195f158cb0c096bf417c4e8
mr9.1.1
Victor Seva 5 years ago committed by Víctor Seva
parent 181deaf113
commit 4b1b19380e

@ -108,9 +108,12 @@ function module.load()
end
function module.add_host(module)
if module:get_host_type() == "component" then
local host = module:get_host();
local _type = module:get_host_type();
if _type == "component" then
module:hook("muc-room-created", muc_created, 200);
module:hook("muc-room-destroyed", muc_destroyed, 200);
end
module:log("debug", "hooked at %s", module:get_host());
module:log("debug", "hooked at %s as %s", host, _type);
end

@ -130,11 +130,12 @@ end
function module.add_host(module)
local host = module:get_host();
local _type = module:get_host_type();
if module:get_host_type() ~= "component" then
if _type ~= "component" then
module:hook("resource-bind", resource_bind, 200);
module:hook("resource-unbind", resource_unbind, 200);
clean_local_sessions(host);
module:log("debug", "hooked at %s", host);
end
module:log("debug", "hooked at %s as %s", host, _type);
end

Loading…
Cancel
Save