[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sip] ABNF issue



inline.

Christer Holmberg wrote:
Hi,

The ABNF syntax in RFC3261 says the following things:

LWS              =  [*WSP CRLF] 1*WSP ; linear whitespace

Request          = Request-Line
                          *( message-header )
                          CRLF
                          [ message-body ]

message-body  =  *OCTET

Also, the syntax says that every message-header ends with CTRL.

Now, the spec says that the SIP part of a message ends with CTRL CTRL.

However, if the message-body part starts with one or more WSP, won't the

CRLF between the message-body be interpreted as LWS instead? Ie, there
will NOT be CRLF CRLF at the end of the SIP part of message, but instead

CRLF LWS.
I don't know how you come to this conclusion. If the body starts with LWS, you will see a CRLF after the last header field, another CRLF before the body, and then an LWS which is the first byte of the body. Thus:

CRLF CRLF LWS

which is fine.

-Jonathan R.


--
Jonathan D. Rosenberg, Ph.D. 72 Eagle Rock Ave.
Chief Scientist First Floor
dynamicsoft East Hanover, NJ 07936
jdrosen@dynamicsoft.com FAX: (973) 952-5050
http://www.jdrosen.net PHONE: (973) 952-5000
http://www.dynamicsoft.com

_______________________________________________
Sip mailing list https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use sip-implementors@cs.columbia.edu for questions on current sip
Use sipping@ietf.org for new developments on the application of sip