[OpenSIPS-Users] IP OPS Module
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Dec 11 04:07:06 EST 2017
Hi Nate,
If you simply want to check if the domain part of a SIP URI is an IP,
you do not need a module for that, you can simply use a regexp for that.
For example for checking the FROM domain:
if ($fd=~"[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}" )
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 12/09/2017 07:40 AM, Nathan Baker wrote:
> Hi Everyone,
>
> I've come across a few instances where it would be nice to check if
> the URI is an IP address or domain, or check if an IP address is a
> private (RFC 1918) address, and a few other things. I don't see an
> easy way to do these things in OpenSIPS, but I do see a Kamailio
> module called IPOPS that does these sort of things. I'm just
> wondering, is it possible to use the Kamailio module in OpenSIPS
> (either drop in the compiled module, or compile it)? Or is there an
> easier way to do similar things in OpenSIPS?
>
> If not, it looks like the licenses are compatible, is it possible to
> pull that module into OpenSIPS? Sorry if this has come up before, I
> couldn't find it when searching.
>
> Thanks!
>
> -Nate
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20171211/8dd909d3/attachment-0001.html>
More information about the Users
mailing list