Difference between revisions of "M4 Header Transformation Rules Groups"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 42: Line 42:
= User-Agent header =
= User-Agent header =


User-Agent header can be changed in the system configuration file. Please contact support to change this header.
[[M4_User-Agent|User-Agent]] header can be changed in the system configuration file. Please contact support to change this header.


<br><br>
<br><br>
= See also =
= See also =
* [[M4 Regexp Examples]]
* [[M4 Regexp Examples]]

Revision as of 10:08, 30 January 2024

About

Header Transformation Rules are used to modify or add headers.

Header Transformation Rules are available in the Routing section.

M4 routing header transformation rules.png



Create

Press ADD NEW to create Header Transformation Rules Group.

M4 header transformation rules add new.png

The image below shows which headers are possible to modify.
M4 header transformation rules.png

Depending on the header, it is possible to:

  • Forward without changes - no changes to headers.
  • Transform and forward - modify the current header.
  • Transform existing, generate if missing - modify the current header if it exists. If it does not exist, a header will be generated.
  • Overwrite - drop the original header if it exists and create a new one.
  • Drop - removes the header.

It is also possible to add a custom header to the empty header field.



Enable

When rules are created, they should be enabled at Termination Point settings: Termination Point Signaling Settings
Termination point rules settings.png



Format

Kamailio Transformations are used to modify headers. More information here



User-Agent header

User-Agent header can be changed in the system configuration file. Please contact support to change this header.



See also