Asterisk Jigasi

Hello!

I configured my asterisk to forward a call to the jigasi, the call is normally answered by jitsi, the participant enters the conference room.

However, the connection goes dead and drops after 1 minute. My asterisk is configured to drop the call after 1 minute if there is no RTP traffic.

In other words, the media is not traveling. Can you help me?

See the error that appears in the log ‘/var/log/jitsi/jigasi.log’.


2020-05-19 10:27:50.962 INFO: [3823] org.jitsi.jigasi.SipGatewaySession.run().1490 [ctx=1589894869960176198266] Wait thread cancelled
2020-05-19 10:27:50.962 INFO: [3822] org.jitsi.jigasi.JvbConference.start().430 [ctx=1589894869960176198266] Starting JVB conference room: Giba2
2020-05-19 10:27:50.964 INFO: [3822] org.jitsi.jigasi.JvbConference.setXmppProvider().561 [ctx=1589894869960176198266] Using ProtocolProviderServiceJabberImpl(Jabber:2ee46690@vtrial.conferenciacorp.com.br/2ee46690)
2020-05-19 10:27:51.335 INFO: [3825] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().127 Jingle : ON
2020-05-19 10:27:51.338 INFO: [3825] org.jitsi.jigasi.JvbConference.registrationStateChanged().612 [ctx=1589894869960176198266] Registering XMPP.
2020-05-19 10:27:51.414 INFO: [3825] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.authenticated().2535 Authenticated: false
2020-05-19 10:27:51.417 INFO: [3825] org.jitsi.jigasi.JvbConference.joinConferenceRoom().700 [ctx=1589894869960176198266] Joining JVB conference room: Giba2
2020-05-19 10:27:51.445 SEVERE: [3825] org.jitsi.jigasi.JvbConference.inviteFocus().1441 [ctx=1589894869960176198266] Could not invite the focus to the conference
org.jivesoftware.smack.XMPPException$XMPPErrorException: XMPP error reply received from focus.vtrial.conferenciacorp.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:1435)
        at org.jitsi.jigasi.JvbConference.joinConferenceRoom(JvbConference.java:773)
        at org.jitsi.jigasi.JvbConference.registrationStateChanged(JvbConference.java:591)
        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)
2020-05-19 10:27:51.453 INFO: [3836] impl.protocol.jabber.ChatRoomJabberImpl.joined().1256 giba2@conference.vtrial.conferenciacorp.com.br/2ee46690 has joined the giba2@conference.vtrial.conferenciacorp.com.br chat room.
2020-05-19 10:27:51.454 INFO: [3831] impl.protocol.jabber.ChatRoomJabberImpl.joined().1256 giba2@conference.vtrial.conferenciacorp.com.br/4c1d8eda has joined the giba2@conference.vtrial.conferenciacorp.com.br chat room.
2020-05-19 10:27:51.455 INFO: [3831] impl.protocol.jabber.ChatRoomJabberImpl.joined().1256 giba2@conference.vtrial.conferenciacorp.com.br/41b48ec5 has joined the giba2@conference.vtrial.conferenciacorp.com.br chat room.
2020-05-19 10:27:51.455 INFO: [3831] impl.protocol.jabber.ChatRoomJabberImpl.joined().1256 giba2@conference.vtrial.conferenciacorp.com.br/focus has joined the giba2@conference.vtrial.conferenciacorp.com.br chat room.
2020-05-19 10:27:51.455 INFO: [3831] impl.protocol.jabber.ChatRoomJabberImpl.joined().1256 giba2@conference.vtrial.conferenciacorp.com.br/2ee46690 has joined the giba2@conference.vtrial.conferenciacorp.com.br chat room.
2020-05-19 10:27:51.609 INFO: [3850] impl.protocol.jabber.IceUdpTransportManager.createIceAgent().346 End gathering harvester within 79 ms
2020-05-19 10:27:52.750 INFO: [3850] impl.protocol.jabber.CallPeerMediaHandlerJabberImpl.harvestCandidates().1198 End candidate harvest within 1141 ms
2020-05-19 10:27:52.754 INFO: [3850] org.jitsi.jigasi.JvbConference.incomingCallReceived().1077 [ctx=1589894869960176198266] Got invite from focus
2020-05-19 10:27:52.785 INFO: [3542] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1003 Dynamic PT map: 101=rtpmap:-1 telephone-event/8000; 97=rtpmap:-1 iLBC/8000 fmtp:mode=30;
2020-05-19 10:27:52.785 INFO: [3542] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1020 PT overrides []
java.net.UnknownHostException: jitsi.streamtel.com.br: jitsi.streamtel.com.br: Name or service not known
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1642)
        at org.opentelecoms.javax.sdp.NistSdpFactory.createSessionDescription(NistSdpFactory.java:44)
        at net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createSessionDescription(SdpUtils.java:591)
        at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.processFirstOffer(CallPeerMediaHandlerSipImpl.java:486)
        at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.processOffer(CallPeerMediaHandlerSipImpl.java:446)
        at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.answer(CallPeerSipImpl.java:1320)
        at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.answerCallPeer(OperationSetBasicTelephonySipImpl.java:1955)
        at org.jitsi.jigasi.CallManager$AnswerCallThread.run(CallManager.java:298)
        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:834)
Caused by: java.net.UnknownHostException: jitsi.streamtel.com.br: Name or service not known
        at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
        at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515)
        at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
        at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1637)
        ... 12 more
