Configure Header and Parameter Mapping

Use the steps below to configure SIP and HTTP header and parameter mapping within your STIR/SHAKEN deployment.

You configure this feature by creating a sti-header-mapping-ruleset within the session-router element and applying your ruleset name to the sti-header-mapping-ruleset-name parameter within the sti-config or a sti-server element.
This is a subset of overall STIR/SHAKE configuration.
  1. Navigate to the sti-header-mapping-ruleset.
    ORACLE# configure terminal
    ORACLE#(config)session-router
    ORACLE(session-router)#sti-header-mapping-ruleset
    ORACLE(sti-header-mapping-ruleset)#
    target-header P-Origination-Id[0]
  2. Name your ruleset.
    ORACLE(sti-header-mapping-ruleset)# name MyRuleset
  3. Navigate to the mapping rules.
    ORACLE(sti-header-mapping-ruleset)# mapping-rules
    ORACLE(mapping-rules)# 
  4. id—Enter a unique identifier for the rule, allowing the execution of multiple rules from a single mapping-rules element.
    ORACLEORACLE(mapping-rules)# id My1stRule
  5. source-header—Enter the name of the source header. This could be a SIP header or an HTTP header.
  6. source-param—Enter the case insensitive name of the source parameter. This could be a SIP parameter or an HTTP parameter.
    If the source-header is null and the direction is inbound, the system identifies this value as a key from the key-value pair from the HTTP Body JSON claim.
  7. target-header—Enter the name of the target header. This could be a SIP header or an HTTP header.
  8. target-param—Enter the case insensitive name of the target parameter. This could be a SIP parameter or an HTTP parameter.
    If the target-header is null and the direction is inbound, the system uses this value as a key from the HTTP body JSON claim.
  9. direction—Choose the direction of the translation. Values include:
    • outbound— Map headers from the SBC to an external STI server (SIP to HTTP).
    • inbound—Map headers received from an external STI server to the SBC (HTTP to SIP).
  10. role—Enter the type of operation the system is performing, including STI-AS or STI-VS
  11. Execute the Done command, then save and activate your configuration.