[sr-dev] Error parsing Via parameter with space before semicolon
Iñaki Baz Castillo
ibc at aliax.net
Tue Apr 19 18:55:56 CEST 2011
Hi, the following Via causes a parsing error in sip-router:
Via: SIP/2.0/UDP 1.2.3.4;branch=z9hG4bK1aaaaa;rport;param1 ;param2<CRLF>
It occurs due to the space before ";param2".
If param2 has value (param2=abc or param2 = abc) the error also occurs.
According to RFC 3261 BNF the above Via is 100% valid as header
parameters separator is SEMI which is defined as:
SEMI = SWS ";" SWS
SWS = [LWS]
LWS = [*WSP CRLF] 1*WSP
WSP = SP | HTAB;
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the sr-dev
mailing list