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_sub…
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…
--
Telefoon: 088 0100 700
Sales: sales(a)pocos.nl | Service: servicedesk(a)pocos.nl
http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
17097024