Example of Call Variables for CDR Customization

This section provides an example of using a call variable to customize the Syslog SBC (signaling) CDR. The example includes the following:

Uses the call variable Var.Call.Src.UserDefined1 in a Message Manipulation rule to store the value of the SIP header "X-AccountNumber" received in a 200 OK response.
Customizes the SBC CDR format to add a CDR field titled "Account" whose value is obtained from the call variable, Var.Call.Src.UserDefined1 used in the Message Manipulation rule.
To customize CDR using a call variable:
1. In the Message Manipulations table (see Configuring SIP Message Manipulation), configure the following rule:
'Index': 0
'Name': Store X-AccountNumber header
'Manipulation Set ID': 0
'Message Type': Invite.Response.2xx
'Action Subject': Var.Call.Src.UserDefined1
'Action Type': Modify
' Action Value': Header.X-AccountNumber
2. In the SBC CDR Format table, configure the following rule:
'Index': 0
'CDR Type': Syslog SBC
'Field Type': Var Call User Defined 1
'Title': Account

The following shows an example of a received SIP 200 OK response message with the X-InContact-BusNo header:

SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.28.244.31:5060;branch=z9hG4bKac166782921
Contact: <sip:Stack@10.21.19.151:5060>
To: <sip:+18017155444@abc.com>;tag=87245f3d
From: "usera"<sip:usera@abc.com>;tag=1c1187059515
Call-ID: 628022773122202022133@172.28.244.31
CSeq: 1 INVITE
Session-Expires: 1200;refresher=uas
Content-Type: application/sdp
Supported: timer
X-AccountNumber: 87654321

The following shows the generated CDR:

  |Orig |Account|
|LCL |87654321 |