This is my first time using opensips, so am probably missing something obvious.
I am trying to use opensips and mid_registrar in front of freeswitch. The opensips is behind a NAT so I am setting the advertised_address to my public IP. The registrations work Ok, but an invite goes through the auth required but the ACK from the client is not routed back to the freeswitch server, instead going to the public interface.
I am using a modified version of the sample for the mid_registrar tutorial, mainly changes for 3.3 as the script is for 2.x.
It seems that the loose_route() is returning true but the $du is not being modified. If I hack to set the $du for both ACK and BYE to the freeswitch ip then the call completes Ok (still have rtp issues, but that comes next).
In the attached https://pastebin.com/Pz3anhYb
it all goes a bit pear shaped at 2022/11/28 12:17:42.170560
In the attached https://pastebin.com/siCZDEt2
if I enable line 142 to modify $du it gets one step further.
I am familiar with SIP but not at this level.
(sorry can't seem to add file links without making then code)