Example 3 - Manipulation on SDP:
• Manipulation required: To change the packet period in the SDP.
• Manipulation rule:
Table 42-11: Regex-based Message Manipulation Rules - Example 3
Index Condition Action Subject
Action
Type
Action Value
1 body.sdp regex (.*)(a=ptime:20)(.*) body.sdp Modify $1+'a=ptime:10'+$3
• Explanation: This rule matches everything up to the a=ptime in the SDP body as
$1, and stores as $3 everything after the 0 in the ptime attribute line. This is used
as the closing \r\n in the SDP body. The modify action then refers to the sub-
expressions $1 and $3, but does not make use of $2, instead replacing it with
a=ptime:10.
42.10 Enum Definitions
42.10.1 AgentRole
These ENUMs are applicable to the Server or User-Agent headers (see 'Server or User-
Agent' on page 428).
Table 42-12: Enum Agent Role
AgentRole Value
Client 1
Server 2
42.10.2 Event Package
These ENUMs are applicable to the Server or User-Agent (see 'Server or User-Agent' on
page 428) and Event (see 'Event' on page 411) headers.
Table 42-13: Enum Event Package
Package Value
TELEPHONY 1
REFER 2
REFRESH 3
LINE_STATUS 4
MESSAGE_SUMMARY 5
RTCPXR 6
SOFT_SYNC 7
CHECK_SYNC 8