Could not invite the focus to the conference || sometimes it works, sometimes not

Hello everybody,
I’ve been trying to integrate SIP in Jitsi for a week. Fail now because of the problem that dialing in and dialing out always after restarting the Jigasi service brings me the message “Could not invite the focus to the conference” After about half an hour it suddenly works. Shortly before that, the following message appears in the log.

 2021-02-12 12:07:56.371 INFORMATION: [172] impl.protocol.jabber.IceUdpTransportManager.createIceAgent().347 End gathering harvester within 1876989 ms
2021-02-12 12:07:56.372 INFORMATION: [249] impl.protocol.jabber.IceUdpTransportManager.createIceAgent().347 End gathering harvester within 1045852 ms
2021-02-12 12:07:56.581 INFORMATION: [172] impl.protocol.jabber.CallPeerJabberImpl.processSessionInitiate().905 Failed to process an incoming session initiate
java.lang.NullPointerException
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.sendTransportInfo(CallPeerJabberImpl.java:1497)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl$1.sendTransportInfo(CallPeerMediaHandlerJabberImpl.java:1835)
        at net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager.startCandidateHarvest(IceUdpTransportManager.java:689)
        at net.java.sip.communicator.impl.protocol.jabber.TransportManagerJabberImpl.startCandidateHarvest(TransportManagerJabberImpl.java:470)
        at net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager.startCandidateHarvest(IceUdpTransportManager.java:730)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.harvestCandidates(CallPeerMediaHandlerJabberImpl.java:1185)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.processOffer(CallPeerMediaHandlerJabberImpl.java:1848)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.processSessionInitiate(CallPeerJabberImpl.java:882)
        at net.java.sip.communicator.impl.protocol.jabber.CallJabberImpl.processSessionInitiate(CallJabberImpl.java:1029)
        at net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl$2.run(OperationSetBasicTelephonyJabberImpl.java:1135)
2021-02-12 12:07:56.581 INFORMATION: [249] impl.protocol.jabber.CallPeerJabberImpl.processSessionInitiate().905 Failed to process an incoming session initiate
java.lang.NullPointerException
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.sendTransportInfo(CallPeerJabberImpl.java:1497)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl$1.sendTransportInfo(CallPeerMediaHandlerJabberImpl.java:1835)
        at net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager.startCandidateHarvest(IceUdpTransportManager.java:689)
        at net.java.sip.communicator.impl.protocol.jabber.TransportManagerJabberImpl.startCandidateHarvest(TransportManagerJabberImpl.java:470)
        at net.java.sip.communicator.impl.protocol.jabber.IceUdpTransportManager.startCandidateHarvest(IceUdpTransportManager.java:730)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.harvestCandidates(CallPeerMediaHandlerJabberImpl.java:1185)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.processOffer(CallPeerMediaHandlerJabberImpl.java:1848)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.processSessionInitiate(CallPeerJabberImpl.java:882)
        at net.java.sip.communicator.impl.protocol.jabber.CallJabberImpl.processSessionInitiate(CallJabberImpl.java:1029)
        at net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl$2.run(OperationSetBasicTelephonyJabberImpl.java:1135)
2021-02-12 12:07:56.587 SCHWERWIEGEND: [249] util.UtilActivator.uncaughtException().122 An uncaught exception occurred in thread=Thread[Thread-172,5,main] and message was: null
java.lang.NullPointerException
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.processSessionInitiate(CallPeerJabberImpl.java:918)
        at net.java.sip.communicator.impl.protocol.jabber.CallJabberImpl.processSessionInitiate(CallJabberImpl.java:1029)
        at net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl$2.run(OperationSetBasicTelephonyJabberImpl.java:1135)
2021-02-12 12:07:56.588 SCHWERWIEGEND: [172] util.UtilActivator.uncaughtException().122 An uncaught exception occurred in thread=Thread[Thread-98,10,main] and message was: null
java.lang.NullPointerException

Otherwise, if it doesn’t work, the following messages appear.

