<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,<br>
</p>
<div class="moz-cite-prefix">On 09.10.19 18:32, "Hans-Jürgen Brand"
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:trinity-f48c8e67-6bab-4c9e-8a46-f81417896c4b-1570638722977@3c-app-gmx-bs37">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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",....) <br>
</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<br>
</p>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">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">https://asipto.com/u/kat</a></pre>
</body>
</html>