CDR Customization using Call Variables Example

This section provides an example of customizing the CDR to include the 'Var Call User Defined <1-5>' field, whose value is obtained using call variables in Message Manipulation rules.

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 CDR format to add the CDR field "Var Call User Defined 1"', renames it "Account", and obtains its value from the call variable above.
To customize CDR using 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': 5
'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|