Function get_room_from_jid(room_jid) [solved]

Im trying to understand why i cant get room

in util.lib.lua ive added some trace log to understand :

function get_room_from_jid(room_jid)

    log("info","XXX get_room de util start: "..room_jid)

    local _, host = jid.split(room_jid);
    local component = hosts[host];
    log("info","XXX get_room de util start host: "..host)

    if component then
        log("info","XXX get_room de util:YEP COMPONENT ")
        local muc = component.modules.muc
        if muc and rawget(muc,"rooms") then
            -- We're running 0.9.x or 0.10 (old MUC API)
                log("info","XXX get_room de util: WTF im 0.11 !! "..room_jid)
            return muc.rooms[room_jid];
        elseif muc and rawget(muc,"get_room_from_jid") then
            -- We're running >0.10 (new MUC API)
                log("info","XXX get_room de util: "..room_jid)
            return muc.get_room_from_jid(room_jid);
        else
                log("info","XXX get_room WTF");
            return
        end
    end
log("info","XXX get_room de util: END")
end

My log :

Apr 07 11:07:04 general info    XXX get_room de util start: myroom@muc.mydomain
Apr 07 11:07:04 general info    XXX get_room de util start host: muc.mydomain
Apr 07 11:07:04 general info    XXX get_room de util: END

So , clearly, component = nil
and so where come from hosts[host] ???
any idea ?

in fact hosts is from de config.js
and in config.js , muc: conference …

but in previous confi i had to add domain_prefix = “muc”

so was searching for muc.mydomain and not conference.mydomain

so removing all domain_prefix=“muc” in prosody.cfg => all is working

solved