Hello Slava,
On 03/28/2015 02:26 PM, Slava Bendersky wrote:
How is possible add to Contact: received=ip ? Is this should be handled by fix_nated_contact()
This is not the function of fix_nated_contact(). Have a look at a add_rcv_param():
http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.ad...
Someone might correct me if I'm wrong, but I believe the problem with the ;received approach is that it's only useful for registrations, since only the registrar module has a provision that allows it to be used automatically. So, for larger applications outside of registration, you should take a look at the new add_contact_alias() / handle_ruri_alias() facility:
http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.ad...
http://kamailio.org/docs/modules/4.2.x/modules/nathelper.html#nathelper.f.ha...
-- Alex