Daniel-Constantin Mierla writes:
Just pushed a commit trying to catch this case. Can
you test and see if
works?
Unfortunately not catching the wrong From URI yet.
-- Juha
config:
modparam("sanity", "default_checks", 1024)
modparam("sanity", "uri_checks", 3) /* RURI, From */
modparam("sanity", "autodrop", 0)
if (!sanity_check()) {
xnotice("Request from <$var(src_ip)> has invalid syntax\n");
exit;
};
test:
OPTIONS sip:test@test.tutpro.com SIP/2.0
Via: SIP/2.0/TCP 192.168.255.95:5062;branch=z9hG4bK-2974924-1-0
Max-Forwards: 70
To: <sip:test@test.tutpro.com>
From: sipp <sip:@192.168.255.95:5062>;tag=1
Call-ID: 1-2974924(a)192.168.255.95
CSeq: 1 OPTIONS
Contact: <sip:sipp@192.168.255.95:5062>
Accept: application/sdp
Content-Length: 0