[jitsi-dev] [jitsi-meet] Error message: Conference Focus - focus.xxx.com not available


#1

Found that if I changed "function buildRoomName ()" in app.js with
...
    if (path.length > 100)
...
i.e. a patch to disable the roomName creation from URL, then the IQ set <conference /> is able to set its
room attribute correctly e.g. "seriousleopardsperformimpartially@conference.jm.example.com", using the "muc" setting from config.js,
and the jitsi-meet conference is working

Not sure if this is a bug in roomName creation from URL or just my setup using apache (with no URL rewrite).
Any comment or advice?

============ app.js patch ==========
function buildRoomName () {
    let path = window.location.pathname;
    let roomName;

    // determinde the room node from the url
    // TODO: just the roomnode or the whole bare jid?
    if (config.getroomnode && typeof config.getroomnode === 'function') {
        // custom function might be responsible for doing the pushstate
        roomName = config.getroomnode(path);
    } else {
        /* fall back to default strategy
         * this is making assumptions about how the URL->room mapping happens.
         * It currently assumes deployment at root, with a rewrite like the
         * following one (for nginx):
         location ~ ^/([a-zA-Z0-9]+)$ {
         rewrite ^/(.*)$ / break;
         }
        */
        if (path.length > 100) {
            roomName = path.substr(1).toLowerCase();
        } else {
            let word = RoomnameGenerator.generateRoomWithoutSeparator();
            roomName = word.toLowerCase();
            window.history.pushState(
                'VideoChat', `Room: ${word}`, window.location.pathname + word
            );
        }
    }

···

===============================

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus