Hello Anthony, 
Topos module is what you need 
It saves the informations in a db (I suggest using redis for performance) and uses the contact header as a key for restoring datas.

Paolo


Il giorno gio 1 set 2022 alle 11:00 Anthony Blandin <anthony.blandin@airnity.com> ha scritto:
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

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

Paolo Visintin

evoseed s.r.l.

 
  phone:  +39 346 09 86 641
     mail:  paolo.visintin@evoseed.io
      site:  evoseed.io
address:  Via Lucrezio 13, Trieste Italy