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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to