Re: Error in contact header parsing?

"Jeroen van Bemmel" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <010f01c6a021$db121c80$31713b51@BEMBUSTER>
Sven,

I tried to reproduce your finding with the latest JAIN NIST 1.2 source in 
CVS. When I do

   Header h = tiHeaderFactory.createHeader( "m", 
"sip:[email protected]:1234;param1" );
   System.err.println( h );

I get "Contact: <sip:[email protected]:1234>;param1"

So it looks like parameters are correctly assigned to the header, and not 
the URI. However, I did find a bug in the representation of URI flag 
parameters, which I fixed in CVS (but not on java.net yet)

It may be that parsing of a Contact header received in a REGISTER follows a 
different path through the code. Did you use the latest 1.2 code?

Regards,

Jeroen

----- Original Message ----- 
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, July 05, 2006 11:02 AM
Subject: [nist-sip] Error in contact header parsing?


>
>
>
>
> Hello,
>
> An SIP client sends in the Register message following contact header:
>
> m: sip:[email protected]:1234;param1 .
>
> After parsing the header looks like this:
>
> Contact: <sip:[email protected]:1234;param1> .
>
> The Nist SIP parser recognized the header value as a complete (SIP) URI
> with a parameter. In my opinion the parameter is part of the contact
> header.
> Is this a bug from the SIP NIST parser?
>
> Thank you.
>
> Regards,
>
> Sven
>
> _______________________________________________
> nist-sip mailing list
> [email protected]
> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.