NCM_QueryTimeslots( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_QueryTimeslots( ) function allows you to query either the entire Intel® Dialogic system for reserved time slots or a specific third party device for its associated time slots. The ePersistent parameter determines whether the query returns persistent time slots only, transient time slots only or all time slots (i.e both persistent and transient types).
The function parameters are defined as follows:
pDeviceName pointer to the data structure containing the name of the third party device that you are querying. The device name must be the same name you used to add the third party device to the system configuration with the NCM_AddThirdPartyDevice( ) function A device name for this parameter is optional. Set this parameter to NULL to return all reserved third party device time slots within the Intel® Dialogic system. nStartTimeSlotNum indicates the starting time slot for the block of time slots that is to be queried. This parameter can either be set to a valid integer or NO_UNIQUE_ID (if you are not associating the query with a specific block of time slots). ePersistent determines whether the query will return persistent time slots only, transient time slots only or all time slots (i.e both transient and persistent). Valid values are as follows: pnNumOfBlocks points to the number of time slot blocks to be returned pNCMTSBlock points to the NCM_TS_BLOCK_STRUCT data structure that is returned by the function The following table summarizes the supported parameter combinations for the NCM_QueryTimeslots( ) function:
Cautions
Example
#include "NCMApi.h" NCMDevice device.Name; char DeviceString[] = "ThirdPartyDevice-XYZ#1"; deviceName.name = (char *) DeviceString; deviceName.next = NULL; NCMRetCode ncmRc = NCM_SUCCESS; NCMTSReserveType reserveType = NCM_TIMESLOT_PERSISTENT; DWORD numBlocks = 1; NCM_TS_BLOCK_STRUCT *pTimeslotBlock = NULL; int nStartTimeSlotNum = 10; ncmRc = NCM_QueryTimeslots(&deviceName, nStartTimeSlotNum, reserveType, &numBlocks, pTimeslotBlock); if (ncmRc != NCM_SUCCESS) { //process error }Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation