03-16-2020 11:28 AM
running CUCM 10.6.
understand that originating IP and destination IP is in there however, wondering if it needs to be converted?
Thanks,
Paul.
03-17-2020 07:38 AM
Can you explain your question in more detail? Converted to what? For compatibility with what?
Are you asking about CDR records themselves, or are you asking about CDRs that include call recording?
Maren
03-17-2020 07:50 AM
03-17-2020 08:32 AM
CDRs as generated by CUCM (as can be seen in the CAR tool) have the origIpAddr and destIpAddr in dotted-decimal format. This leads me to ask how/where you are looking at the CDRs. Is it in the CAR Tool, CUCM CLI, or another system?
Regardless, you should be able to determine if the IPs are in some kind of encoding or are integers-without-the-dots by looking at the numbers in the string and comparing that to your gear. They will either match or they won't.
Maren
03-17-2020 08:32 AM
Yes, they need to be converted, a quick google search on origipaddress will get you the info you need.
03-17-2020 08:41 AM
Ah, you're talking about the raw exported records. Yes, they are encoded. From the CDR Admin guide:
Convert Signed Decimal Value to IP Address
The system stores IP addresses as unsigned integers. The CDR file displays IP addresses as signed integers. To convert 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.
For example, the IP address 192.168.18.188 displays as -1139627840. To convert this IP address, perform the following procedure:
04-05-2020 02:14 PM
This excel function should do the conversion for you. In this code, it will convert cell H3 to a dotted IP format
=IF(LEN(DEC2HEX(H3))=8,HEX2DEC(MID(DEC2HEX(H3),7,2))&"."& HEX2DEC(MID(DEC2HEX(H3),5,2))&"."&HEX2DEC(MID(DEC2HEX(H3),3,2))&"."&HEX2DEC(MID(DEC2HEX(H3),1,2)),HEX2DEC(MID(DEC2HEX(H3),9,2))&"."& HEX2DEC(MID(DEC2HEX(H3),7,2))&"."&HEX2DEC(MID(DEC2HEX(H3),5,2))&"."&HEX2DEC(MID(DEC2HEX(H3),3,2)))
I've written an article that goes into a bit more depth on importing CDRs into Excel if you're interested.
04-06-2020 04:47 AM
Thanks very much.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide