[sip-comm] sip communicator register message is wrong?


#1

hmmmm. I am confused and trying to figure why this does not work with
sipxpbx. First thing I see wrong is I don't see sip-comm going to dns to
lookup the sip udp records to find the sip server to register with. The DNS
would send back sipxpbx.labs.carrieraccess.com at which point, I think the
register is supposed to look like

REGISTER sip:labs.carrieraccess.com SIP/2.0

Instead the register looks like this from sip-comm
REGISTER sip:labs.carrieraccess.com:5060;transport=udp SIP/2.0

I think this may be the problem, but I honestly have no idea as I don't know
the spec that well yet. Is there anyway to get rid of the
:5060;transport=udp without changing the code? If not, I am running the
code from eclipse and can easily modify it anyways. Which java file is this
from?
thanks,
dean

-----Original Message[Hiller, Dean] -----

···

From: Litty Preeth [mailto:iamlitty@yahoo.com]

Sent: Thursday, November 17, 2005 4:41 AM
To: users@sip-communicator.dev.java.net
Subject: Re: [sip-comm] sip communicator register message is wrong?

Hi Hiller,

You are not doing anything wrong. But the SipCommunicator is using the
net.java.sip.communicator.sip.REGISTRAR_ADDRESS property value as the
request uri for the register request while it should use the
net.java.sip.communicator.sip.DEFAULT_DOMAIN_NAME value for it (according to
RFC 3261). I think its a bug in it.

With Regards,
Litty Preeth

"Hiller, Dean" <DHiller@carrieraccess.com> wrote:

