[SR-Users] Select a network
Daniel Tryba
d.tryba at pocos.nl
Mon Jun 1 10:31:43 CEST 2015
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_subnet
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.f.allow_address
--
Telefoon: 088 0100 700
Sales: sales at pocos.nl | Service: servicedesk at pocos.nl
http://www.pocos.nl/ | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel
17097024
More information about the sr-users
mailing list