[SR-Users] sanity from uri check

Juha Heinanen jh at tutpro.com
Tue Mar 15 09:56:39 CET 2022


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 at 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 at test.tutpro.com>
From: sipp <sip:@192.168.255.95:5062>;tag=1
Call-ID: 1-2974924 at 192.168.255.95
CSeq: 1 OPTIONS
Contact: <sip:sipp at 192.168.255.95:5062>
Accept: application/sdp
Content-Length: 0



More information about the sr-users mailing list