Installation of JITSI, JIGASI and SIP on Ubuntu 16.04 LTS / 64 bit


#1

Dear all.
I researched a lot of forum entries and did a lot of reinstallation and retry on my demo installation of jitsi.
I installed it on a cloudserver with Ubuntu following exactly the installation instructions on

So good so far. Jitsi without SIP is working without a problem.
In the JS Console I see that Sip gateway is enabled.

I think the SIP is also correct because if I start jigasi and I call the configured number I will get a ring tone
like it is ringing but no one take of the phone on the other side. If I stop jigasi service then I get a ring tone
which tells me that the line is occupied. And in the logfile I will see that someone is calling.

In jigasi log I get following errors:

2018-11-28 02:20:18.211 INFO: [86] impl.protocol.sip.SipLogger.logInfo().196 Info from the JAIN-SIP stack: Setting SIPMessage peerPacketSource to: /185.45.152.161:5060
2018-11-28 02:20:18.308 INFO: [86] org.jitsi.jigasi.SipGateway.incomingCallReceived().188 Incoming call received…
2018-11-28 02:20:19.327 INFO: [87] org.jitsi.jigasi.SipGatewaySession.run().907 Using default JVB room name property siptest
2018-11-28 02:20:19.436 INFO: [87] org.jitsi.jigasi.JvbConference.setXmppProvider().532 16757e70985@xxx.jitsi.xxx.xxx will use ProtocolProviderServiceJabberImpl(16757e70985@xxx.jitsi.xxx.xxx (Jabber))
2018-11-28 02:20:19.588 SEVERE: [92] impl.certificate.CertificateServiceImpl.verify().1064 Missing CertificateDialogService by default will not trust!
2018-11-28 02:20:19.588 INFO: [92] impl.certificate.CertificateServiceImpl.checkCertTrusted().832 Untrusted certificate
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
at sun.security.validator.Validator.validate(Validator.java:262)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:105)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkCertTrusted(CertificateServiceImpl.java:733)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkServerTrusted(CertificateServiceImpl.java:670)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2679)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2649)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1615)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:810)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1200(XMPPTCPConnection.java:151)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1071)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:748)
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
… 23 more
2018-11-28 02:20:19.591 SEVERE: [89] impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectAndLogin().978 Failed to connect to XMPP service
org.jivesoftware.smack.SmackException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: The peer provided certificate with Subject <EMAILADDRESS=xmpp@xxx.jitsi.xxx.xxx, CN=xxx.jitsi.xxx.xxx, OU=XMPP Department, O=Your Organisation, L=The Internet, C=GB> is not trusted
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1076)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: The peer provided certificate with Subject <EMAILADDRESS=xmpp@xxx.jitsi.xxx.xxx, CN=xxx.jitsi.xxx.xxx, OU=XMPP Department, O=Your Organisation, L=The Internet, C=GB> is not trusted
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1633)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:810)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1200(XMPPTCPConnection.java:151)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1071)
… 3 more
Caused by: java.security.cert.CertificateException: The peer provided certificate with Subject <EMAILADDRESS=xmpp@xxx.jitsi.xxx.xxx, CN=xxx.jitsi.xxx.xxx, OU=XMPP Department, O=Your Organisation, L=The Internet, C=GB> is not trusted
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkCertTrusted(CertificateServiceImpl.java:835)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkServerTrusted(CertificateServiceImpl.java:670)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2679)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2649)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1615)
… 13 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
at sun.security.validator.Validator.validate(Validator.java:262)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:105)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkCertTrusted(CertificateServiceImpl.java:733)
… 17 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
… 23 more
2018-11-28 02:20:19.594 WARNING: [92] org.jivesoftware.smack.AbstractXMPPConnection.callConnectionClosedOnErrorListener() Connection XMPPTCPConnection[not-authenticated] (0) closed with error
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: The peer provided certificate with Subject <EMAILADDRESS=xmpp@nxxx.jitsi.xxx.xxx, CN=xxx.jitsi.xxx.xxx, OU=XMPP Department, O=Your Organisation, L=The Internet, C=GB> is not trusted
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1964)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:328)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:322)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1633)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1052)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:987)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1072)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.proceedTLSReceived(XMPPTCPConnection.java:810)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$1200(XMPPTCPConnection.java:151)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1071)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$300(XMPPTCPConnection.java:1000)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:1016)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.security.cert.CertificateException: The peer provided certificate with Subject <EMAILADDRESS=xmpp@xxx.jitsi.xxx.xxx, CN=xxx.jitsi.xxx.xxx, OU=XMPP Department, O=Your Organisation, L=The Internet, C=GB> is not trusted
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkCertTrusted(CertificateServiceImpl.java:835)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkServerTrusted(CertificateServiceImpl.java:670)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2679)
at net.java.sip.communicator.impl.protocol.jabber.ProtocolProviderServiceJabberImpl$HostTrustManager.checkServerTrusted(ProtocolProviderServiceJabberImpl.java:2649)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1615)
… 13 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
at sun.security.validator.Validator.validate(Validator.java:262)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:105)
at net.java.sip.communicator.impl.certificate.CertificateServiceImpl$3.checkCertTrusted(CertificateServiceImpl.java:733)
… 17 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:392)
… 23 more
2018-11-28 02:20:19.595 INFO: [93] impl.protocol.jabber.OperationSetBasicTelephonyJabberImpl.registrationStateChanged().132 Jingle : OFF
2018-11-28 02:20:19.596 SEVERE: [93] org.jitsi.jigasi.JvbConference.registrationStateChanged().566 Unregistered XMPP on 16757e70985@xxx.jitsi.xxx.xxx

Thank you a lot
kr
Bernhard