Hi,
since this is still unanswered:
On Wed, Sep 13, 2017 at 11:01 AM, eskornev <eskornev(a)gmail.com> wrote:
Trying to set Kamailio as proxy in front of Asterisk.
When natted user registers is remembered in Kamailio via save("location").
Kamailio forwards Register to * with new contact field (pointing to Kamailio).
But when server originates Invite to user, kamailio transfer
request to "fake" address that was in original Register contact field (getting
it from lookup("location")).
How can i set Kamailio to send Invite to source ip and port of user?
You probably have to do some NAT handling before saving the location.
Especially
this should help you:
http://www.kamailio.net/docs/modules/5.0.x/modules/nathelper.html#nathelper…
HTH
Sebastian