<HTML><BODY><p style='margin-top: 0px;' dir="ltr"><br>
Can you provide 100% working Kami config with correct NAT traversal and REINVITE please?<br>
--<br>
Отправлено из myMail для Android</p>
понедельник, 07 августа 2017г., 13:08 +03:00 от Sebastian Damm <a href="mailto:damm@sipgate.de">damm@sipgate.de</a>:<br><br><blockquote id="mail-app-auto-quote" style="border-left:1px solid #FC2C38; margin:0px 0px 0px 10px; padding:0px 0px 0px 10px;" cite="15021008910000000127">
        



    









        
        


        
        
        
        
        

        
        

        
        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div >
                <base target="_self" href="https://e-aj.my.com/" />
                
                        <div id="style_15021008910000000127_BODY">Hi,<br>
<br>
On Sat, Aug 5, 2017 at 7:00 PM, Yu Boot <<a href="mailto:yu@yu-boot.ru">yu@yu-boot.ru</a>> wrote:<br>
> Gotcha! I've added fix_nated_contact() to [NATDETECT] route and now all<br>
> messages UNTIL reinvite occurs are with correct NATed IP in "Contact" field.<br>
<br>
while fix_nated_contact() may work in your scenario, it is generally a<br>
"bad variant" to use. The set_contact_alias() method is much less<br>
invasive. Depending on the client, it could reject reINVITEs or other<br>
in-call messages (like BYE) because the contact header initially sent<br>
differs from the request URI of the incoming message.<br>
<br>
That's why set_contact_alias() only appends the real IP of the client,<br>
and handle_ruri_alias() takes care that the original contact is set<br>
correctly.<br>
<br>
As said, if it works in your environment, everything is fine. Just be<br>
careful if you don't know what devices will be talking to your<br>
service.<br>
<br>
BR<br>
Sebastian<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a><br>
<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><br>
</div>
                        
                
                <base target="_self" href="https://e-aj.my.com/" />
        </div>

        
</div>


</blockquote></BODY></HTML>