<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Hello Daniel,</div>
<div> </div>
<div>Kamailio use only one socket. I will try the event_route[tm:local-request] and sent you an update.</div>
<div> </div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 18. Oktober 2019 um 08:43 Uhr<br/>
<b>Von:</b> "Daniel-Constantin Mierla" <miconda@gmail.com><br/>
<b>An:</b> "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>, "Hans-Jürgen Brand" <hans-juergen.brand@gmx.net><br/>
<b>Betreff:</b> Re: [SR-Users] need different Contact with the UAC modul.</div>
<div name="quoted-content">
<div style="background-color: rgb(255,255,255);">
<p>Hello,</p>
<div class="moz-cite-prefix">On 09.10.19 18:32, "Hans-Jürgen Brand" wrote:</div>
<blockquote>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Hello List,</div>
<div> </div>
<div>i use the uac modul with remote users in SQL db. </div>
<div>I have 2 users in this database. Kamailio is installed in private network (192.168.100.0/24). The first user in UAC tabel is a remote user on sip server in the same network. For that I have set up the UAS with modparam("uac", "reg_contact_addr", "192.168.100.xx:5060") and this works fine. The second user is a remote user on public network. Kamailio can be reached over Dyndns Name and NAT Router will forwared SIP on 5080 and RTP to RTPENGINE. Registration works, but the public SIP Server get a wrong CONTACT Header. If I change the modparam("uac", "reg_contact_addr", "mySipServer:5080") the external user works fine, but the internal is not working. </div>
<div>Can I change the Contact Header before Kamailio send out the Register? or can I set diffrent modparam("uac", "reg_contact_addr",....)</div>
</div>
</blockquote>
<p>Is Kamailio listening on two sockets and you have uacreg records with the socket field set? Maybe the module can be extended to use the socket field to build the Contact address, or just add a new field in database table to hold the contact host, port and protocol (user part will be filled by the module in the code).</p>
<p>For now, like Henning said, try to update the contact header in event_route[tm:local-request].</p>
<p>Cheers,<br/>
Daniel</p>
<pre class="moz-signature">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- <a class="moz-txt-link-freetext" href="https://asipto.com/u/kat" target="_blank">https://asipto.com/u/kat</a></pre>
</div>
</div>
</div>
</div>
</div></div></body></html>