Applications can send queries to a TPKT endpoints by invoking the mspSendQuery function. This function returns a buffer containing information about the specified endpoint. When invoking mspSendQuery for TPKT endpoints, the application includes the MSPP handle associated with the endpoint, and concatenates the endpoint ID (MSP_ENDPOINT_TPKT for TPKT endpoints) and the endpoint query ID (MSP_QRY_TPKT_ENDPOINT for TPKT endpoint queries) using the mspBuildQuery macro.
MSP_QRY_TPKT_CHANNEL queries return TPKT configuration information in a msp_TPKT_ENDPOINT_QUERY structure. This structure contains an msp_TPKT_ENDPOINT_ENTRY substructure and a msp_TPKT_ENDPOINT_STATS substructure.
The msp_TPKT_ENDPOINT_ENTRY substructure provides the following information:
|
Parameter |
Description |
|
channelState |
State of the session: 0 - Created 1 - Configured 2 - Active |
|
localSessionID |
Local session ID. |
|
remoteSessionID |
Remote session ID. |
|
localSessionSeq |
Sequence number for detecting session overlap (0 or 1). |
|
remoteSessionSeq |
Sequence number for detecting session overlap (0 or 1). |
|
deliveryMethod |
Session delivery method (simple or complex). |
|
remoteGatewayIP |
Destination gateway for this session. |
|
coderType |
TPKT vocoder type. |
The msp_TPKT_ENDPOINT_STATS substructure provides the following information:
|
Parameter |
Type |
Description |
|
rxPkts |
DWORD |
Packets received from the network since the endpoint became active. |
|
txPkts |
DWORD |
Packets sent to the network since the endpoint became active. |
For information about sending queries to MSPP endpoints, refer to the Dialogic® NaturalAccess™ Media Stream Protocol Processing API Developer's Manual.