Hi,

I am trying to create the contact-header
Contact: *; expires=0
but if I use the BNF in RFC 3261, I am not able to reconstruct it:
RFC3261:
========================================================
...
Contact        =  ("Contact" / "m" ) HCOLON
                   ( STAR / (contact-param *(COMMA contact-param)))
contact-param  =  (name-addr / addr-spec) *(SEMI contact-params)
name-addr      =  [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec      =  SIP-URI / SIPS-URI / absoluteURI
display-name   =  *(token LWS)/ quoted-string

SEMI    =  SWS ";" SWS ; semicolon
STAR    =  SWS "*" SWS ; asterisk
HCOLON  =  *( SP / HTAB ) ":" SWS
RAQUOT  =  ">" SWS ; right angle quote
LAQUOT  =  SWS "<"; left angle quote
...
========================================================

Regarding
("Contact" / "m" ) HCOLON ( STAR / (contact-param *(COMMA contact-param)))
it is possible to create a
"Contact" HCOLON STAR _or_
"Contact" HCOLON ((contact-param *(COMMA contact-param))

So, where is my error?

Best regards
Michael
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to