SBC session border controllers 59
Modification rules
Modification rules are described by symbols:
– $ — leave the following text;
– ! — remove the following text;
– +(ABC) — add the specified text;
– -(ABC) — remove the specified text.
Examples of operation rules implementation are shown in the Table below.
Table 19 — Examples of operation rules implementation
[sipheader:accept=disable]
Pass the header
from the first
leg unchanged
Additional headers on the
first leg:
P-Asserted-Identity:
username@domain
Subject: Test call
[sipheader:[MESSAGE_LIST]:
[HEADER_MASK]=transit]
[sipheader:[HEADER_MASK]=transit]
In INVITE and 200 messages:
[sipheader:INVITE,200:Subject=transit]
In any messages:
[sipheader:Subject=transit]
The specified header appears
on the second leg:
Subject: Test call
Pass the header
group from the
first leg
unchanged
Additional headers on the
first leg:
P-Asserted-Identity:
sip:username@domain
P-Called-Party-ID:
sip:username@domain
Privacy: id
Subject: Test call
[sipheader:P-*=transit]
Note that the following rule:
[sipheader:*=transit]
will not work as the * character can only
replace part of the name.
The specified headers appear
on the second leg:
P-Asserted-Identity:
sip:username@domain
P-Called-Party-ID:
sip:username@domain
[sipheader:insert[HEADER_LIST]:
RemoteIp=+(TEXT)]
In all requests:
[sipheader:insert:RemoteIp=+(example.S
BC)]
In INVITE request only:
[sipheader:insert,INVITE:RemoteIp=+( ex
ample.SBC)]
Only in specified requests (e.g., INVITE
and ACK):
[sipheader:insert,INVITE,ACK:RemoteIp=
+( example.SBC)]
Add text at the
beginning
[sipheader:accept=+(application/ISUP,)$
]
Accept:
application/ISUP,application/S
DP
[sipheader:accept=$+(,application/ISUP)
]
Accept:
application/SDP,application/IS
UP