I completely agree with you Attila...
I was confused with LWS/SWS applied operators like,
STAR = SWS "*" SWS ; asterisk
SLASH = SWS "/" SWS ; slash
EQUAL = SWS "=" SWS ; equal
LPAREN = SWS "(" SWS ; left parenthesis
RPAREN = SWS ")" SWS ; right parenthesis
RAQUOT = ">" SWS ; right angle quote
LAQUOT = SWS "<"; left angle quote
COMMA = SWS "," SWS ; comma
SEMI = SWS ";" SWS ; semicolon
COLON = SWS ":" SWS ; colon
LDQUOT = SWS DQUOTE; open double quotation mark
RDQUOT = DQUOTE SWS ; close double quotation mark
Thanks & Regards,
Nataraju A.B.
> -----Original Message-----
> From: Attila Sipos [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 22, 2006 6:23 PM
> To: Nataraju A B; Jain, Rakesh; [email protected]
> Subject: RE: [Sip-implementors] SIP header line folding
>
>
> Hi,
>
> I'm not sure the example is correct.
>
> There is a section 7.3 which says:
> This
> specification conforms to RFC 2234 [10] and uses only explicit
> whitespace and folding as an integral part of the grammar.
>
> So, to me, that means, that any line-folding is mentioned explicitly
> in the grammar (section "25 Augmented BNF for the SIP Protocol").
>
> And so things like COMMA, EQUAL, SEMI allow folding because they
> use SWS
> For example - EQUAL = SWS "=" SWS ; equal
>
> and SWS is...
> SWS = [LWS] ; sep whitespace
>
> and LWS is...
> LWS = [*WSP CRLF] 1*WSP ; linear whitespace
>
> So the LWS explicity describes the line folding mechanism.
>
>
> So I think you can only use the folding where the grammar
> explicitly states it.
>
> And if that is true, then you can't just put spaces after the
> '@' in the call-ID.
>
> Call-ID = ( "Call-ID" / "i" ) HCOLON callid
> callid = word [ "@" word ]
>
> word does not allow spaces and since word does not explicitly
> allow line-folding, I don't believe you can use it.
>
>
> So:
> Call-ID:
> [EMAIL PROTECTED]
>
> would be OK since the HCOLON explicitly allows line-folding
>
> but I don't think this is ok...
> Call-ID: a84b4c76e66710@
> pc33.atlanta.com
>
>
> Comments please.
>
> Regards,
>
> Attila
>
>
> Attila Sipos
> Software Engineer
> http://www.vegastream.com
>
>
>
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED]
> >> [mailto:[EMAIL PROTECTED] Behalf
> >> Of Nataraju A
> >> B
> >> Sent: 22 June 2006 12:47
> >> To: 'Jain, Rakesh'; [email protected]
> >> Subject: Re: [Sip-implementors] SIP header line folding
> >>
> >>
> >> Comments inline...
> >>
> >> Thanks & Regards,
> >> Nataraju A.B.
> >> > -----Original Message-----
> >> > From: [EMAIL PROTECTED]
> >> [mailto:sip-implementors-
> >> > [EMAIL PROTECTED] On Behalf Of Jain, Rakesh
> >> > Sent: Thursday, June 22, 2006 3:55 PM
> >> > To: [email protected]
> >> > Subject: [Sip-implementors] SIP header line folding
> >> >
> >> > Hi,
> >> >
> >> >
> >> >
> >> > This question is regarding line folding of SIP headers.
> >> >
> >> > Is it possible to fold a SIP header field value when grammer is
not
> >> > allowing it?
> >> >
> >> > For example, Can I have a SIP message like
> >> >
> >> >
> >> >
> >> > INVITE sip:[EMAIL PROTECTED] SIP/2.0
> >> >
> >> > Via: SIP/2.0/UDP
> >> pc33.atlanta.com;branch=z9hG4bK776asdhds
> >> >
> >> > Max-Forwards: 70
> >> >
> >> > To: Bob <sip:[EMAIL PROTECTED]>
> >> >
> >> > From: Alice <sip:[EMAIL PROTECTED]>;tag=1928301774
> >> >
> >> > Call-ID: a84b4c76e66710@
> >> >
> >> > pc33.atlanta.com
> >> >
> >> > CSeq: 314159 INVITE
> >> >
> >> > Contact: <sip:[EMAIL PROTECTED]>
> >> >
> >> >
> >> >
> >> > Here Call-ID field value is folded in multiple lines. Is
> >> it a valid
> >> SIP
> >> > message? As per the syntax
> >> >
> >> [ABN] yes it's a valid header value...
> >>
> >> > the value after @ should be word, and word syntax does
> >> not allow any
> >> > linear whitespace.
> >> >
> >> [ABN] a new line and immediately followed by a space in the new
line
> >> will be deleted when line folding is applied. Hence "Call-ID:
> >> a84b4c76e66710@
> >> pc33.atlanta.com"
> >> Is equivalent to "Call-ID: [EMAIL PROTECTED]"
> >>
> >> AFAIK, RFC is not very clear @ which part of the header
> >> folding would be
> >> applicable and where not...
> >>
> >> >
> >> >
> >> > Thanks,
> >> >
> >> > Rakesh
> >> >
> >> > _______________________________________________
> >> > 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
> >>
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors