On Monday 01 June 2015 09:44:42 Nelson Migliaro wrote:
if(src_ip=”192.168.2.5”)
But I would like no include the whole network.
A solution is to use the ipops module:
http://kamailio.org/docs/modules/4.3.x/modules/ipops.html#ipops.f.is_in_subn...
if (is_in_subnet("$si", "10.0.123.1/24")) { xlog("L_INFO", "it's in the subnet\n"); }
An other is to use the permissions module http://kamailio.org/docs/modules/4.3.x/modules/permissions.html#permissions....