I think the dialplan module can help out here as well. Not so much for the replacement, but if a pattern match is detected.
now that I think of it, isn't there a way in the permissions module to check subnets? I bet you could use one of the funcs in there, like check_address() to test if an address is in a particular subnet. -Brett On Mon, Oct 19, 2009 at 5:02 PM, Bogdan-Andrei Iancu <[email protected]> wrote: > Hi Jeff, > > Jeff Pyle wrote: >>> not sure what you try to do, but maybe you should consider the blacklist >>> capability of opensips: >>> http://www.opensips.org/Resources/DocsCoreFcn16#toc45 >>> >>> Regards, >>> Bogdan >>> >> >> I'm deciding which calls get an engage_media_proxy(). If they're on my >> network (as defined by a group in the address table), I'll proxy them >> because I can get the added accounting benefits without causing them any >> added latency. If they're not (if the check fails), I won't use MP. >> >> In this case all the $rd values would have been set by a lookup("location"), >> and all those *should* have been populated by registrations. I'll likely >> add an ugly regex check to see if $rd looks like an IP address, then do the >> check_address() if it does. I'll likely catch 95% or more of them that way. >> That's fine. >> > I guess this is good approach - check if $rd is IP and then check it. > > Regards, > Bogdan > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
