Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee
I have this set up of kamailio with 2 interfaces.
i use topos module for topology hiding and what i want to do is to send external_IP in Contact Header of request relayed to Callee and internal_IP in Contact Header of response relayed to Caller.
i noticed that : when i use topos module with contact_mode to 0 all Record-Route and Caller Via Header are removed and thats great. but i dont find way to put 2 different ip addresses in Request and Response Contact Header?
when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore removed thats bad for topology hiding. And its seems we can not use $xavu(_tps_=>contact_host) parameter of module to put 2 different ip addresses in Request and Response Contact Header.
What i want is :
- remove all Record-Route and Caller Via Header for request like when contact_mode to 0
- and put 2 different ip addresses in Request and Response Contact Header
is it possible to achieve it ?
Thanks.
Hi,
I recently looked into this and I don't believe it's possible.
As a work around I used split DNS and an FQDN in the contact.
Thanks Matthew
On Fri, Mar 18, 2022 at 8:44 AM Patrick Karton patrickarton@hotmail.com wrote:
Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee
I have this set up of kamailio with 2 interfaces.
i use topos module for topology hiding and what i want to do is to send external_IP in Contact Header of request relayed to Callee and internal_IP in Contact Header of response relayed to Caller.
i noticed that : when i use topos module with contact_mode to 0 all Record-Route and Caller Via Header are removed and thats great. but i dont find way to put 2 different ip addresses in Request and Response Contact Header?
when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore removed thats bad for topology hiding. And its seems we can not use $xavu(_tps_=>contact_host) parameter of module to put 2 different ip addresses in Request and Response Contact Header.
What i want is :
- remove all Record-Route and Caller Via Header for request like when
contact_mode to 0
- and put 2 different ip addresses in Request and Response Contact Header
is it possible to achieve it ?
Thanks. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
Thanks,
I finally made it work.
i only needed to remove contact_host param so that the Contact headers for Caller and Callee are taken from Record-Route. ________________________________ De : sr-users sr-users-bounces@lists.kamailio.org de la part de Marrold kamailio@marrold.co.uk Envoyé : vendredi 18 mars 2022 10:42 À : Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org Objet : Re: [SR-Users] help to configure topos module configuration
Hi,
I recently looked into this and I don't believe it's possible.
As a work around I used split DNS and an FQDN in the contact.
Thanks Matthew
On Fri, Mar 18, 2022 at 8:44 AM Patrick Karton <patrickarton@hotmail.commailto:patrickarton@hotmail.com> wrote:
Caller <--> (internal_IP) Kamailio (external_IP) <---> Callee
I have this set up of kamailio with 2 interfaces.
i use topos module for topology hiding and what i want to do is to send external_IP in Contact Header of request relayed to Callee and internal_IP in Contact Header of response relayed to Caller.
i noticed that : when i use topos module with contact_mode to 0 all Record-Route and Caller Via Header are removed and thats great. but i dont find way to put 2 different ip addresses in Request and Response Contact Header?
when i use contact_mode to 2 Record-Route and Caller Via Header are not anymore removed thats bad for topology hiding. And its seems we can not use $xavu(_tps_=>contact_host) parameter of module to put 2 different ip addresses in Request and Response Contact Header.
What i want is :
- remove all Record-Route and Caller Via Header for request like when contact_mode to 0
- and put 2 different ip addresses in Request and Response Contact Header
is it possible to achieve it ?
Thanks. __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions * sr-users@lists.kamailio.orgmailto:sr-users@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users