User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 374
Dialogic Corporation
DTCAS_GET_NEXT_TEMPLATE
This command gets the template for a particular channel. The devh handle must be a valid DTI
channel device handle. The reply message code,
DTCAS_GET_NEXT_TEMPLATE_COMPLETE, is received in response to this command.
The typedef for the DTCAS_GET_NEXT_TEMPLATE structure is as follows:
typedef struct t_get_next_template_msg
{
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
} DTCAS_GET_NEXT_TEMPLATE_MSG;
In Appendix B - Message Blocks, the following Reply Message Blocks were omitted:
DTCAS_CLEAR_ALL_TEMPLATE_COMPLETE
This reply message is sent in response to a DTCAS_CLEAR_ALL_TEMPLATE command. The
result code within the reply message block indicates the success or failure of the command. The
buffer referenced by the replymsgp argument will contain a valid DTCAS_REPLY_MSG message
block if dt_castmgmt( ) completes successfully.
The typedef for the DTCAS_REPLY_MSG structure is as follows:
typedef struct t_create_reply_msg {
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
unsigned short result;
} DTCAS_REPLY_MSG;
Parameter Description
msg_code identifies the message type and must be set to DTCAS_GET_NEXT_TEMPLATE
rfu reserved; must be set to 0 for future compatibility
template_id specifies the template identifier
Parameter Description
msg_code identifies the message type; must be set to
DTCAS_CLEAR_ALL_TEMPLATE_COMPLETE
rfu reserved; must be set to 0 for future compatibility
template_id specifies the template identifier
result indicates the success or failure of the command. This field is set to 0 on success,
or one of the following error values if the command fails:
DTCAS_ERR_TEMPLATE_NOT_DEFINED – The template was not found in
the template table
DTCAS_ERR_TEMPLATE_TABLE_EMPTY – The template table is empty; no
templates are defined