[sip-comm] hmmm....sipxpbx


#1

so it turns out that the rfc states sip:dhiller@xyz.com IS NOT the same as
sip:dhiller@xyz.com:5060. I think it would be nice then if the from and to
fields simply containted dhiller@xyz.com <mailto:dhiller@xyz.com> instead
of dhiller@xyz.com:5060;transport=udp
<mailto:dhiller@xyz.com:5060;transport=udp> . I guess the only port number
and transport that matters is in the contact header. At the very least, I
would like to make a temporary change to my view of sip-communicator so I
can continue playing with jain apis. If you could help me, I would
appreciate it. I am basically trying to figure out this from header stuff
and how to make it not put the port and transport on there.
thanks,
dean

···

-----Original Message-----

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

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

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:

!
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 f! or 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 trave! l sites in one click.

  _____

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.