[SR-Users] ds_is_from_list and NAPTR / SRV

Björn Bylander Bjorn.Bylander at loxysoft.com
Wed Jan 18 21:46:08 CET 2017


Hello,

I’m trying to resolve an issue with the ds_is_from_list function from the dispatcher module.
I’m calling it as follows:

ds_is_from_list(”42”, "3", "sip:sip.foo.bar”)

This makes Kamailio log an error:

ERROR: dispatcher [dispatch.c:2327]: ds_is_addr_from_list(): could not resolve sip.foo.bar

sip.foo.bar doesn’t have any A records but there are NAPTR and SRV records:

$ host -t naptr sip.foo.bar
sip.foo.bar has NAPTR record 20 0 "s" "SIP+D2T" "" _sip._tcp.sip.foo.bar.
sip.foo.bar has NAPTR record 10 0 "s" "SIP+D2U" "" _sip._udp.sip.foo.bar.

$ host -t srv _sip._tcp.sip.foo.bar
_sip._tcp.sip.foo.bar has SRV record 10 0 5060 sip1.foo.bar.
_sip._tcp.sip.foo.bar has SRV record 10 0 5060 sip2.foo.bar.

$ host -t srv _sip._udp.sip.foo.bar
_sip._udp.sip.foo.bar has SRV record 10 0 5060 sip2.foo.bar.
_sip._udp.sip.foo.bar has SRV record 10 0 5060 sip1.foo.bar.

$ host sip1.foo.bar.
sip1.foo.bar has address 10.47.11.1

$ host sip2.foo.bar.
sip2.foo.bar has address 10.47.11.2

The following DNS options are set:

dns_srv_lb = yes
dns_try_naptr = yes
dns_naptr_ignore_rfc = no

The Kamailio version is 4.2.8 (installed from the Debian binary package) on Debian Wheezy.

Shouldn’t ds_is_from_list be able to resolve the NAPTR and SRV records? Can I change anything to be able to use ds_is_from_list with the specified domain?

Thanks,
Björn Bylander



More information about the sr-users mailing list