/mcpCall Termination Cause Codes, on page 240 lists the call clearing cause code values per ITU specification Q.850. For On Net call legs, the Unified Communications Manager determines the cause code value. For Off Net call legs, the far-end switch determines the cause code value. Convert Signed Decimal Value to IP Address The system stores IP addresses as unsigned integers. The CDR file displays IP addresses as signed integers. Toconvert the signed decimal value to an IP address, first convert the value to a hex number, taking into consideration that it is really an unsigned number. The 32-bit hex value represents four bytes in reverse order (Intel standard). To determine the IP address, reverse the order of the bytes and convert each byte to a decimal number. The resulting four bytes represent the four-byte fields of the IP address in dotted decimal notation. The file displays a negative number when the low byte of the IP address has the most significant bit set. Note For example, the IP address 192.168.18.188 displays as -1139627840. To convert this IP address, perform the following procedure: Procedure Step 1 Convert the database display (-1139627840) to a hex value. The hex value equals 0xBC12A8C0. Step 2 Reverse the order of the hex bytes, as shown below: CO A8 12 BC Step 3 Convert the four bytes from hex to decimal, as shown below: 192 168 18 188 Step 4 The IP address displays in the dotted decimal format: 192.168.18.188 What to do next When working with CDRs, you may want to read other tables in the CAR database to obtain information about the type of device in each CDR because the correlation between devices in the device table and the IP address that is listed in the CDR is not straightforward. Call Reporting and Billing Administration Guide for Cisco Unified Communications Manager, Release 15 and SUs 211 CDR Records Convert Signed Decimal Value to IP Address
