Hello,

 

already investigated the topology hiding modules (topos, topoh)? They might be not doing exactly what you are describing, but usually are used for this kind of scenarios.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Anthony Blandin
Sent: Thursday, September 1, 2022 10:58 AM
To: sr-users@lists.kamailio.org
Subject: [SR-Users] How to hide Via and Record-Route header to external network and restore them to internal network?

 

Hi Community,

 

I have set up a SBC with Kamailio.

I am testing voice call from external network to my network and voice call from my network to external network.

When I send SIP messages to external network, I want to hide Via and Record-Route headers but when I receive replies from the external network I want to restore these Via and Record-Route headers to my network.

How to store and restore these headers in Kamailio configuration ?

Could you help on this?

Thanks

 

Anthony Blandin