<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks!<div class=""><br class=""></div><div class="">I figured it out.  It came to how we were implementing integration with FusionPBX.  We have a process that syncs the FusionPBX domains to the Kamailio domains module.  By default, one of the domains in FusionPBX is the default domain, which has the IP address of the physical server.  So, when calls are routed over to the FusionPBX (using the physical server ip) the loose_route function checks the domain module and thinks the record route (which contains the physical server address) belongs to the Kamailio Server.  Hence, causing the ACK loop.  So, we simply won’t sync the default domain over anymore, which fixes the problem.<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Sep 30, 2022, at 3:55 AM, Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com" class="">denys.pozniak@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hello!<div class=""><br class=""></div><div class="">I also met a similar case and I had to manually handle this behavior.<br class=""></div><div class="">It is likely that the loose_route() function has determined that you have a strict routing scenario.</div><div class="">But then, in theory, RURI should have its own domain, which is not visible in your trace.<br class=""><div class=""><br class=""></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 29 сент. 2022 г. в 14:40, Mack Hendricks <<a href="mailto:mack@dopensource.com" class="">mack@dopensource.com</a>>:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">Hey All,<div class=""><br class=""></div><div class="">I always struggle with loose_route() and I implemented workarounds in the past.  But, I want to get a better understanding.</div><div class=""><br class=""></div><div class="">I have a  SIP Endpoint -> Kamailio -> FreeSWITCH</div><div class=""><br class=""></div><div class="">The domain and alias is set to the ip address of the Kamailio server (137.184.130.206)</div><div class=""><br class=""></div><div class="">When I get the ACK back from the SIP Endpoint it looks like this</div><div class=""><br class=""></div><div class="">ACK <a href="sip:18889072085@137.184.72.42:5060;transport=udp" class="">sip:18889072085@137.184.72.42:5060;transport=udp</a> SIP/2.0<br class="">Via: SIP/2.0/UDP 10.1.10.140:1052;branch=z9hG4bK-524287-1---740db0025fa217ce;rport<br class="">Max-Forwards: 70<br class=""><b class="">Route: <<a href="sip:137.184.130.206;lr" class="">sip:137.184.130.206;lr</a>></b><br class="">Contact: <<a href="sip:1000@50.192.97.226:53790;transport=UDP" class="">sip:1000@50.192.97.226:53790;transport=UDP</a>><br class="">To: <<a href="mailto:sip%3A18889072085@dsiptest.dsiprouter.net" target="_blank" class="">sip:18889072085@dsiptest.dsiprouter.net</a>>;tag=5gv4etZ8tUUcH<br class="">From: <<a href="mailto:sip%3A1000@dsiptest.dsiprouter.net" target="_blank" class="">sip:1000@dsiptest.dsiprouter.net</a>;transport=UDP>;tag=0af5b751<br class="">Call-ID: fWido7VIUKIEI6f6kf4vkQ..<br class="">CSeq: 1 ACK<br class="">User-Agent: Z 5.5.8 v2.10.17.2<br class="">Content-Length: 0<br class=""></div><div class=""><br class=""></div><div class="">Kamailio will then remove the ACK and change the RURI to itself, which causes an ACK loop.  This is what is look like</div><div class=""><br class=""></div><div class=""><b class="">ACK <a href="sip:137.184.130.206;lr" class="">sip:137.184.130.206;lr</a></b> SIP/2.0<br class="">Via: SIP/2.0/UDP 137.184.130.206;branch=z9hG4bK3fd.0cf34b683f0627ee2455594ea6cb2517.0<br class="">Via: SIP/2.0/UDP 10.1.10.140:1052;received=50.192.97.226;branch=z9hG4bK-524287-1---740db0025fa217ce;rport=1052<br class="">Max-Forwards: 69<br class="">Contact: <<a href="sip:1000@50.192.97.226:1052;transport=UDP" class="">sip:1000@50.192.97.226:1052;transport=UDP</a>><br class="">To: <<a href="mailto:sip%3A18889072085@dsiptest.dsiprouter.net" target="_blank" class="">sip:18889072085@dsiptest.dsiprouter.net</a>>;tag=5gv4etZ8tUUcH<br class="">From: <<a href="mailto:sip%3A1000@dsiptest.dsiprouter.net" target="_blank" class="">sip:1000@dsiptest.dsiprouter.net</a>;transport=UDP>;tag=0af5b751<br class="">Call-ID: fWido7VIUKIEI6f6kf4vkQ..<br class="">CSeq: 1 ACK<br class="">User-Agent: Z 5.5.8 v2.10.17.2<br class="">Content-Length: 0<br class=""></div><div class=""><br class=""></div><div class=""><b class="">Question:</b></div><div class=""><br class=""></div><div class="">What am I missing here?  We have the alias set and we even set it in the domain module (with the register_myself flag).   We have workarounds for this, but I would prefer to figure out how to have Kamailio handle this natively via the loose_route or tm module.</div><div class=""><br class=""></div><div class="">Thanks in advance,</div><div class=""><br class=""></div></div>
__________________________________________________________<br class="">
Kamailio - Users Mailing List - Non Commercial Discussions<br class="">
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank" class="">sr-users@lists.kamailio.org</a><br class="">
Important: keep the mailing list in the recipients, do not reply only to the sender!<br class="">
Edit mailing list options or unsubscribe:<br class="">
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank" class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br class="">
</blockquote></div><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><br class=""><div class=""><div class="">BR,</div><div class="">Denys Pozniak<br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div></div></div>
__________________________________________________________<br class="">Kamailio - Users Mailing List - Non Commercial Discussions<br class="">  * <a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">Important: keep the mailing list in the recipients, do not reply only to the sender!<br class="">Edit mailing list options or unsubscribe:<br class="">  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br class=""></div></blockquote></div><br class=""></div></div></body></html>