<html><head><title>Kamailio Asterisk Retransmitting problem</title>
<META http-equiv=Content-Type content="text/html; charset=windows-1257">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Hello,<br>
<br>
Could you please help me correctly to configure Kamailio with load balancing between two asterisk servers and topology hidding with topoh module.<br>
In attach sip trace from kamailio and my config.<br>
<br>
Currently my problem is that after call UP on Asterisk side, Asterisk send 10 times Retransmitting to <br>
<-------------><br>
Retransmitting #5 (no NAT) to 37.148.171.162:5060:<br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP 37.148.171.162;branch=z9hG4bKf534.157d7d1321019895cc6ba367dd3ae94c.0;received=37.148.171.162<br>
Via: SIP/2.0/UDP 37.148.171.162;branch=z9hG4bKsr-mDYdVEts1x8-yJc91MhEVMtOVMhC6pni1uai1uSAQiytLvyKkMqHB5JsSg98PMYayEyHzESE1gdA6E9C<br>
From: "testaccount" <sip:37125511039@213.21.197.50>;tag=as7abbf1f1<br>
To: <sip:100@37.148.171.162:5060>;tag=as143173ac<br>
Call-ID: !!:1MeMfMhpfGtgfo6MQu6HfMNH1v-515SC1omDQocT1Efc1MhEVMtOVMhC6pni1uai1uSA<br>
CSeq: 102 INVITE<br>
Server: Asterisk PBX GIT-master-c83a44c<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br>
Supported: replaces, timer<br>
Session-Expires: 1800;refresher=uas<br>
Contact: <sip:100@37.148.171.164:5060><br>
Content-Type: application/sdp<br>
Require: timer<br>
Content-Length: 267<br>
<br>
v=0<br>
o=root 1502512559 1502512559 IN IP4 37.148.171.164<br>
s=Asterisk PBX GIT-master-c83a44c<br>
c=IN IP4 37.148.171.164<br>
t=0 0<br>
m=audio 19658 RTP/AVP 8 101<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=ptime:20<br>
a=maxptime:150<br>
a=sendrecv<br>
<br>
And no ACK answer from Kamailio. After 32 sec call drops.<br>
<br>
I have call flow: Provider 213.21.197.50 -> Kamailio 37.148.171.162 -> Asterisk 37.148.171.163.<br>
<br>
kamailio -v<br>
version: kamailio 5.2.0 (x86_64/linux) 535e13<br>
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, 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_BLACKLIST, HAVE_RESOLV_RES<br>
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<br>
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>
id: 535e13<br>
compiled on 01:27:51 Dec 16 2018 with gcc 4.8.5<br>
<br>
On Asterisk side I have config<br>
<br>
[general]<br>
language=en<br>
maxexpirey=3600<br>
defaultexpirey=3600<br>
bindport=5060<br>
subscribecontext=lab<br>
allowsubscribe=yes<br>
limitonpeers=yes<br>
notifyringing=yes<br>
notifyhold=yes<br>
disallow=all<br>
alwaysauthreject=yes<br>
allowguest=no<br>
allow=alaw<br>
bindaddr=37.148.171.163<br>
t38pt_udptl=yes,redundancy<br>
faxdetect=yes<br>
directmedia=no<br>
rtptimeout=60<br>
rtpholdtimeout=300<br>
<br>
[kamailio]<br>
type=friend<br>
host=37.148.171.162<br>
port=5060<br>
nat=no<br>
qualify=no<br>
canreinvite=yes<br>
insecure=invite<br>
context=from-pstn<br>
;directmedia=yes<br>
<br>
Many thanks !<br>
<br>
BR,<br>
Alex<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<span style=" font-family:'arial'; font-size: 8pt; color: #c0c0c0;"><i>-- <br>
Best regards,<br>
Techinnovation </i></span></span><a style=" font-family:'arial';" href="mailto:techinnovation@inbox.lv">mailto:techinnovation@inbox.lv</a></body></html>