2020-05-19 10:27:52.819 INFO: [3542] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1457 [ctx=1589894869960176198266] SIP peer state: Connecting*
2020-05-19 10:27:52.834 INFO: [3861] org.jitsi.jigasi.SipGatewaySession.handleCallState().1374 [ctx=1589894869960176198266] Sip call IN_PROGRESS: Call: id=15898948699567928074 peers=1
2020-05-19 10:27:52.842 INFO: [3861] org.jitsi.jigasi.SipGatewaySession.handleCallState().1383 [ctx=1589894869960176198266] SIP call format used: rtpmap:0 PCMU/8000
2020-05-19 10:27:52.842 INFO: [93] 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;
2020-05-19 10:27:52.842 INFO: [93] service.protocol.media.MediaHandler.registerDynamicPTsWithStream().1020 PT overrides [103->104 ]
2020-05-19 10:27:52.857 INFO: [93] service.protocol.media.CallPeerMediaHandler.start().1961 Starting
2020-05-19 10:27:52.862 INFO: [3861] org.jitsi.jigasi.SipGatewaySession.peerStateChanged().1457 [ctx=1589894869960176198266] SIP peer state: Connected
2020-05-19 10:27:52.863 INFO: [3861] service.protocol.media.CallPeerMediaHandler.start().1961 Starting
2020-05-19 10:27:52.876 SEVERE: [3861] impl.protocol.sip.SipStackSharing.logApplicationException().1145 An error occurred while processing event of type: javax.sip.DialogTerminatedEvent
java.lang.RuntimeException: java.net.UnknownHostException: jitsi.streamtel.com.br: jitsi.streamtel.com.br: Name or service not known
        at javax.media.rtp.rtcp.SourceDescription.generateCNAME(SourceDescription.java:40)
        at net.sf.fmj.media.rtp.RTPSessionMgr.initialize(RTPSessionMgr.java:1430)
        at org.jitsi.impl.neomedia.rtp.StreamRTPManager.initialize(StreamRTPManager.java:224)
        at org.jitsi.impl.neomedia.MediaStreamImpl.getRTPManager(MediaStreamImpl.java:2081)
        at org.jitsi.impl.neomedia.MediaStreamImpl.createSendStreams(MediaStreamImpl.java:966)
        at org.jitsi.impl.neomedia.MediaStreamImpl.startSendStreams(MediaStreamImpl.java:3175)
        at org.jitsi.impl.neomedia.MediaStreamImpl.start(MediaStreamImpl.java:3064)
        at org.jitsi.impl.neomedia.MediaStreamImpl.start(MediaStreamImpl.java:3027)
        at net.java.sip.communicator.service.protocol.media.CallPeerMediaHandler.start(CallPeerMediaHandler.java:1973)
        at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.start(CallPeerMediaHandlerSipImpl.java:1914)
        at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.processAck(CallPeerSipImpl.java:724)
        at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.processAck(OperationSetBasicTelephonySipImpl.java:1311)
        at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.processRequest(OperationSetBasicTelephonySipImpl.java:359)
        at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.processRequest(ProtocolProviderServiceSipImpl.java:1114)
        at net.java.sip.communicator.impl.protocol.sip.SipStackSharing.processRequest(SipStackSharing.java:702)
        at gov.nist.javax.sip.EventScanner.deliverRequestEvent(EventScanner.java:250)
        at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:146)
        at gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:185)
        at gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:1324)
        at gov.nist.javax.sip.stack.SIPServerTransactionImpl.processRequest(SIPServerTransactionImpl.java:811)
        at gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel.java:568)
        at gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMessageChannel.java:514)
        at gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:319)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.UnknownHostException: jitsi.streamtel.com.br: jitsi.streamtel.com.br: Name or service not known
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1642)
        at javax.media.rtp.rtcp.SourceDescription.generateCNAME(SourceDescription.java:37)
        ... 23 more
Caused by: java.net.UnknownHostException: jitsi.streamtel.com.br: Name or service not known
        at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
        at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515)
        at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
        at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1637)
        ... 24 more
2020-05-19 10:27:53.579 SEVERE: [39] org.jitsi.meet.ComponentMain.log() host-unknown, host:localhost, port:5347
org.xmpp.component.ComponentException: host-unknown
        at org.jivesoftware.whack.ExternalComponent.connect(ExternalComponent.java:243)
        at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:242)
        at org.jivesoftware.whack.ExternalComponentManager.addComponent(ExternalComponentManager.java:222)
        at org.jitsi.meet.ComponentMain.lambda$getConnectCallable$0(ComponentMain.java:285)
        at org.jitsi.retry.RetryStrategy$TaskRunner.run(RetryStrategy.java:193)
        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.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
        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:834)
2020-05-19 10:27:54.843 SEVERE: [3863] org.jitsi.jigasi.SipGatewaySession.run().1308 [ctx=1589894869960176198266] Stopped receiving RTP for Call: id=15898948699567928074 peers=1

What sticks out to me the most is the unknown host. Is jitsi.streamtel.com.br correct and confirmed reachable?

java.net.UnknownHostException: jitsi.streamtel.com.br: jitsi.streamtel.com.br: Name or service not known 

Also, maybe a little more information about your setup would help… asterisk and jitsi on different systems? Are they on-premise behind the same firewall? or each out in the cloud?

What settings are you using in /etc/jitsi/jigasi/sip-communicator.properties