OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.28k stars 581 forks source link

feature, Permissions resolv dns #635

Open hydrosine opened 9 years ago

hydrosine commented 9 years ago

Hi,

I would like to be able to resolv dns names, (Be it A records or SRV) so i can feed then into check_address functions of permissions module.

If there already is a way to do this (especially resolv SRV to ip) This can be closed.

razvancrainea commented 9 years ago

Hi Rik!

Unfortunately this is not yet supported in the permissions module. Can you detail a bit about how you see this working? For an A record that's simple. But for a SRV record, would you like to try to resolve all available protocols? Or do a NAPTR query first? What about subnets?

Best regards, Răzvan

vladpaiu commented 9 years ago

Hello,

If you need full SIP resolution capabilities, take a look at the dispatcher module with it's ds_is_in_list() function.

Best Regards, Vlad

hydrosine commented 9 years ago

I'm looking for a way to match ip's and dns names against a known list and return some parameters if a hit is found. For ip's permissions is perfect, now i need the same for dns names. imho it would be nice to be able to resolve adresses. Another possibility would be to expand the permissions module to support dns names next to IP's. no resolving required then. @vladpaiu ds_is_in_list does also seem to only support ip's