You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kamailio-config-tests/scenarios/invite_hm_peerout/header.yml

151 lines
3.3 KiB

---
hm_invite_hm_peerout_00:
header_rules:
- data:
direction: inbound
description: Empty Manipulation
name: hm_invite_hm_peerout_00_00
stopper: 0
enabled: 0
priority: 48
conditions: []
actions: []
- data:
direction: inbound
description: Add TestTest Header
name: hm_invite_hm_peerout_00_01
stopper: 0
enabled: 1
priority: 50
conditions:
- enabled: 1
match_name: From
match_part: username
match_type: header
expression: contains
expression_negation: 0
value_type: input
values:
- value: testuser1002
rwr_set_id:
actions:
- enabled: 1
action_type: add
header: TestTest
header_part: full
value: new_internal_header
value_part: full
rwr_set_id:
- data:
direction: local
description: Edit TestTest Local Header
name: hm_invite_hm_peerout_00_02
stopper: 0
enabled: 1
priority: 51
conditions:
- enabled: 1
match_name: TestTest
match_part: full
match_type: header
expression: is
expression_negation: 0
value_type: input
values:
- value: new_internal_header
rwr_set_id:
actions:
- enabled: 1
action_type: set
header: TestTest
header_part: full
value: updated_local_header
value_part: full
rwr_set_id:
- data:
direction: peer
description: Edit TestTest Peer Header
name: hm_invite_hm_peerout_00_03
stopper: 0
enabled: 1
priority: 52
conditions:
- enabled: 1
match_name: TestTest
match_part: full
match_type: header
expression: regexp
expression_negation: 0
value_type: input
values:
- value: '^new[\w]+$'
rwr_set_id:
actions:
- enabled: 1
action_type: remove
header: TestTest
header_part: full
value:
value_part: full
rwr_set_id:
hm_invite_hm_peerout_01:
header_rules:
- data:
direction: outbound
description: Add OutboundHeader as AVP
name: hm_invite_hm_peerout_01_00
stopper: 1
enabled: 1
priority: 60
conditions:
- enabled: 1
match_name: To
match_part: full
match_type: header
expression: is
expression_negation: 0
value_type: input
values:
- value: '<sip:004321001@invite-hm-peerout.scenarios.test>'
rwr_set_id:
actions:
- enabled: 1
action_type: add
header: OutboundHeader
header_part: full
value: '$avp(s:caller_cli_userprov)'
value_part: full
rwr_set_id:
- data:
direction: outbound
description: Should not be executed
name: hm_invite_hm_peerout_01_01
stopper: 0
enabled: 1
priority: 61
conditions:
- enabled: 1
match_name: To
match_part: full
match_type: header
expression: regexp
expression_negation: 0
value_type: input
values:
- value: '.*'
rwr_set_id:
actions:
- enabled: 1
action_type: remove
header: From
header_part: full
value:
value_part: full
rwr_set_id:
- enabled: 1
action_type: remove
header: To
header_part: full
value:
value_part: full
rwr_set_id: