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