<div dir="ltr"><i>>
you can set only one contact address</i><br><div><br></div><div>Recent versions of Kamailio support setting Contact address per uac record, see <i>contact_addr</i> field.</div><div><br></div><div>Regards,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 11:15 AM Tihomir Culjaga <<a href="mailto:tculjaga@gmail.com">tculjaga@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">Hi all <div><br></div><div><br></div><div>I'm wondering what is best practice to configure kamailio for a setup shown below. Carriers only support interconnection over a private network so I need to terminate every separate network on kamailio machine (and on RTPEngine) . That will turn very quickly into an administration nightmare as we add more and more carriers.</div><div>My plan is to terminate carrier private networks on a router and NAT the traffic to kamailio where it leads me to a kamailio behind NAT setup. Well, in theory set_advertised_address and set_advertised_port per message can do the trick... at least I hope.<br><div>Also, some carriers require a SIP registration to activate SIP trunks. I do that using UAC module (remote registration) but here again I got a problem with contact address as you can set only one contact address (modparam("uac", "reg_contact_addr", "<a href="http://10.1.1.11:5060" target="_blank">10.1.1.11:5060</a>")). </div><div><br><font face="monospace"> /--RTP 10000-19999-- RTPEngine1 -----RTP------+-- IPPBX1<br>carrier1 --- NAT ---| | |<br> | | |<br>carrier2 --- NAT ---+-----SIP 5060------ kamailio ----SIP---- Dispatcher<br> | | |<br>carrier3 --- NAT ---| | |<br> \--RTP 20000-29999-- RTPEngine2 -----RTP------+-- IPPBX2</font><br></div><div><br></div><div><br></div><div>So bottom line, I'm wondering what would be the best practice for such a scenario ?</div><div>That would spare me from hitting many pitfalls.</div><div><br></div><div>Would really appreciate a hint.</div><div><br></div><div>Regards,</div><div>Tihomir.</div><div><br></div><div><br></div><div><br></div></div></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<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>