Re: [reSIProcate-users] how to change destination IP?
Hi!
I don't want to modify outgoing request or change local connection parameters.
UA B sends INVITE to UA A and starts a dialog. UA B is behind a static NAT. UA A hangs up by sending BYE. It doesn't reach UA B because of bad Contact header (a private IP address behind NAT) in initial INVITE.
I found that remote target could be updated by calling setForceTarget() in DUM when sending BYE.
Is it possible to change remote target in app above DUM for all potencial requests (not just BYE) from UA A within dialog?
Another way could be setting the remote target when INVITE request is received from remote UA (B). This has been already done in Dialog.cxx with data from actual Contact header, but again I don't know how to set the remote target outside the DUM.
Thanks!
Regards,
Gordana