Gaurav,
This reply is incorrect. Please see Brett's reply for the correct answer.
Thanks,
Paul
On 4/15/13 1:39 AM, Gaurav Gupta wrote:
> Hi Suman,
>
> Via: \r\n
> SIP/2.0 \r\n
> /[transport]
> [local_ip]:[local_port];branch=[branch]\r\n
>
> The above message is incorrect because \r\n denotes the end of header value
> and in new line it will not find Header Name.
>
> The below value is correct
>
> Via: SIP/2.0 [transport] [local_ip]:[local_port];branch=[branch]\r\n
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Sumant
> Gupta
> Sent: Monday, April 15, 2013 11:04 AM
> To: [email protected]
> Subject: [Sip-implementors] Query regarding ABNF syntax for SIP message
> headers
>
> Hi All,
>
> I have a query regarding the parsing of sip message headers.I am taking the
> example of via header.
> Is the below message correct or not?
>
> Via: \r\n
> SIP/2.0 \r\n
> /[transport]
> [local_ip]:[local_port];branch=[branch]\r\n
>
>
> As per grammer and my understanding:
>
> Via = ( "Via" / "v" ) HCOLON via-parm *(COMMA via-parm) via-parm =
> sent-protocol LWS sent-by *( SEMI via-params ) sent-protocol = protocol-name
> SLASH protocol-versionSLASH transport
>
> Now the via-parm expands to following value after populating the value of
> "sent-protocol"
>
> via-parm = protocol-name SLASH protocol-version SLASH transport LWS sent-by
> *( SEMI via-params )
>
> Now the HCOLON refers to:
>
> HCOLON = *( SP / HTAB ) ":" SWS
>
> SWS refers to following value:
>
> SWS = [LWS] ; sep whitespace
>
> LWS refers to:
>
> LWS = [*WSP CRLF] 1*WSP ; linear whitespace
>
>>From the above syntax it seems that CRLF is possible in the above
> syntax of Via message header after the ":".
> Is my understanding correct or is there some error in understanding the ABNF
> grammer ?
> Looking forward for response.
>
> Regards
> Sumant
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
>
>
>
>
> ===============================================================================
> Please refer to http://www.aricent.com/legal/email_disclaimer.html
> for important disclosures regarding this electronic communication.
> ===============================================================================
>
> _______________________________________________
> 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