[OpenSIPS-Users] fix_nated_contact() function for onreply saving

Sergey Pisanko serp87 at yandex.ru
Sun Apr 19 14:24:54 UTC 2026


Hello!
I try to use opensips 3.6.0 as a mid registrar without specific module. I
just relay the incoming REGISTER from client to Asterisk pbx and when
replying OK I do save("location") in onreply route. In this scenario
clients are behind NAT and I do fix_nated_contact() inside request route.
I know about mcontact avp for registrar module and use it. Opensips sees
this avp inside onreply route (xlog shows it). But original (gray) contact
is saved in location instead of fixed one. If, for example, I do
save("location") inside request route everything work well and nated
contact is saved. What I do wrong?

Best regards!
Serhii Pysanko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20260419/6b022f60/attachment.html>


More information about the Users mailing list