[jitsi-dev] Problems making SIP calls


#1

Hi,
I found a bug introduced between builds 3826 and 3827, so it regards commits 9207, 9208 or 9209.
When making a SIP call I get

14:51:05.630 GRAVE: impl.protocol.sip.CallPeerSipImpl.throwOperationFailedException().2310 An error occurred while sending invite request
java.lang.NullPointerException
at java.net.InetAddress.getLocalHost(InetAddress.java:1428)
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:74)
at net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createSessionDescription(SdpUtils.java:136)
at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createFirstOffer(CallPeerMediaHandlerSipImpl.java:133)
at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createOffer(CallPeerMediaHandlerSipImpl.java:108)
at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPeerSipImpl.java:1413)
at net.java.sip.communicator.impl.protocol.sip.CallSipImpl.invite(CallSipImpl.java:195)
at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:192)
at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createCall(OperationSetBasicTelephonySipImpl.java:116)
at net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.run(CallManager.java:1084)
14:51:05.661 GRAVE: impl.gui.main.call.CallManager.run().1096 The call could not be created:
net.java.sip.communicator.service.protocol.OperationFailedException: An error occurred while sending invite request
at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.throwOperationFailedException(ProtocolProviderServiceSipImpl.java:2315)
at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPeerSipImpl.java:1430)
at net.java.sip.communicator.impl.protocol.sip.CallSipImpl.invite(CallSipImpl.java:195)
at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createOutgoingCall(OperationSetBasicTelephonySipImpl.java:192)
at net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySipImpl.createCall(OperationSetBasicTelephonySipImpl.java:116)
at net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread.run(CallManager.java:1084)
Caused by: java.lang.NullPointerException
at java.net.InetAddress.getLocalHost(InetAddress.java:1428)
at javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:74)
at net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createSessionDescription(SdpUtils.java:136)
at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createFirstOffer(CallPeerMediaHandlerSipImpl.java:133)
at net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.createOffer(CallPeerMediaHandlerSipImpl.java:108)
at net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPeerSipImpl.java:1413)
... 4 more

WDYT?

Regards,
Daniel


#2

Hey Daniel

It's 9208. Could you please give me some more info about your environment (OS, Architecture and Java Version if not on Windows)?
Could you also please attach the full log after you freshly started Jitsi and tried to make a call?

I'm looking into it later today.

Thanks,
Ingo

···

-----Original Message-----
From: Daniel Zucchetto [mailto:dzmail90-voip@yahoo.it]
Sent: Sonntag, 11. Dezember 2011 15:23
To: dev@jitsi.java.net
Subject: [jitsi-dev] Problems making SIP calls
Hi,
I found a bug introduced between builds 3826 and 3827, so it regards commits
9207, 9208 or 9209.
When making a SIP call I get

14:51:05.630 GRAVE:
impl.protocol.sip.CallPeerSipImpl.throwOperationFailedException().2310
An error occurred while sending invite request
java.lang.NullPointerException at
java.net.InetAddress.getLocalHost(InetAddress.java:1428) at
javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:74) at
net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createSessionDes
crip tion(SdpUtils.java:136) at
net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.c
reat eFirstOffer(CallPeerMediaHandlerSipImpl.java:133) at
net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.c
reat eOffer(CallPeerMediaHandlerSipImpl.java:108) at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPe
erSi pImpl.java:1413) at
net.java.sip.communicator.impl.protocol.sip.CallSipImpl.invite(CallSipImp
l.ja va:195) at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySip
Impl .createOutgoingCall(OperationSetBasicTelephonySipImpl.java:192)
at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySip
Impl .createCall(OperationSetBasicTelephonySipImpl.java:116) at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread
.run (CallManager.java:1084) 14:51:05.661 GRAVE:
impl.gui.main.call.CallManager.run().1096 The call could not be created:
net.java.sip.communicator.service.protocol.OperationFailedException: An
error occurred while sending invite request at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImp
l.th
rowOperationFailedException(ProtocolProviderServiceSipImpl.java:2315)
at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPe
erSi pImpl.java:1430) at
net.java.sip.communicator.impl.protocol.sip.CallSipImpl.invite(CallSipImp
l.ja va:195) at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySip
Impl .createOutgoingCall(OperationSetBasicTelephonySipImpl.java:192)
at
net.java.sip.communicator.impl.protocol.sip.OperationSetBasicTelephonySip
Impl .createCall(OperationSetBasicTelephonySipImpl.java:116) at
net.java.sip.communicator.impl.gui.main.call.CallManager$CreateCallThread
.run (CallManager.java:1084) Caused by: java.lang.NullPointerException
at java.net.InetAddress.getLocalHost(InetAddress.java:1428) at
javax.sdp.SdpFactory.createSessionDescription(SdpFactory.java:74) at
net.java.sip.communicator.impl.protocol.sip.sdp.SdpUtils.createSessionDes
crip tion(SdpUtils.java:136) at
net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.c
reat eFirstOffer(CallPeerMediaHandlerSipImpl.java:133) at
net.java.sip.communicator.impl.protocol.sip.CallPeerMediaHandlerSipImpl.c
reat eOffer(CallPeerMediaHandlerSipImpl.java:108) at
net.java.sip.communicator.impl.protocol.sip.CallPeerSipImpl.invite(CallPe
erSi pImpl.java:1413) ... 4 more

WDYT?

Regards,
Daniel


#3

I installed the rpm and now I get a much shorter java.class.path:
java.class.path=/usr/lib/jitsi/lib/jdic_stub.jar:/usr/lib/jitsi/lib/jdic-all.jar:/usr/lib/jitsi/lib/felix.jar:/usr/lib/jitsi/lib/bcprovider.jar:/usr/lib/jitsi/sc-bundles/sc-launcher.jar:/usr/lib/jitsi/sc-bundles/util.jar
I can confirm that the cause for the longest java.class.path is building from source.
But also with rpm there is the SIP problem.

I've analysed my computer to find what can be the cause of it, but I didn't come to a conclusion. I'll continue the analysis on this problem.

Regards,
Daniel

----- Messaggio originale -----

···

Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Cc:
Inviato: Domenica 11 Dicembre 2011 23:02
Oggetto: RE: [jitsi-dev] Re: Problems making SIP calls

Hey Daniel

Thanks very much for helping to diagnose!

I installed an OpenSuse 11.4 in Virtualbox, made "zypper update", and I was unable to reproduce it with the rpm build 3830 (installed with your hint from JITSI-836, I insist on fixing that too). However the java.class.path has various entries that shouldn't be there (at least not in a normal installation).
-> Do you run Jitsi from source? If so, would you mind trying a normal installation? (Not as a permanent fix, just as an attempt to pinpointing)

Ingo

-----Original Message-----
From: Daniel Zucchetto [mailto:dzmail90-voip@yahoo.it]
Sent: Sonntag, 11. Dezember 2011 17:11
To: Bauersachs Ingo
Subject: Re: [jitsi-dev] Re: Problems making SIP calls

As you asked, here are the logs.
OS: openSUSE 11.4 x86_64 with Sun Java 1.6

Regards,
Daniel

----- Messaggio originale -----
Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: "dev@jitsi.java.net" <dev@jitsi.java.net>
Cc: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Inviato: Domenica 11 Dicembre 2011 15:52
Oggetto: [jitsi-dev] Re: Problems making SIP calls

Hey Daniel

It's 9208. Could you please give me some more info about your environment
(OS, Architecture and Java Version if not on Windows)?
Could you also please attach the full log after you freshly started Jitsi and
tried to make a call?

I'm looking into it later today.

Thanks,
Ingo


#4

Hey

It's normal that the classpath contains all jars when Jitsi is started through 'ant run', nothing to diagnose with regards to the classpath thing.
Dnsjava as an SPI has apparently numerous problems - you're not alone. Since r9219/b3831 it is no longer enabled by default.

I modified something with regards to localhost-lookup in dnsjava.jar. I'd be curious to know if that would work for you. If want to try it again with the SPI enabled, create an empty file named .usednsjava in the profile directory of Jitsi (usually ~/.jitsi).

Thanks!
Ingo

···

-----Original Message-----
From: Daniel Zucchetto [mailto:dzmail90-voip@yahoo.it]
Sent: Dienstag, 13. Dezember 2011 23:41
To: Bauersachs Ingo
Cc: dev@jitsi.java.net
Subject: Re: [jitsi-dev] Re: Problems making SIP calls
I installed the rpm and now I get a much shorter java.class.path:
java.class.path=/usr/lib/jitsi/lib/jdic_stub.jar:/usr/lib/jitsi/lib/jdic-

all.jar:/usr/lib/jitsi/lib/felix.jar:/usr/lib/jitsi/lib/bcprovider.jar:/u
sr/l
ib/jitsi/sc-bundles/sc-launcher.jar:/usr/lib/jitsi/sc-bundles/util.jar I
can confirm that the cause for the longest java.class.path is building
from source. But also with rpm there is the SIP problem.

I've analysed my computer to find what can be the cause of it, but I didn't
come to a conclusion. I'll continue the analysis on this problem.

Regards,
Daniel

----- Messaggio originale -----
Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Cc:
Inviato: Domenica 11 Dicembre 2011 23:02
Oggetto: RE: [jitsi-dev] Re: Problems making SIP calls

Hey Daniel

Thanks very much for helping to diagnose!

I installed an OpenSuse 11.4 in Virtualbox, made "zypper update", and I
was unable to reproduce it with the rpm build 3830 (installed with your
hint from JITSI-836, I insist on fixing that too). However the
java.class.path has various entries that shouldn't be there (at least
not in a normal installation). -> Do you run Jitsi from source? If so,
would you mind trying a normal installation? (Not as a permanent fix,
just as an attempt to pinpointing)

Ingo

-----Original Message-----
From: Daniel Zucchetto [mailto:dzmail90-voip@yahoo.it]
Sent: Sonntag, 11. Dezember 2011 17:11
To: Bauersachs Ingo
Subject: Re: [jitsi-dev] Re: Problems making SIP calls

As you asked, here are the logs.
OS: openSUSE 11.4 x86_64 with Sun Java 1.6

Regards,
Daniel

----- Messaggio originale -----
Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: "dev@jitsi.java.net" <dev@jitsi.java.net>
Cc: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Inviato: Domenica 11 Dicembre 2011 15:52
Oggetto: [jitsi-dev] Re: Problems making SIP calls

Hey Daniel

It's 9208. Could you please give me some more info about your
environment (OS, Architecture and Java Version if not on Windows)?
Could you also please attach the full log after you freshly started
Jitsi and tried to make a call?

I'm looking into it later today.

Thanks,
Ingo


#5

Hi,
I've tried with .usednsjava and it works!
Thanks for interesting on resolving the problem.
I'm curious to know what sort of change you have done.

Daniel

···

----- Messaggio originale -----
Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Cc: "dev@jitsi.java.net" <dev@jitsi.java.net>
Inviato: Martedì 13 Dicembre 2011 23:53
Oggetto: RE: [jitsi-dev] Re: Problems making SIP calls

Hey

It's normal that the classpath contains all jars when Jitsi is started through 'ant run', nothing to diagnose with regards to the classpath thing.
Dnsjava as an SPI has apparently numerous problems - you're not alone. Since r9219/b3831 it is no longer enabled by default.

I modified something with regards to localhost-lookup in dnsjava.jar. I'd be curious to know if that would work for you. If want to try it again with the SPI enabled, create an empty file named .usednsjava in the profile >directory of Jitsi (usually ~/.jitsi).

Thanks!
Ingo


#6

One sec! :slight_smile:

I suppose I missed something but are you saying that you have
something working with dnsjava as an SPI and not without it?

Could you please describe that once again?

Emil

···

On Wed, Dec 14, 2011 at 2:34 PM, Daniel Zucchetto <dzmail90-voip@yahoo.it> wrote:

Hi,
I've tried with .usednsjava and it works!
Thanks for interesting on resolving the problem.
I'm curious to know what sort of change you have done.

Daniel

----- Messaggio originale -----
Da: Bauersachs Ingo <ingo.bauersachs@fhnw.ch>
A: Daniel Zucchetto <dzmail90-voip@yahoo.it>
Cc: "dev@jitsi.java.net" <dev@jitsi.java.net>
Inviato: Martedì 13 Dicembre 2011 23:53
Oggetto: RE: [jitsi-dev] Re: Problems making SIP calls

Hey

It's normal that the classpath contains all jars when Jitsi is started through 'ant run', nothing to diagnose with regards to the classpath thing.
Dnsjava as an SPI has apparently numerous problems - you're not alone. Since r9219/b3831 it is no longer enabled by default.

I modified something with regards to localhost-lookup in dnsjava.jar. I'd be curious to know if that would work for you. If want to try it again with the SPI enabled, create an empty file named .usednsjava in the profile >directory of Jitsi (usually ~/.jitsi).

Thanks!
Ingo

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
http://jitsi.org FAX: +33.1.77.62.47.31


#7

Hey

I've tried with .usednsjava and it works!
Thanks for interesting on resolving the problem.

Thanks again for your test effort!

I'm curious to know what sort of change you have done.

The Dnsjava SPI sent the lookup of the name "localhost" to the DNS server instead of returning the addresses as known by the OS (your own network IP, 127.0.0.1, ::1).

Ingo


#8

One sec! :slight_smile:

I suppose I missed something but are you saying that you have
something working with dnsjava as an SPI and not without it?

Could you please describe that once again?

Emil

I have no problem without dnsjava as an SPI,
but I had problem with dnsjava as an SPI before the change made by Ingo.
As he asked I tested again with the change applied and dnsjava as an SPI and it worked.

Daniel

···

On Wed, Dec 14, 2011 at 13:51, Emil Ivov wrote:

On Wed, Dec 14, 2011 at 2:34 PM, Daniel Zucchetto ><dzmail90-voip@yahoo.it> wrote:

Hi,
I've tried with .usednsjava and it works!
Thanks for interesting on resolving the problem.
I'm curious to know what sort of change you have done.

Daniel