[SR-Users] sanity from uri check
Juha Heinanen
jh at tutpro.com
Tue Mar 15 11:13:45 CET 2022
Daniel-Constantin Mierla writes:
> Try again with a fresh master, let's see if this time catches it.
I tried, but still not catching the invalid from URI. I added some more
debug:
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;
} else {
xinfo("$rm <$ru> from <$fu> is OK\n");
};
and got to syslog:
Mar 15 12:11:38 /usr/bin/sip-proxy[2998746]: INFO: OPTIONS <sip:test at test.tutpro.com> from <sip:@192.168.255.95:5062> is OK
-- Juha
More information about the sr-users
mailing list