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

[Sip] ABNF issue



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 think this is a bug in the ABNF, since the message-body from a syntax
point
of view is part of the SIP messages, so they can't be "separated".

Now, to solve this the ABNF needs to be changed, so that the definition
for LWS is not valid at the beginning of a new line (when a
message-header has been successfully parsed), ie LWS is only valid
within headers. Then, if a new line starts with CRLF, is is CRLF no
matter what comes after.

Regards,

Christer Holmberg
Ericsson Finland


_______________________________________________
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