Hi Daniel,
I'm already adding a Path header and my PBX sends correctly to Kamailio.
However, Kamailio tries to send to the RFC1918 IP address.
I tried replacing `add_path()` with `add_path_received()` but that had
no effect.
I'll try with `add_contact_alias` and `handle_ruri_alias`. I'll see how
it will go.
Thanks,
Iskren
On 05/05/17 16:42, Daniel Tryba wrote:
On Fri, May 05, 2017 at 03:56:10PM +0100, Iskren
Hadzhinedev wrote:
However, when a call comes from PSTN to the
client, kamailio sends the
INVITE to the client's RFC1918 IP and I can't figure out how to send it to
the correct destination. I tried loading the registrar and usrloc modules
and used save("location") during REGISTER and lookup("location") just
before
loose_route(), but the end result was that kamailio replied to REGISTERs
with any username/password with a 200 OK and the endpoints never registered
with the PBX.
If the PBX support Path, add the headers to the REGISTER in
kamailio.
Else you have to mangle the contact header before relaying
(add_contact_alias) and use that in INVITEs to the client (handle_ruri_alias)
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users