Hello,
im using kamaliio 5.5.3 and I want to do failedover routing with DNS SRV Records.
in my lab i have these SRV records
;; ANSWER SECTION:
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060
100-68-7-74.voip.oov-obs-tools-dev.svc.cluster.local.
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060
100-68-7-75.voip.oov-obs-tools-dev.svc.cluster.local.
voip.oov-obs-tools-dev.svc.cluster.local. 5 IN SRV 0 33 5060
100-68-7-76.voip.oov-obs-tools-dev.svc.cluster.local.
;; ADDITIONAL SECTION:
100-68-7-76.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.76
100-68-7-75.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.75
100-68-7-74.voip.oov-obs-tools-dev.svc.cluster.local. 5 IN A 100.68.7.74
my config script
use_dns_cache=on
use_dns_failover=on
dns_srv_lb=on
$du = "voip.oov-obs-tools-dev.svc.cluster.local";
t_relay();
after t_relay() is called the INVITE is send to one the 3 ips corresponding to fqdn but if
the first ip does not
send response. the two others ips are not tried.
what i want is that all the ips resolved are tried until one succeeds.
is there something to do to achieve that ?
do i need to interact with failure route to try next ips ?
Thanks for help.
version: kamailio 5.5.3 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST,
DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY,
USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535,
DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 10.2.1
Show replies by date
On 5/4/22 05:08, Patrick Karton wrote:
Hello,
[snip]
what i want is that all the ips resolved are tried until one succeeds.
is there something to do to achieve that ?
do i need to interact with failure route to try next ips ?
https://github.com/kamailio/kamailio/blob/master/doc/tutorials/dns.txt
The above link explains Kamailio's DNS handling as well as some of the
considerations with use_dns_failover, etc.
Fred Posner |
palner.com
o: +1 (212) 937-7844