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@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users