Hi,
Quoting from Section 14.1 of RFC-2616, from which 3261 derives the Accept
grammar
"The first "q" parameter (if any) separates the media-range
parameter(s) from the accept-params."
Hence the separation is the q parameter. If there are no q parameters all
the parameters are media params and not accept params.
Cheers,
Prasanna
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Benoit
Thiery
Sent: Tuesday, March 18, 2003 9:44 PM
To: [EMAIL PROTECTED]
Subject: [Sip-implementors] SIP grammar issue
Hello,
I would like to write a SIP parser. When analyzing RFC3261 grammar, I
see one problem.
For the rules :
Accept = "Accept" HCOLON [ accept-range *(COMMA accept-range) ]
accept-range = media-range *(SEMI accept-param)
media-range = ( "*/*"
/ ( m-type SLASH "*" )
/ ( m-type SLASH m-subtype )
) *( SEMI m-parameter )
accept-param = ("q" EQUAL qvalue) / generic-param
m-parameter = m-attribute EQUAL m-value
m-attribute = token
m-value = token / quoted-string
How can I distinguish an accept-param of the accept-range and an
m-parameter of the media-range as they can both be any "token EQUAL
token" and they are both separated by SEMI ?
Kind regards,
Benoit
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors