Forum Stats

  • 3,759,511 Users
  • 2,251,557 Discussions
  • 7,870,689 Comments

Discussions

How create an HMR to add Privacy depending on particular From

User_9ZLSB
User_9ZLSB Member Posts: 2 Green Ribbon

Good afternoon all,

i'm trying to implement an HMR that, depending on a particular from, add the privacy or not.

Actually i've this:

header-rule

        name                  addPrivacy_test

        header-name               Privacy

        action                 add

        comparison-type             case-sensitive

        msg-type                out-of-dialog

        methods                 INVITE

        match-value               

        new-value                user


With that rule applied at session-agent level, all the requests are translated using the Privacy header.

Should be possible to apply this rule depending on the From header (i.e. in case of the user part is [email protected] the privacy is added, but in case the user part is [email protected] the privacy is ot added)?

Many thanks...

Sand