<div dir="ltr">Hello guys,<div><br></div><div>I have a setup like this:</div><div><br></div><div>FS(private)-->(private)Kamailio1(Public)-->Kamailio2(public)-->provider.</div><div><br></div><div>I have mhomed=0, enable_double_rr=1, I'm listening on 2 different ports, 1 private, 1 public (with advertise) and on Kamailio1 the DISPATCH ROUTE I force the socket</div><div><br></div><div><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">$</span><span class="gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">fs</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"> = </span><span class="gmail-pl-s" style="box-sizing:border-box;color:rgb(3,47,98);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"><span class="gmail-pl-pds" style="box-sizing:border-box">"</span>LISTEN_PRIVATE_PROTO:LISTEN_PRIVATE_IF:5080<span class="gmail-pl-pds" style="box-sizing:border-box">"</span></span><span class="gmail-pl-c" style="box-sizing:border-box;color:rgb(106,115,125);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre"><span class="gmail-pl-c" style="box-sizing:border-box">;</span></span><br></div><div><br></div><div>To the private ip when the destination IP is a private IP.</div><div><br></div><div>This all works fine.</div><div><br></div><div>But When calling OUT (i.e. public) kamailio adds itself only for the private IP:</div><div><br></div><div><font face="monospace"><b>INVITE <a href="mailto:sip%3A12345678@mydmain.com">sip:12345678@mydmain.com</a> SIP/2.0<br>Record-Route: <sip:172.31.25.124:5080;lr;did=9da.3a61;nat=yes><br>Via: SIP/2.0/UDP 172.31.25.124:5080;branch=z9hG4bKf05e.979fd257ac7f288804ef146d12c1e0fb.0<br>Via: SIP/2.0/UDP 172.31.6.1:5080;received=172.31.6.1;rport=5080;branch=z9hG4bKQ3H8mgHaUjaBm</b></font><br></div><div><br></div><div>So when INFO messages come from the provider to kamailio2, kamailio 2 tries to send the INFO straight to "172.21.25.124".</div><div><br></div><div>Should i manually add a record-route when calling OUT with</div><div><br></div><div><pre class="gmail-programlisting" style="background-color:rgb(252,255,252);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt;overflow:auto;border-radius:2.5px;font-size:15px">record_route_advertised_address("<a href="http://1.2.3.4:5090">1.2.3.4:5090</a>");</pre></div><div><br></div><div>Or is there a better way of gettingĀ this working?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>