<div dir="ltr">Nope, its broken again. I am probably too stupid for this.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 27 sie 2019 o 23:12 przeqpiciel <<a href="mailto:przeqpiciel@gmail.com">przeqpiciel@gmail.com</a>> napisał(a):<br></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">Right now it works.<div>I added additional network card to my virtual kamailio, then put this NIC to asterisks network also i configured multiple listen and mhomed=1</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">wt., 27 sie 2019 o 20:54 Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>> napisał(a):<br></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="auto">I can see the temptation, but that’s actually looking at it backwards.<div><br></div><div>If you have multiple listeners, e.g.</div><div><br></div><div>listen=udp:x.x.x.x:5060</div><div>listen=udp:y.y.y.y:5060</div><div><br></div><div>or multiple listeners on the same interface with multiple ports, if it’s NAT’d AWS-style, e.g.</div><div><br><div><span style="background-color:rgba(255,255,255,0)">listen=udp:x.x.x.x:5060</span></div><div><span style="background-color:rgba(255,255,255,0)">listen=udp:x.x.x.x:5080 advertise “y.y.y.y:5080”</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><span style="background-color:rgba(255,255,255,0)">you can steer the traffic by manipulating the $fs pseudovar:</span></div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#fs_-_forced_socket" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.2.x/pseudovariables#fs_-_forced_socket</a></div><div><br></div><div>or, in the case of bridging between two disparate networks as formerly, just make use of automated outgoing interface discovery behaviour:</div><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/core#mhomed" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.2.x/core#mhomed</a></div><div><br></div><div>Assuming you have the ‘enable_double_rr’ parameter enabled, which you should:</div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.p.enable_double_rr" target="_blank">https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.p.enable_double_rr</a></div><div><br></div><div>you will find that the Record-Route headers automatically contain the correct ingress and egress listener addresses in the right directions at the right times, and you don’t need to do any byzantine management of their content. :-)</div><div><span style="background-color:rgba(255,255,255,0)"><br></span></div><div id="gmail-m_364559687321920199gmail-m_5734208923878414766AppleMailSignature" dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br>On Aug 27, 2019, at 9:43 AM, Sergiu Pojoga <<a href="mailto:pojogas@gmail.com" target="_blank">pojogas@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Do you have: mhomed=1 ?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 27, 2019 at 8:52 AM przeqpiciel <<a href="mailto:przeqpiciel@gmail.com" target="_blank">przeqpiciel@gmail.com</a>> wrote:<br></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">Thank you for the reply. It little help for me, Right now probably I have to make logic which change record route depends on it where Kamailio send packets internal / outside</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">pon., 26 sie 2019 o 22:21 Alex Balashov <<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>> napisał(a):<br></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="auto">Hi,<div><br></div><div>You may wish to have a look at the ‘advertise’ directive to the core listen= parameter:</div><div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.2.x/core#listen" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.2.x/core#listen</a></div><div><br></div><div>For more fine-grained control, record_route_preset() takes an argument:</div><div><br></div><div><a href="https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.f.record_route_preset" target="_blank">https://kamailio.org/docs/modules/5.2.x/modules/rr.html#rr.f.record_route_preset</a></div><div><br></div><div>But the first approach is better and more comprehensive for your situation, since it also covers Via.</div><div><br></div><div>— Alex<br><br><div id="gmail-m_364559687321920199gmail-m_5734208923878414766gmail-m_-4361860531668892794gmail-m_-5177169209075615769AppleMailSignature" dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br>On Aug 26, 2019, at 4:12 PM, przeqpiciel <<a href="mailto:przeqpiciel@gmail.com" target="_blank">przeqpiciel@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi,<div>I have some issue and dont have enought knowledge to fix it. I have simple infrastructure.</div><div>Internet -> router (NAT) -> kamailio</div><div> -> asterisk</div><div>Kamailio and Asterisk are inside the network and Kamailio places his own private address in the "record-route" headers instead of who's public. There is configuration to said to him what IP is proper ?</div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Kamailio (SER) - Users Mailing List</span><br><span><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></span><br><span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br></div></blockquote></div></div>_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
</blockquote></div>