[SR-Users] NAPTR priorities doesn't seem to work properly

Klaus Darilion klaus.mailinglists at pernau.at
Fri Jun 10 15:14:17 CEST 2011


Kamailio performs NAPTR lookups, but chooses UDP. I do not know why.


# kamailio -V
version: kamailio 3.1.3 (i386/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
USE_STUN, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP,
PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 14:01:24 May 13 2011 with gcc 4.3.2


# tail -f /var/log/kamailio|grep dns

<core> [dns_cache.c:567]: dns_hash_find(oversip.net(11), 35), h=956
<core> [dns_cache.c:1777]: dns_get_related(0xb3921838 (oversip.net, 35),
35, *0x8366a5c) (0)
<core> [dns_cache.c:870]: dns_cache_add: adding oversip.net(11) 35
(flags=0) at 956
<core> [dns_cache.c:567]: dns_hash_find(_sip._udp.oversip.net(21), 33), h=23
<core> [dns_cache.c:1777]: dns_get_related(0xb3921a08
(_sip._udp.oversip.net, 33), 33, *0x8366a5c) (0)
<core> [dns_cache.c:870]: dns_cache_add: adding
_sip._udp.oversip.net(21) 33 (flags=0) at 23
<core> [dns_cache.c:870]: dns_cache_add: adding sip.oversip.net(15) 1
(flags=0) at 400
<core> [dns_cache.c:567]: dns_hash_find(sip.oversip.net(15), 1), h=400


# tshark host 83.136.32.159 or port 53
A -> B TCP 4923 > sip [SYN] Seq=0 Win=65535 Len=0 MSS=1460 WS=3
B -> A TCP sip > 4923 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 WS=6
A -> B TCP 4923 > sip [ACK] Seq=1 Ack=1 Win=415024 Len=0
A -> B SIP/SDP Request: INVITE sip:anything at oversip.net, with session
description
B -> A TCP sip > 4923 [ACK] Seq=1 Ack=867 Win=8768 Len=0
B -> A SIP Status: 407 Proxy Authentication Required
A -> B SIP Request: ACK sip:anything at oversip.net
B -> A TCP sip > 4923 [ACK] Seq=676 Ack=1239 Win=10496 Len=0
A -> B SIP/SDP Request: INVITE sip:anything at oversip.net, with session
description
B -> A TCP sip > 4923 [ACK] Seq=676 Ack=2310 Win=13440 Len=0
B -> A SIP Status: 100 your wish is my command,
ru=sip:anything at oversip.net, du=<null>
C -> D DNS Standard query NAPTR oversip.net
D -> C DNS Standard query response NAPTR 20 50 S NAPTR 40 50 S NAPTR 50
50 S NAPTR 5 50 S NAPTR 10 50 S
C -> D DNS Standard query SRV _sip._udp.oversip.net
D -> C DNS Standard query response SRV 0 0 9090 sip.oversip.net
B -> D SIP/SDP Request: INVITE sip:anything at oversip.net, with session
description
D -> B SIP Status: 555 Ok, I'm here, your request arrives via UDP
B -> D SIP Request: ACK sip:anything at oversip.net
B -> A SIP Status: 555 Ok, I'm here, your request arrives via UDP
A -> B TCP 4923 > sip [ACK] Seq=2310 Ack=1682 Win=415024 Len=0
A -> B SIP Request: ACK sip:anything at oversip.net
B -> A TCP sip > 4923 [ACK] Seq=1682 Ack=2662 Win=15616 Len=0











Am 10.06.2011 14:30, schrieb Iñaki Baz Castillo:
> 2011/6/10 Iñaki Baz Castillo <ibc at aliax.net>:
>> With your exact configuration, my kamailio 3.2.0-dev5 (debian package)
>> does not perform NAPTR :(
> 
> Klaus, could you provide me the following information?
> 
> 
> 1) kamailio -V
> 
> 2) Is compiled? a deb package?
> 
> 3) Could you please call sip:anything at oversip.net and show me kamailio
> logs by filtering "dns" ( grep | dns ) ?
> 
> 
> Really thanks a lot.
> 



More information about the sr-users mailing list