[SR-Users] sanity from uri check

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 15 13:00:25 CET 2022


Can you double check that latest version is used for testing?

You can also run with debug=3 and provide the logs printed by core and
sanity module.

Daniel

On 15.03.22 11:13, Juha Heinanen wrote:
> 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

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  March 28-31, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/




More information about the sr-users mailing list