Headers manipulations are per transaction so yes you Will Always need to filter them in a  branch route 



Le 21 mars 2024 15:54, Benoit Panizzon via sr-users <sr-users@lists.kamailio.org> a écrit :

Hi List

I am just wondering...

When I am sending the initial INVITE to a customer CPE, this goes
throug the whole location lookup and through a branch route in which I
make some last adjustments to the headers, like removing header the
customer shall not get (like P-Asserted-Identity which would reveal the
caller identity on a callerid restricted call).

On a Re-Invite (session timer refresh) the call is being routed by
loose_route() and immediately sent to RELAY.

uac_replace and uac_restore seem to work fine for stuff like To and
From Header. But how do I prevent unwanted header to disclose
information to the customer which should ne be disclosed?

Do I need to re-arm the branch trigger also for within dialog calls?

Mit freundlichen Grüssen

-Benoît Panizzon-
--
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe: