[sip-comm-dev] sip tcp registration (1.0-alpha6-nightly.build.2888)


#1

Hello!

I just tried out sip communicator for the first time, looks quite interesting.

What I tried out is a sip registration, with udp it worked out of the box,
when I swichted over to tcp I got the included error.

The domain part of the SIP uri does not have a DNS-A record, though it has
SRV records for _SIP._UDP (which seem to work as I was able to register)
_SIP._TCP (see below error) and _SIPS_TCP (which I can not currenlty connect,
but it showed me the certificate, after I looked (not accepted it) the cert does
not show up anymore).

regarding the TCP part, could there be something wrong with the handling
of the SRV request. At least I can see that the DNS server is asked for it and
answers (sure I checked the DNS as well).

An error occurred while logging in with account: User name: 200391, Server name: domain.com. This is most probably an internal application error. Please report the problem to our developers mailing list

net.java.sip.communicator.service.protocol.OperationFailedException: Failed to generate a from header for our register request.
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.register(SipRegistrarConnection.java:217)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.register(ProtocolProviderServiceSipImpl.java:417)
     at net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)
Caused by: net.java.sip.communicator.service.protocol.OperationFailedException: Unable to create a via header for port 58830
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getLocalViaHeaders(ProtocolProviderServiceSipImpl.java:1138)
     at net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.createRegisterRequest(SipMessageFactory.java:1046)
     at net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.register(SipRegistrarConnection.java:205)
     ... 2 more
Caused by: java.net.UnknownHostException: domain.com: domain.com
     at java.net.InetAddress.getAllByName0(InetAddress.java:1146)
     at java.net.InetAddress.getAllByName(InetAddress.java:1073)
     at java.net.InetAddress.getAllByName(InetAddress.java:1009)
     at java.net.InetAddress.getByName(InetAddress.java:959)
     at net.java.sip.communicator.util.NetworkUtils.getInetAddress(NetworkUtils.java:402)
     at net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getLocalViaHeaders(ProtocolProviderServiceSipImpl.java:1091)
     ... 4 more

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hi,

I've just committed a change addressing this issue. Use latest trunk
or build 2897.
Hope this works ok now. Please try it and report if any other issues persist.

Thank you
damencho

···

On Fri, Aug 20, 2010 at 6:18 PM, M. Koch <gmane@w48.de> wrote:

Hello!

I just tried out sip communicator for the first time, looks quite
interesting.

What I tried out is a sip registration, with udp it worked out of the box,
when I swichted over to tcp I got the included error.

The domain part of the SIP uri does not have a DNS-A record, though it has
SRV records for _SIP._UDP (which seem to work as I was able to register)
_SIP._TCP (see below error) and _SIPS_TCP (which I can not currenlty
connect,
but it showed me the certificate, after I looked (not accepted it) the cert
does
not show up anymore).

regarding the TCP part, could there be something wrong with the handling
of the SRV request. At least I can see that the DNS server is asked for it
and
answers (sure I checked the DNS as well).

An error occurred while logging in with account: User name: 200391, Server
name: domain.com. This is most probably an internal application error.
Please report the problem to our developers mailing list

net.java.sip.communicator.service.protocol.OperationFailedException: Failed
to generate a from header for our register request.
at
net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.register(SipRegistrarConnection.java:217)
at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.register(ProtocolProviderServiceSipImpl.java:417)
at
net.java.sip.communicator.impl.gui.main.login.LoginManager$RegisterProvider.run(LoginManager.java:404)
Caused by:
net.java.sip.communicator.service.protocol.OperationFailedException: Unable
to create a via header for port 58830
at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getLocalViaHeaders(ProtocolProviderServiceSipImpl.java:1138)
at
net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.createRegisterRequest(SipMessageFactory.java:1046)
at
net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.register(SipRegistrarConnection.java:205)
... 2 more
Caused by: java.net.UnknownHostException: domain.com: domain.com
at java.net.InetAddress.getAllByName0(InetAddress.java:1146)
at java.net.InetAddress.getAllByName(InetAddress.java:1073)
at java.net.InetAddress.getAllByName(InetAddress.java:1009)
at java.net.InetAddress.getByName(InetAddress.java:959)
at
net.java.sip.communicator.util.NetworkUtils.getInetAddress(NetworkUtils.java:402)
at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getLocalViaHeaders(ProtocolProviderServiceSipImpl.java:1091)
... 4 more

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net