Jigasi athentication as host

Hi!

I have jitsi working very well (greate software).

My system was configured with authentication ( https://github.com/jitsi/jicofo/blob/master/README.md#secure-domain) and it is fine… all works

I have jigasi working with asterisk pbx…but the calls only enter the room after the host was autheticated by the web interface.

I need to setup the authentication of jigasi as host so the user that calls from asterisk can open the room.

I nkow that this is configured in that lines:

If you want jigasi to perform authenticated login instead of anonymous login

to the XMPP server, you can set the following properties.

org.jitsi.jigasi.xmpp.acc.USER_ID=SOME_USER@SOME_DOMAIN

org.jitsi.jigasi.xmpp.acc.PASS=SOME_PASS

org.jitsi.jigasi.xmpp.acc.ANONYMOUS_AUTH=false

I have the user configures with prosody (the users can login as hosts ) normally.

But when i use the username and password of one of the users in the configuration above, if the room was not opened by the web the call drops.

I must have some problem with other configuradtion … but i cant find the problem.

here is my log:
2019-09-10 11:51:51.112 INFO: [53] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.158 INFO: [56] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.159 INFO: [54] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.162 INFO: [55] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:51:51.176 INFO: [55] org.jitsi.jigasi.SipGateway.registrationStateChanged().105 REG STATE CHANGE ProtocolProviderServiceSipImpl(654347@mi klostecnologia.com.br (SIP)) -> RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Registered; reasonCode=-1; reason=null]
2019-09-10 11:51:51.180 WARNING: [55] org.jitsi.jigasi.health.SipHealthPeriodicChecker.log() No health check started, no HEALTH_CHECK_SIP_URI prop.
2019-09-10 11:51:51.208 INFO: [61] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:16.209 INFO: [65] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:41.209 INFO: [68] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:52:51.203 INFO: [69] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:53:06.208 INFO: [72] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173 .199.122.219:5060
2019-09-10 11:53:25.167 INFO: [75] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:25.233 INFO: [75] org.jitsi.jigasi.SipGateway.incomingCallReceived().188 Incoming call received…
2019-09-10 11:53:25.246 INFO: [76] org.jitsi.jigasi.SipGatewaySession.run().1073 Wait thread cancelled
2019-09-10 11:53:25.262 INFO: [77] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:25.334 INFO: [75] org.jitsi.jigasi.JvbConference.setXmppProvider().567 1861d1b0@conf.miklos.com.br will use ProtocolProviderServiceJabberImpl(miklos@conf.miklos.com.br (Jabber))
2019-09-10 11:53:25.530 INFO: [78] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().125 Jingle : ON
2019-09-10 11:53:25.531 INFO: [78] org.jitsi.jigasi.JvbConference.registrationStateChanged().612 XMPP (1861d1b0@conf.miklos.com.br): RegistrationStateChangeEvent[ oldState=Registering; newState=RegistrationState=Registering; reasonCode=-1; reason=null]
2019-09-10 11:53:25.576 INFO: [78] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.authenticated().2535 Authenticated: false
2019-09-10 11:53:25.586 INFO: [78] org.jitsi.jigasi.JvbConference.joinConferenceRoom().653 Joining JVB conference room: 12345
2019-09-10 11:53:25.706 SEVERE: [78] org.jitsi.jigasi.JvbConference.inviteFocus().1359 Could not invite the focus to the conference
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from focus.conf.miklos.com.br: XMPPError: not-acceptable - modify
at org.jivesoftware.smack.XMPPException$XMPPErrorException.ifHasErrorThenThrow(XMPPException.java:132)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:263)
at org.jivesoftware.smack.StanzaCollector.nextResultOrThrow(StanzaCollector.java:214)
at org.jitsi.jigasi.JvbConference.inviteFocus(JvbConference.java:1353)
at org.jitsi.jigasi.JvbConference.joinConferenceRoom(JvbConference.java:690)
at org.jitsi.jigasi.JvbConference.registrationStateChanged(JvbConference.java:597)
at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:187)
at net.java.sip.communicator.service.protocol.AbstractProtocolProviderService.fireRegistrationStateChanged(AbstractProtocolProviderService.java:141)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:1389)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin(ProtocolProviderServiceJabberImpl.java:970)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.initializeConnectAndLogin(ProtocolProviderServiceJabberImpl.java:795)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl.register(ProtocolProviderServiceJabberImpl.java:500)
at org.jitsi.jigasi.util.RegisterThread.run(RegisterThread.java:59)
2019-09-10 11:53:31.209 INFO: [94] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:51.241 INFO: [95] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.184 INFO: [98] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.193 INFO: [98] org.jitsi.jigasi.SipGatewaySession.handleCallState().942 SIP call ended: CallPeerChangeEvent: type=CallPeerStatusChange oldV=net.java.sip.communicator.service.protocol.CallPeerState:Incoming Call newV=net.java.sip.communicator.service.protocol.CallPeerState:Disconnected for peer=1138681558 1138681558@173.199.122.219;status=Disconnected
2019-09-10 11:53:55.194 INFO: [98] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1007 1861d1b0@conf.miklos.com.br SIP peer state: Disconnected
2019-09-10 11:53:55.227 INFO: [100] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:53:55.727 SEVERE: [93] org.jitsi.jigasi.JvbConference.run().1433 Did not received session invite (30000 ms)
2019-09-10 11:53:55.734 INFO: [93] org.jitsi.jigasi.JvbConference.stop().527 1861d1b0@conf.miklos.com.br is removing account Jabber:1861d1b0@conf.miklos.com.br/1861d1b0
2019-09-10 11:53:55.743 INFO: [93] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().132 Jingle : OFF
2019-09-10 11:53:56.210 INFO: [102] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /173.199.122.219:5060
2019-09-10 11:54:00.195 INFO: [99] org.jitsi.jigasi.SipGatewaySession.sipCallEnded().552 Sip call ended: Call: id=15681164051871760054960 peers=0
2019-09-10 11:54:00.200 INFO: [99] org.jitsi.jigasi.AbstractGateway.notifyCallEnded().141 Removed session for call 1861d1b0@conf.miklos.com.br

I think this had never been implemented: jigasi to be a host for a meeting in environment with authorisation enabled.
I wonder whether this make sense, at all. As jigasi cannot do any control like muting or kicking …

Hi Demencho,

For me it makes sense because it is a way to open a room using an automated sip call but mantaining the security with secure domain when needed.

In another post i asked the same question and you answered that this can be acomplished usign this configuration:

if you want jigasi to perform authenticated login instead of anonymous login
to the XMPP server, you can set the following properties.
org.jitsi.jigasi.xmpp.acc.USER_ID=SOME_USER@SOME_DOMAIN
org.jitsi.jigasi.xmpp.acc.PASS=SOME_PASS
org.jitsi.jigasi.xmpp.acc.ANONYMOUS_AUTH=false

So…it´s a bit confusing… what is the function of this configuration ? Maybe i misunderstood, but it will be very good to avoid others triing something that is not implemented…

Thank you

Jigasi can authenticate to a domain that requires authentication, we use this and today and it works.
We haven’t tested and used jigasi to be the one creating the room in a deployment where the guests wait for the host to be come available.