<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">It seems to me you should look at the “advertise” parameter to the core “listen” directive:<div><br></div><div><a href="https://www.kamailio.org/wiki/cookbooks/5.5.x/core?s%5B%5D=advertise#listen">https://www.kamailio.org/wiki/cookbooks/5.5.x/core?s%5B%5D=advertise#listen</a><br><div><br><div dir="ltr">—<div>Sent from mobile, with due apologies for brevity and errors.</div></div><div dir="ltr"><br><blockquote type="cite">On Oct 5, 2021, at 1:20 PM, Voip support <voipexpert0@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Dear Community, <div><br></div><div>I have a need of communicating with other servers using private IP with private IP in Via and SDP connection information but at same time sometime need connect to public IP SIP server and on outgoing INVITE's i need advertise public IP in Record-Route and SDP Connection information.</div><div><br></div><div>Currently if i work on listen=udp:privateip:5060 i get working the LAN part but cannot work over internet (no audio) but when i add advertise i get SDP public IP also over local network.</div><div><br></div><div>Is it possible to solve this case using one NIC adapter?<br>I am using RTPProxy.<br><br>Please help me out. I tried to add second network adapter with advertise and mhomed=1 something started to work but i think i would need work on the call direction and different rtpproxy_manage handling on outside INVITEs and incoming 200 OK responses.</div><div><br></div><div>I am not sure if this is  the right way to do it - maybe there is some easier method of achieving what i need using one interface ?</div><div><br></div><div>Best regards,</div><div>Tom</div></div>
<span>__________________________________________________________</span><br><span>Kamailio - Users Mailing List - Non Commercial Discussions</span><br><span>  * sr-users@lists.kamailio.org</span><br><span>Important: keep the mailing list in the recipients, do not reply only to the sender!</span><br><span>Edit mailing list options or unsubscribe:</span><br><span>  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</span><br></div></blockquote></div></div></body></html>