I am tracing with ethereal and am trying to figure out what is wrong in my
config file for sip-communicator. It is sending out a regis! ter message
with
REGISTER sip:sipxpbx.labs.carrieraccess.com:5060;transport=udp
I am not sure but I think the server only allows REGISTER
sip:labs.carreraccess.com since this is used to calculate the hash(I have
verified this with sjphone and manually calculated the hash of that with
username/realm/password and nonce and got the same thing as the response.
What could I be doing wrong in the config file. I need the realm to be
labs.carrieraccess.com, and the request needs to go to
sipxpbx.labs.carrieraccess.com which is the pbx for that realm. I have
sjphone working with sipxpbx and send ethereal traces of what is working and
ethereal traces of sip-comm not working. Anyone know what I have wrong in
my configuration?
thanks,
dean

  _____

Yahoo!
<http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNj
kEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechas
e.yahoo.com/> FareChase - Search multiple travel sites in one click.


#2

hi hiller,
  
  Well there is no way you can change this without modifying the code. To remove the port and transport from appearing in the Register request you need to modify the net.java.sip.communicator.sip.RegisterProcessing class.
  
  In this class there is the method synchronized void register(String registrarAddress, int registrarPort, String registrarTransport, int expires). In this method you need to remove the lines
  
              requestURI.setPort(registrarPort);
              try {
                   requestURI.setTransportParam(registrarTransport);
              }
              catch (ParseException ex) {
                  console.error(registrarTransport
                                 + " is not a valid transport!", ex);
                  throw new CommunicationsException(
                       registrarTransport + " is not a valid transport!", ex);
              }
  
Hope it works for you...
  
  With Regards,
  Litty Preeth
"Hiller, Dean" <DHiller@carrieraccess.com> wrote: sip communicator register message is wrong? hmmmm. I am confused and trying to figure why this does not work with sipxpbx. First thing I see wrong is I don't see sip-comm going to dns to lookup the sip udp records to find the sip server to register with. The DNS would send back sipxpbx.labs.carrieraccess.com at which point, I think the register is supposed to look like
   
  REGISTER sip:labs.carrieraccess.com SIP/2.0
   
  Instead the register looks like this from sip-comm
  REGISTER sip:labs.carrieraccess.com:5060;transport=udp SIP/2.0
   
  I think this may be the problem, but I honestly have no idea as I don't know the spec that well yet. Is there anyway to get rid of the :5060;transport=udp without changing the code? If not, I am running the code from eclipse and can easily modify it anyways. Which java file is this from?
  thanks,
  dean
   
      -----Original Message[Hiller, Dean] -----

···

From: Litty Preeth [mailto:iamlitty@yahoo.com]

Sent: Thursday, November 17, 2005 4:41 AM
To: users@sip-communicator.dev.java.net
Subject: Re: [sip-comm] sip communicator register message is wrong?

    Hi Hiller,

You are not doing anything wrong. But the SipCommunicator is using the net.java.sip.communicator.sip.REGISTRAR_ADDRESS property value as the request uri for the register request while it should use the net.java.sip.communicator.sip.DEFAULT_DOMAIN_NAME value for it (according to RFC 3261). I think its a bug in it.

With Regards,
Litty Preeth

"Hiller, Dean" <DHiller@carrieraccess.com> wrote: I am tracing with ethereal and am trying to figure out what is wrong in my config file for sip-communicator. It is sending out a regis! ter message with
      REGISTER sip:sipxpbx.labs.carrieraccess.com:5060;transport=udp
      I am not sure but I think the server only allows REGISTER sip:labs.carreraccess.com since this is used to calculate the hash(I have verified this with sjphone and manually calculated the hash of that with username/realm/password and nonce and got the same thing as the response. What could I be doing wrong in the config file. I need the realm to be labs.carrieraccess.com, and the request needs to go to sipxpbx.labs.carrieraccess.com which is the pbx for that realm. I have sjphone working with sipxpbx and send ethereal traces of what is working and ethereal traces of sip-comm not working. Anyone know what I have wrong in my configuration?
      thanks,
dean

---------------------------------
    Yahoo! FareChase - Search multiple travel sites in one click.

---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.


#3

This looks like a bug to me. The REGISTER method should only identify the domain...
the Contact header is used to register the protocol and port number.

hi hiller,

Well there is no way you can change this without modifying the code. To remove the

port and transport from appearing in the Register request you need to modify the
net.java.sip.communicator.sip.RegisterProcessing class.

In this class there is the method synchronized void register(String registrarAddress,

int registrarPort, String registrarTransport, int expires). In this method you need to
remove the lines

             requestURI.setPort(registrarPort);
             try {
                  requestURI.setTransportParam(registrarTransport);
             }
             catch (ParseException ex) {
                 console.error(registrarTransport
                                + " is not a valid transport!", ex);
                 throw new CommunicationsException(
                      registrarTransport + " is not a valid transport!", ex);
             }

Hope it works for you...

With Regards,
Litty Preeth
"Hiller, Dean" <DHiller@carrieraccess.com> wrote: sip communicator register

message is wrong? hmmmm. I am confused and trying to figure why this does not
work with sipxpbx. First thing I see wrong is I don't see sip-comm going to dns to
lookup the sip udp records to find the sip server to register with. The DNS would send
back sipxpbx.labs.carrieraccess.com at which point, I think the register is supposed to
look like

  
REGISTER sip:labs.carrieraccess.com SIP/2.0
  
Instead the register looks like this from sip-comm
REGISTER sip:labs.carrieraccess.com:5060;transport=udp SIP/2.0
  
I think this may be the problem, but I honestly have no idea as I don't know the

spec that well yet. Is there anyway to get rid of the :5060;transport=udp without
changing the code? If not, I am running the code from eclipse and can easily modify it
anyways. Which java file is this from?

thanks,
dean
  
     -----Original Message[Hiller, Dean] -----
From: Litty Preeth [mailto:iamlitty@yahoo.com]
Sent: Thursday, November 17, 2005 4:41 AM
To: users@sip-communicator.dev.java.net
Subject: Re: [sip-comm] sip communicator register message is wrong?

   Hi Hiller,

You are not doing anything wrong. But the SipCommunicator is using the

net.java.sip.communicator.sip.REGISTRAR_ADDRESS property value as the
request uri for the register request while it should use the
net.java.sip.communicator.sip.DEFAULT_DOMAIN_NAME value for it (according to
RFC 3261). I think its a bug in it.

With Regards,
Litty Preeth

"Hiller, Dean" <DHiller@carrieraccess.com> wrote: I am tracing with

ethereal and am trying to figure out what is wrong in my config file for
sip-communicator. It is sending out a regis! ter message with

     REGISTER sip:sipxpbx.labs.carrieraccess.com:5060;transport=udp
     I am not sure but I think the server only allows REGISTER

sip:labs.carreraccess.com since this is used to calculate the hash(I have verified
this with sjphone and manually calculated the hash of that with
username/realm/password and nonce and got the same thing as the response.
What could I be doing wrong in the config file. I need the realm to be
labs.carrieraccess.com, and the request needs to go to
sipxpbx.labs.carrieraccess.com which is the pbx for that realm. I have sjphone
working with sipxpbx and send ethereal traces of what is working and ethereal
traces of sip-comm not working. Anyone know what I have wrong in my
configuration?

     thanks,
dean

---------------------------------
   Yahoo! FareChase - Search multiple travel sites in one click.

---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.

Regards,

Brian Burch
[http://www.PingToo.com/]

···

On Thu, 17 Nov 2005 07:01:53 -0800 (PST), Litty Preeth wrote:

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