Jigasi no conference entrance

Hello,

I try to set up a Jitsi + Jigasi solution based on the IP address of the machine and not a domain.
I have already worked Jitsi with Jigasi with a domain name. But in this case I sometimes have DNS problems on some terminals rather painful.
That’s why I relaunched an installed based solely on the IP address.

On the Jitsi part no problem I can open a conference.
On the other hand when an IP position calls the conference number (via Jigasi), I see at the level of my conference the appeal, but disconnects immediately.

Here are the logs of Jigasi:

d
2021-10-22 11:36:50.854 INFOS: [95] org.jitsi.srtp.crypto.OpenSslWrapperLoader.log() jitsisrtp successfully loaded
2021-10-22 11:36:54.143 INFOS: [134] org.jitsi.jigasi.SipGatewaySession.sipCallEnded().648 [ctx=1634895401570988381785] Sip call ended: Call: id=1634895401484911262268 peers=0
2021-10-22 11:36:54.144 INFOS: [134] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1219 [ctx=1634895401570988381785] Member left : OWNER focus@auth.192.168.49.172/focus
2021-10-22 11:36:54.164 INFOS: [134] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1219 [ctx=1634895401570988381785] Member left : OWNER b-kflva-ifq3i5sq@192.168.49.172/N-VWSd7q
2021-10-22 11:36:54.179 INFOS: [134] org.jitsi.jigasi.JvbConference.memberPresenceChanged().1219 [ctx=1634895401570988381785] Member left : GUEST 63071e65@192.168.49.172
2021-10-22 11:36:54.200 INFOS: [134] org.jitsi.jigasi.JvbConference.stop().596 [ctx=1634895401570988381785] Removing account Jabber:63071e65@192.168.49.172/63071e65
2021-10-22 11:36:54.223 GRAVE: [95] org.jitsi.impl.neomedia.RTPConnectorOutputStream.log() Failed to send a packet to target /192.168.49.172:10000:java.io.IOException: No active socket.
2021-10-22 11:36:54.224 GRAVE: [85] org.jitsi.impl.neomedia.RTPConnectorOutputStream.log() Failed to send a packet to target /192.168.49.172:10000:java.io.IOException: No active socket.
2021-10-22 11:36:54.230 GRAVE: [85] org.jitsi.jigasi.CallManager$HangupCallThread.run().636 Could not hang up: siptest@conference.192.168.49.172/focus <siptest@conference.192.168.49.172/focus>;status=Disconnected
net.java.sip.communicator.service.protocol.OperationFailedException: Could not hang up
        at net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.hangupCallPeer(OperationSetBasicTelephonyJabberImpl.java:765)
        at org.jitsi.jigasi.CallManager$HangupCallThread.run(CallManager.java:632)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: org.jivesoftware.smack.SmackException$NotConnectedException: The connection XMPPTCPConnection[s9jky9oxoya3ewut@192.168.49.172/JvzbMczc] (1) is no longer connected. done=true smResumptionPossible=false
        at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketWriter.throwNotConnectedExceptionIfDoneAndResumptionNotPossible(XMPPTCPConnection.java:1327)
        at org.jivesoftware.smack.tcp.XMPPTCPConnection.throwNotConnectedExceptionIfAppropriate(XMPPTCPConnection.java:358)
        at org.jivesoftware.smack.AbstractXMPPConnection.sendStanza(AbstractXMPPConnection.java:670)
        at net.java.sip.communicator.impl.protocol.jabber.CallPeerJabberImpl.hangup(CallPeerJabberImpl.java:403)
        at net.java.sip.communicator.impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.hangupCallPeer(OperationSetBasicTelephonyJabberImpl.java:758)
        ... 6 more
2021-10-22 11:36:54.231 INFOS: [85] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().134 Jingle : OFF
2021-10-22 11:36:54.232 INFOS: [134] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().134 Jingle : OFF
2021-10-22 11:36:54.232 INFOS: [85] org.jitsi.jigasi.CallManager$HangupCallThread.run().663 [ctx=1634895401570988381785] Removing account Jabber:63071e65@192.168.49.172/63071e65
2021-10-22 11:36:54.239 INFOS: [134] org.jitsi.jigasi.AbstractGateway.notifyCallEnded().129 [ctx=1634895401570988381785] Removed session for call. Sessions:0

thanks for your help

this complete log for a call and deconnected

