Abhijit Kulkarni wrote:
> Hi,
> In draft-ietf-sip-call-flows-05.txt
>
> 7.33 REGISTER with a Escaped Header in a Illegal SIP URL of a Contact
>
> A server should respond 400 for following message.
>
> REGISTER sip:company.com SIP/2.0
> To: sip:[EMAIL PROTECTED]
> From: sip:[EMAIL PROTECTED]
> Contact: sip:[EMAIL PROTECTED]
> Call-ID: [EMAIL PROTECTED]
> CSeq: 1 REGISTER
> Via: SIP/2.0/UDP 135.180.130.133
> Contact: sip:[EMAIL PROTECTED]?Route=%3Csip:sip.example.com%3E
>
> Draft says this is an illegal message as
> REGISTER request contains a SIP URL with an escaped header but it is not
> enclosed in <>.
>
> My doubt:
>
> If we see BNF of Contact header above line seems to be valid as u can
> have name-addr or addr-spec.
> Thus "<>" may not be present (although this may lead to ambiguity) and
> message is still gramatically
> correct.
BNF cannot express everything. THe spec is clear that the Contact URL
needs to be wrapped in <> if it contains ?. Quoting section 22.10 of bis-05:
Parameters defined for Contact include "q"and"expires". Additional
parameters may be defined in 3495
other specifications.Even if the
"display-name"isempty,the"name-addr"formMUST be used if the 3496
"addr-spec" contains a comma, semicolon or question mark. Note that
there may or may not be LWS 3497
between the display-name and the "<". 3498
-Jonathan R.
--
Jonathan D. Rosenberg, Ph.D. 72 Eagle Rock Avenue
Chief Scientist First Floor
dynamicsoft East Hanover, NJ 07936
[EMAIL PROTECTED] FAX: (973) 952-5050
http://www.jdrosen.net PH: (973) 952-5000
http://www.dynamicsoft.com
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors