Dialogic
®
Global Call API Library Reference — November 2007 561
Dialogic Corporation
RTP address — RTP_ADDR
RTP_ADDR
RTP address
typedef struct
{
int version
unsigned short port;
unsigned char ip_ver;
union
{
unsigned int ipv4;
unsigned int ipv6[4];
} u_ipaddr;
} RTP_ADDR, *RTP_ADDRP;
Description
The RTP_ADDR data structure contains a complete RTP address, which includes both the port
number and the IP address. The RTP_ADDR structure is used when retrieving the local and remote
RTP addresses from the Global Call completion event when a call is connected.
Field Descriptions
The fields of the RTP_ADDR data structure are described as follows:
version
data structure version identification, for library use only
port
the port number used by an RTP stream
ip_ver
format of the IP address; currently, the only valid value is IPVER4
ipv4
the IP address used by an RTP stream, in IPv4 format
ipv6[4]
reserved for future use