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-paramm-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
