[SR-Users] Kamailio Multi IP

Sergey Safarov s.safarov at gmail.com
Tue Dec 5 19:02:55 CET 2017


Please look mhomed
<https://www.kamailio.org/wiki/cookbooks/5.1.x/core#mhomed> config param
and topos <https://kamailio.org/docs/modules/5.1.x/modules/topos.html>
module.


вт, 5 дек. 2017 г. в 20:47, Duarte Rocha <duarterocha91 at gmail.com>:

> Greetings,
>
> I have a Kamailio that is hosted on multiple IP's. Each client connects to
> an IP and there is another IP that communicates with the PSTN.
>
> The problem is that I don't want any client "seeing" any IP besides his.
> If the client (connected to kamailio's IP 1.1.1.1) receives an request
> coming from the PSTN (connected to Kamailio's IP 2.2.2.2) , it will have
> 2.2.2.2 on the R-URI, To Header,etc.
>
> Is there a method to ensure kamailio will manipulate the packet and use
> the correct IP ? Currently i'm directly changing the R-URI and To Header,
> but I don't if it's the correct approach to this.
>
> I would also like to know the best way to do those changes right before
> the packet leaves Kamailio. I know that OnSend route doesn't allow changes
> in the buffer. I tried Branch routes but not every request goes through
> that.
>
> Thanks for the help.
>
> Cheers.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171205/1fdee553/attachment.html>


More information about the sr-users mailing list