Alright. So, I modified the configs to use focus component of the domain2 for which I am trying to dial-in. It seems to be working now. But, now, the similar issue (as above) will happen for my domain1 (vHost1) on the same VM, because, now it is using focus of vHost2 and not vHost1.
I am not sure, if this is a bug or I am doing something wrong. But, it will be great if you can let me know what focus we should be using for multiple vHosts configuration.
In jicofo config file, we set and fix HOSTNAME. What should we set for multiple vHosts? can we have two separate config files for jicofo?
# Jitsi Conference Focus settings
# sets the host name of the XMPP server
JICOFO_HOST=localhost
# sets the XMPP domain (default: none)
#JICOFO_HOSTNAME=vhost1-domain
JICOFO_HOSTNAME=vhost2-domain
# sets the secret used to authenticate as an XMPP component
#JICOFO_SECRET=focus_secret_for_vhost1-domain
JICOFO_SECRET=focus_secret_for_vhost2-domain
# sets the port to use for the XMPP component connection
JICOFO_PORT=5347
# sets the XMPP domain name to use for XMPP user logins
JICOFO_AUTH_DOMAIN=auth.vhost1-domain
# sets the username to use for XMPP user logins
JICOFO_AUTH_USER=focus
# sets the password to use for XMPP user logins
JICOFO_AUTH_PASSWORD=<password_vhost1-domain>
# extra options to pass to the jicofo daemon
JICOFO_OPTS=""
# adds java system props that are passed to jicofo (default are for home and logging config file)
JAVA_SYS_PROPS="-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=/etc/jitsi -Dnet.java.sip.communicator.SC_HOME_DIR_NAME=jicofo -Dnet.java.sip.communicator.SC_LOG_DIR_LOCATION=/var/log/jitsi -Djava.util.logging.config.file=/etc/jitsi/jicofo/logging.properties"
I read here that @saghul mentioned we can share internal auth, but how about domains? How to configure both?