2021-10-22 16:37:25.137 INFOS: [53] org.jitsi.jigasi.SipGateway.incomingCallReceived().216 [ctx=16349134451372093489649] Incoming call received...
2021-10-22 16:37:26.140 INFOS: [546] org.jitsi.jigasi.SipGatewaySession.run().1735 [ctx=16349134451372093489649]Using default JVB room name property siptest@conference.192.168.49.172
2021-10-22 16:37:26.140 INFOS: [546] org.jitsi.jigasi.JvbConference.start().493 [ctx=16349134451372093489649] Starting JVB conference room: siptest@conference.192.168.49.172
2021-10-22 16:37:26.141 INFOS: [546] org.jitsi.jigasi.JvbConference.setXmppProvider().636 [ctx=16349134451372093489649] Using ProtocolProviderServiceJabberImpl(Jabber:0bacd109@192.168.49.172/0bacd109)
2021-10-22 16:37:26.170 INFOS: [548] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().127 Jingle : ON
2021-10-22 16:37:26.172 INFOS: [548] org.jitsi.jigasi.JvbConference.registrationStateChanged().687 [ctx=16349134451372093489649] Registering XMPP.
2021-10-22 16:37:26.179 INFOS: [548] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.authenticated().2423 Authenticated: false
2021-10-22 16:37:26.180 INFOS: [548] org.jitsi.jigasi.JvbConference.joinConferenceRoom().778 [ctx=16349134451372093489649] Joining JVB conference room: siptest@conference.192.168.49.172
2021-10-22 16:37:26.218 INFOS: [551] impl.protocol.jabber.ChatRoomJabberImpl.joined().1361 siptest@conference.192.168.49.172/f70c9566 has joined the siptest@conference.192.168.49.172 chat room.
2021-10-22 16:37:26.222 INFOS: [551] impl.protocol.jabber.ChatRoomJabberImpl.joined().1361 siptest@conference.192.168.49.172/focus has joined the siptest@conference.192.168.49.172 chat room.
2021-10-22 16:37:26.348 INFOS: [566] impl.protocol.jabber.IceUdpTransportManager.createIceAgent().347 End gathering harvester within 1 ms
2021-10-22 16:37:26.393 INFOS: [566] impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.harvestCandidates().1198 End candidate harvest within 44 ms
2021-10-22 16:37:26.394 INFOS: [566] org.jitsi.jigasi.JvbConference.incomingCallReceived().1419 [ctx=16349134451372093489649] Got invite from focus
2021-10-22 16:37:26.400 INFOS: [87] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1003 Dynamic PT map: 101=rtpmap:-1 telephone-event/8000;
2021-10-22 16:37:26.400 INFOS: [87] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1020 PT overrides []
2021-10-22 16:37:26.403 INFOS: [87] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1683 [ctx=16349134451372093489649] SIP peer state: Connecting*
2021-10-22 16:37:26.405 INFOS: [53] org.jitsi.jigasi.SipGatewaySession.handleCallState().1600 [ctx=16349134451372093489649] Sip call IN_PROGRESS: Call: id=16349134451361355465611 peers=1
2021-10-22 16:37:26.405 INFOS: [53] org.jitsi.jigasi.SipGatewaySession.handleCallState().1609 [ctx=16349134451372093489649] SIP call format used: rtpmap:0 PCMU/8000
2021-10-22 16:37:26.405 INFOS: [53] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1683 [ctx=16349134451372093489649] SIP peer state: Connected
2021-10-22 16:37:26.406 INFOS: [53] service.protocol.media.CallPeerMediaHandler.start().1961 Starting
2021-10-22 16:37:26.459 INFOS: [53] service.protocol.media.TransportManager.sendHolePunchPacket().552 Send NAT hole punch packets
2021-10-22 16:37:26.467 INFOS: [87] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1003 Dynamic PT map: 126=rtpmap:-1 telephone-event/8000; 111=rtpmap:-1 opus/48000/2 fmtp:useinbandfec=1;minptime=10; 103=rtpmap:-1 unknown/90000;
2021-10-22 16:37:26.467 INFOS: [87] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1020 PT overrides [103->104 ]
2021-10-22 16:37:26.472 INFOS: [87] service.protocol.media.CallPeerMediaHandler.start().1961 Starting
2021-10-22 16:37:26.501 INFOS: [53] org.jitsi.jigasi.SipGatewaySession.handleCallState().1617 [ctx=16349134451372093489649] SIP call ended: CallPeerChangeEvent: type=CallPeerStatusChange oldV=net.java.sip.communicator.service.protocol.CallPeerState:Conn>
2021-10-22 16:37:26.529 INFOS: [53] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1683 [ctx=16349134451372093489649] SIP peer state: Disconnected
2021-10-22 16:37:26.593 INFOS: [87] org.jitsi.jigasi.JvbConference.callStateChanged().1530 [ctx=16349134451372093489649] JVB conference call IN_PROGRESS.
2021-10-22 16:37:26.952 GRAVE: [650] net.sf.fmj.media.Log.error()   Unable to handle format: LINEAR, 48000.0 Hz, 16-bit, Mono, LittleEndian, Signed
2021-10-22 16:37:26.953 GRAVE: [650] net.sf.fmj.media.Log.error() Failed to prefetch: net.sf.fmj.media.ProcessEngine@1f631a69
2021-10-22 16:37:26.954 GRAVE: [648] net.sf.fmj.media.Log.error() Error: Unable to prefetch net.sf.fmj.media.ProcessEngine@1f631a69

thanks

The sip call is disconnects before the xmpp call is established, check the logs on the sip side.

Hello
Yes after verification The problem was not Jitsi and was not the IPBX (Asterisk) … The problem was Jigasi and more precisely the configuration of Jigasi to use SRTP.

I change my jigasi configuration and now everything works well. thank you