Hello,

I have a small problem while writing a SIP parser: how can I distinguish 
between URI and Contact (and To/From) parameters when the URI is only an 
addr-spec but a name-adr (which means no displayname and no brackets around 
the URI)?

According to the BNF in RFC 3261 the following Contact should be valid:

 m: sip:abc:[EMAIL PROTECTED]:1234;foo=1;bar=2

But foo=1 is an URI parameter and bar=2 is a Contact parameter. From my point 
of view their is no way for a parser to distinguish between them. Either both 
parameters will be treated as URI parameters or as Contact parameters.

Their is no problem when I write it like this:

 m: <sip:abc:[EMAIL PROTECTED]:1234;foo=1>;bar=2

or

 m: sip:abc:[EMAIL PROTECTED]:1234;foo=1?test&header;bar=2

According to the BNF the first alternative should be possible too, but I doubt 
that it can be interpreted correct by any parser.

Did I oversaw something? Any ideas, comments are welcome.

Greetings
  Nils Ohlmeier
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors

Reply via email to