2011/4/28 Klaus Darilion klaus.mailinglists@pernau.at:
but it works. E.g
INVITE sip:0900123455@1.2.3.004
Right. In RFC 3261 that is a valid IPv4, but RFC 5954 updates RFC 3261 BNF grammar.
works with Kamailio. Thus when making string based checks you do not have to rely on valid or not. Thus, I never would do IPv4 comparisons with "string" comparisons if one of the values is user provided, e.g.
if ($rd == "1.2.3.4") { sl_send_reply("403","not allowed"); exit; }
would fail to detect the above request.
Right.