Dialogic Support Helpweb
Dialogic® Host Media Processing (HMP) Software
How to translate IP addresses shown in RTF log to a real IP address
Symptom:
When reviewing an RTF log, IP addresses are presented in a decimal format that is not immediately recognizable. For example:
12:56:40.835 2492 1816 gc_h3r SIP_SI..EC DEBG sip_decoder.cpp:3895 ! 3 ! Local Party - RTP.IP:17475776 RTP.Port:2330 RTCP.IP: 17475776 RTCP.Port:2331
12:56:40.835 2492 1816 gc_h3r SIP_SI..EC DEBG sip_decoder.cpp:3895 ! 3 ! Local Party - RTP.IP:17475776 RTP.Port:2330 RTCP.IP: 17475776 RTCP.Port:2331
Reason for the issue:
The IP addresses are converted to this format to simplify processing within the Dialogic libraries.
Fix / Solution:
In the example, the IP address is shown as 17475776.
Follow this process to convert from the number found in RTF logs.
1) Convert the number to hex
17475776 = 0x10AA8C0
2) If the hex number is 7 digits long, add a leading 0
0x010AA8C0
Follow this process to convert from the number found in RTF logs.
1) Convert the number to hex
17475776 = 0x10AA8C0
2) If the hex number is 7 digits long, add a leading 0
0x010AA8C0
3) Split this value into 4 bytes
01 0A A8 C0
4) Reverse the order of the bytes, as this value is little endian
C0 A8 0A 01
5) Convert each byte back to decimal
192 168 10 1
This is the IP address -- 192.168.10.1
01 0A A8 C0
4) Reverse the order of the bytes, as this value is little endian
C0 A8 0A 01
5) Convert each byte back to decimal
192 168 10 1
This is the IP address -- 192.168.10.1
NOTE: The port numbers are in decimal, so no conversion is needed.
Product List
Dialogic® Host Media Processing Software and Dialogic® DM3 IP products


