Thanks Gaurav for the prompt response.

Please refer to the below rfc for SIP torture tests.

http://tools.ietf.org/html/rfc4475

As per section (3.1.1.1.  A Short Tortuous INVITE) below is the valid
message.See below the Via message header.


INVITE sip:[email protected];unknownparam SIP/2.0
      TO :
       sip:[email protected] ;   tag    = 1918181833n
      from   : "J Rosenberg \\\""       <sip:[email protected]>
        ;
        tag = 98asjd8
      MaX-fOrWaRdS: 0068
      Call-ID: [email protected]
      Content-Length   : 150
      cseq: 0009
        INVITE
      Via  : SIP  /   2.0
       /UDP
          192.0.2.2;branch=390skdjuw

2. Also can you please provide me the explanation of the below syntax
as it seems that CRLF is possible.

 HCOLON = *( SP / HTAB ) ":" SWS

 SWS refers to following value:

 SWS = [LWS] ; sep whitespace

 LWS refers to:

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

Regards
Sumant

On Mon, Apr 15, 2013 at 11:09 AM, Gaurav Gupta
<[email protected]> 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

Reply via email to