[OpenSIPS-Users] Problem with fix_nated_contact

Bogdan-Andrei Iancu bogdan at opensips.org
Mon May 2 14:29:19 UTC 2022


Hi,

Are there any errors when the "fixing" is done? The presence of a param 
should not impact here.

Regards,
Bogdan

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS eBootcamp 23rd May - 3rd June 2022
   https://opensips.org/training/OpenSIPS_eBootcamp_2022/

On 4/29/22 1:43 PM, Yury Kirsanov wrote:
> Hi,
> I'm using OpenSIPS 3.2.4 and recently run into following issue:
>
> Imagine simplest proxy setup - OpenSIPS just accepts new packet, for 
> example INVITE, changes destination using 'sethostport(....)' and then 
> issues 't_relay()' to forward the packet. Let's ignore replies and so on.
>
> If I'm doing a 'fix_nated_contact()' before sending this packet I'm 
> expecting Contact: field to be replaced with a source IP:port as per 
> manual. And this works if the Contact is in simple form like 
> 'sip:7777777 at 192.168.29.106:65033 
> <http://sip:7777777@192.168.29.106:65033>'.
>
> But if following Contact comes in OpenSIPS doesn't change it leaving 
> private IP in the contact:
>
> 'Contact: sip:7777777 at 192.168.29.106:65033;rinstance=2f59b175103f1088'
>
> Can you please let me know why is that happening? Thanks!
>
> Best regards,
> Yury.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220502/ef75a232/attachment.html>


More information about the Users mailing list