[EMAIL PROTECTED] wrote:

> Hello,
> 
> I have a couple of questions about SIP parsing.
> 
> Firstly, bis-04 seems (incorrectly) to permit backslash and quote as
> unescaped ctext character within a comment. Which would make the escaping
> mechanism and quoted-string parsing ambiguous and unusable. For instance
> the current spec would seem to permit ("hello) as a legal comment, and
> would entertain two possible parsings for the string (\))
> 
> The situation could be fixed by changing the SIP spec to say:
> 
>       ctext = < any TEXT-UTF8 excluding "(", ")", <"> and "\" >
> 
> Should one just assume these "common-sense" restrictions?


I believe that unescaped \ is an error, and we will fix.
  However, I do not see the issue with quotation marks within comments. 
WHo cares if they are matched?


> 
> 
> Secondly, are there any general rules about the significance of comma as a
> header field seperator and semicolon as a parameter seperator? I note that
> in From, To and Contact lines, care has been taken to protect commas and
> semicolons in URLs using angle-brackets; but it is left open as to whether
> future-defined headers can have internal commas or semicolons?
> 
> For instance, if a message contained:
> 
>       Meal: <fish,chips>, peas;type=mushy
> 
> is it possible to guess whether there are one, two or three "Meal" headers
> without knowing the precise definition of "Meal"; or if "type" is a header
> parameter rather than part of the header proper?


It is a guideline, but not a MUST strength recommendation, for headers 
to have the general form that uses comma as an element separator. You 
should not be deeply parsing any headers for which you don't know about, 
so I don't really see an issue.

-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

Reply via email to