You're right. In the obsolete RFC2543, 6.32 this construct is mentioned, and I was puzzled as I tried to construct test-cases for a SIP-Proxy.
Thanks Michael Attila Sipos wrote: > I think your error is that you are trying to create > a Contact header which is not valid. > > If the BNF grammar doesn't permit your header, then you > shouldn't try to construct it. > >>> it is possible to create a >>> "Contact" HCOLON STAR _or_ >>> "Contact" HCOLON ((contact-param *(COMMA contact-param)) > > Correct, but "Contact: *; expires=0" is none of the above > so it is not valid. > > Regards, > Attila > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Michael > Hirschbichler > Sent: 17 April 2007 10:40 > To: [email protected] > Subject: [Sip-implementors] Question regarding BNF and Contact:-Header > > > 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 _______________________________________________ Sip-implementors mailing list [email protected] https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
