Using Message Conditions for Starting a SIPREC Session

You can start and stop the recording of calls (SIPREC) based on user-defined conditions. The condition is configured as a Message Condition rule in the Message Conditions table, which is then assigned to the SIP Recording rule in the SIP Recording Rules table. Only if the condition is met will the device start recording the call. The feature is typically configured using Message Condition rules together with Call Setup rules.

For this feature, you can use only the following keywords for the syntax of the Message Condition rule:

var.global
var.session.0
srctags/dsttags

For more information on using the above syntax for message manipulation, refer to the Syntax for SIP Message Manipulation Reference Guide.

The following procedure provides a SIP Recording configuration example for using a condition with the "srctags" keyword to start recording a call for IP Group "ITSP" if the incoming SIP message contains the header, "X-Record:yes".

To use conditions for SIPREC:
1. In the Call Setup Rules table (see Configuring Call Setup Rules), click New, and then configure a Call Setup rule with the following properties:
'Index': 0
'Rules Set ID': 1
'Condition': header.X-Record==’yes’
'Action Subject': srctags
'Action Type': Modify
'Action Value': 'record'
1. In the IP Groups table (see Configuring IP Groups), assign the Call Setup rule that you configured in the previous step to the IP Group that you want to record (i.e., the "Recorded IP Group"):
'Call Setup Rules Set ID': 1
2. In the Message Conditions table (see Configuring Message Condition Rules), click New, and then configure a Message Condition rule with the following properties:
'Index': 0
'Name': CallRec
'Condition': srctags == 'record'
3. In the SIP Recording Rules table, configure a SIP Recording rule as desired and assign it the Message Condition rule that you configured in the previous step:
'Recorded IP Group': ITSP
'Condition': CallRec