2021-02-15 10:04:53.673 INFORMATION: [261] org.jitsi.jigasi.xmpp.CallControl.handleDialIq().195 [ctx=16133798936731176310281] Got dial request fromnumber -> 2998 room: siptest@conference.meet-test.potsdam.de
    2021-02-15 10:04:53.674 INFORMATION: [261] org.jitsi.jigasi.JvbConference.start().490 [ctx=16133798936731176310281] Starting JVB conference room: siptest@conference.meet-test.potsdam.de
    2021-02-15 10:04:53.675 INFORMATION: [261] org.jitsi.jigasi.JvbConference.setXmppProvider().633 [ctx=16133798936731176310281] Using ProtocolProviderServiceJabberImpl(Jabber:0e01175b@meet-test.potsdam.de/0e01175b)
    2021-02-15 10:04:53.714 INFORMATION: [264] org.igniterealtime.jbosh.BOSHClient.init() Starting with 1 request processors
    2021-02-15 10:04:53.861 INFORMATION: [264] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().127 Jingle : ON
    2021-02-15 10:04:53.862 INFORMATION: [264] org.jitsi.jigasi.JvbConference.registrationStateChanged().684 [ctx=16133798936731176310281] Registering XMPP.
    2021-02-15 10:04:53.920 INFORMATION: [264] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.authenticated().2423 Authenticated: false
    2021-02-15 10:04:53.922 INFORMATION: [264] org.jitsi.jigasi.JvbConference.joinConferenceRoom().775 [ctx=16133798936731176310281] Joining JVB conference room: siptest@conference.meet-test.potsdam.de
    2021-02-15 10:04:53.942 SCHWERWIEGEND: [264] org.jitsi.jigasi.JvbConference.inviteFocus().1738 [ctx=16133798936731176310281] Could not invite the focus to the conference
    org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from focus.meet-test.potsdam.de: 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:1732)
            at org.jitsi.jigasi.JvbConference.joinConferenceRoom(JvbConference.java:856)
            at org.jitsi.jigasi.JvbConference.registrationStateChanged(JvbConference.java:663)
            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)
    2021-02-15 10:04:53.959 INFORMATION: [269] impl.protocol.jabber.ChatRoomJabberImpl.joined().1323 siptest@conference.meet-test.potsdam.de/f901bbf1 has joined the siptest@conference.meet-test.potsdam.de chat room.
    2021-02-15 10:04:53.963 INFORMATION: [269] impl.protocol.jabber.ChatRoomJabberImpl.joined().1323 siptest@conference.meet-test.potsdam.de/focus has joined the siptest@conference.meet-test.potsdam.de chat room.
    2021-02-15 10:04:53.966 SCHWERWIEGEND: [264] org.jitsi.jigasi.JvbConference.registrationStateChanged().673 [ctx=16133798936731176310281] Registered bosh sid: 0e5ff827-4d54-435a-b0cc-275ed522e84f
    2021-02-15 10:05:23.944 SCHWERWIEGEND: [274] org.jitsi.jigasi.JvbConference.run().2005 [ctx=16133798936731176310281] Did not received session invite (30000 ms)
    2021-02-15 10:05:23.945 INFORMATION: [274] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1211 [ctx=16133798936731176310281] Member left : MEMBER svc-jitsi-sip@meet-test.potsdam.de
    2021-02-15 10:05:23.945 INFORMATION: [274] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1211 [ctx=16133798936731176310281] Member left : OWNER xgfyyg5mhfsao3by@guest.meet-test.potsdam.de/ToLZozu-
    2021-02-15 10:05:23.946 INFORMATION: [274] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1211 [ctx=16133798936731176310281] Member left : OWNER focus@auth.meet-test.potsdam.de/focus86793291952202
    2021-02-15 10:05:23.946 INFORMATION: [274] org.jitsi.jigasi.JvbConference.stop().593 [ctx=16133798936731176310281] Removing account Jabber:0e01175b@meet-test.potsdam.de/0e01175b
    2021-02-15 10:05:23.951 INFORMATION: [274] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().134 Jingle : OFF
    2021-02-15 10:05:23.951 INFORMATION: [274] org.jitsi.jigasi.AbstractGateway.notifyCallEnded().129 [ctx=16133798936731176310281] Removed session for call. Sessions:0

I hope someone can help me, all the hints here in the forum that you should make the following entries did not change anything.

net.java.sip.communicator.impl.protocol.sip.acc1403273890647.SKIP_REINVITE_ON_FOCUS_CHANGE_PROP=true
net.java.sip.communicator.impl.protocol.sip.acc1403273890647.JITSI_MEET_ROOM_HEADER_NAME=X-Room-Name

What is the version of your Jitsi meet and Jigasi version? Can you share more about the setup?

Hi,
I’ve tried two versions. With the latest version of Jitsi and Jigasi.
And with the following versions:
jitsi-videobridge2: 2.1-376-g9f12bfe2-1
prosody: 0.11.2-1
jicofo:1.0-644-1
jigasi:1.1-126-g6df3db2-1
nginx:1.14.2-2+deb10u3

The same error occurs with both.

I suspected there was something with the “End gathering harvester within 1876989 ms
has to do. This is roughly the time after which it works after Jigasi has been restarted and a first call has been attempted.

sip-communicator.properties.Jitsi-Forum.txt (15.6 KB)

Authentication takes place via LDAP. For this purpose I created a service user in the Active Directory for XMPP.

The SIP connection is made via an Anynode SBC of an Alcatel telephone system.

Please contact me offline, I have been working on Jitsi including Jigasi for more than 4 years. kaiduanx@goodstartsoft.com/www.goodstartsoft.com.