This command adds a transition template to the signal set. The signal is not immediately active for detection. The devh handle must be a valid DTI board device handle. The cmdmsgp argument must point to the DTCAS_CREATE_TRANSITION_MSG message block. The reply message code, DTCAS_CREATE_TRANSITION_COMPLETE is received in response to this command message block. The typedef for the DTCAS_CREATE_TRANSITION_MSG structure is as follows:
typedef struct t_create_transition_msg {
unsigned char msg_code;
unsigned char flags;
unsigned short template_id;
unsigned char PreTransCode;
unsigned char PostTransCode;
unsigned short PreTransInterval;
unsigned short PreTransIntervalNom; /* [ci]+ send template addition */
unsigned short PostTransInterval;
unsigned short PostTransIntervalNom;
} DTCAS_CREATE_TRANSITION_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_CREATE_TRANSITION |
flags |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier |
PreTransCode |
specifies the pattern to be matched/set prior to transition. See common data type prefixCode for the format of this field. |
PostTransCode |
specifies the pattern to be matched/set prior after transition. See common data type prefixCode for the format of this field |
PreTransInterval |
specifies the minimum time for the duration of the pre-transition interval. See common data type prefixInterval for the format of this field. |
PreTransIntervalNom |
specifies the duration of the pre-transition interval for transmission. See common data type prefixInterval for the format of this field. |
PostTransInterval |
specifies the minimum time for the duration of the post-transition interval. See common data type prefixInterval for the format of this field. |
PostTransIntervalNom |
specifies the duration of the post-transition interval for transmission. See common data type prefixInterval for the format of this field. |
DTCAS_CREATE_PULSEThis command adds a pulse template to the signal set. The signal is not immediately active for detection. The devh handle must be a valid DTI board device handle. The cmdmsgp argument must point to the DTCAS_CREATE_PULSE_MSG message block. The reply message code, DTCAS_CREATE_PULSE_COMPLETE is received in response to this command. The typedef for the DTCAS_CREATE_PULSE_MSG structure is as follows:
typedef struct t_create_pulse_msg {
unsigned char msg_code;
unsigned char flags;
unsigned short template_id;
unsigned char OffPulseCode;
unsigned char OnPulseCode;
unsigned short PrePulseInterval;
unsigned short PrePulseIntervalNom;
unsigned short PulseIntervalMin;
unsigned short PulseIntervalNom;
unsigned short PulseIntervalMax;
unsigned short PostPulseInterval;
unsigned short PostPulseIntervalNom;
} DTCAS_CREATE_PULSE_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_CREATE_PULSE. |
flags |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier. |
OffPulseCode |
specifies the pattern to be matched/set prior to pulse and after pulse. See common data type prefixCode for the format of this field. |
OnPulseCode |
specifies the pattern to be matched/set during pulse. See common data type prefixCode for the format of this field |
PrePulseInterval |
specifies the minimum time for the duration of the pre-pulse interval. See common data type prefixInterval for the format of this field. |
PrePulseIntervalNom |
specifies the duration of the pre-pulse interval for transmission. See common data type prefixInterval for the format of this field. |
PulseIntervalMin |
specifies the minimum time for the duration of the pulse interval. See common data type prefixInterval for the format of this field |
PulseIntervalMax |
specifies the maximum time for the duration of the pulse interval. See common data type prefixInterval for the format of this field. |
PulseIntervalNom |
specifies the desired time for the duration of the pulse interval. See common data type prefixInterval for the format of this field. |
PostPulseInterval |
specifies the minimum time for the duration of the end-of-pulse interval. See common data type prefixInterval for the format of this field. |
PostPulseIntervalNom |
specifies the duration of the end-of-pulse interval for transmission. See common data type prefixInterval for the format of this field. |
DTCAS_CREATE_TRAINThis command adds a pulse train template to the signal set. The signal is not immediately active for detection. The devh handle must be a valid DTI board device handle. The cmdmsgp argument must point to the DTCAS_CREATE_TRAIN_MSG message block. The reply message code, DTCAS_CREATE_TRAIN_COMPLETE is received in response to this command. The typedef for the DTCAS_CREATE_TRAIN_MSG structure is as follows:
typedef struct t_create_train_msg {
unsigned char msg_code;
unsigned char flags;
unsigned short template_id;
unsigned char OffPulseCode;
unsigned char OnPulseCode;
unsigned short PreTrainInterval;
unsigned short PreTrainIntervalNom;
unsigned short PulseIntervalMin;
unsigned short PulseIntervalNom;
unsigned short PulseIntervalMax;
unsigned short InterPulseIntervalMin;
unsigned short InterPulseIntervalNom;
unsigned short InterPulseIntervalMax;
unsigned short PostTrainInterval;
unsigned short PostTrainIntervalNom;
} DTCAS_CREATE_TRAIN_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_CREATE_TRAIN. |
flags |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier |
OffPulseCode |
specifies the pattern to be matched/set prior to pulse and after pulse. See common data type prefixCode for the format of this field. |
OnPulseCode |
specifies the pattern to be matched/set during pulse. See common data type prefixCode for the format of this field. |
PulseIntervalMin |
specifies the minimum time for the duration of the pulse interval. See common data type prefixInterval for the format of this field. |
PulseIntervalMax |
specifies the maximum time for the duration of the pulse interval. See common data type prefixInterval for the format of this field. |
PulseIntervalNom |
specifies the desired time for the duration of the pulse interval. See common data type prefixInterval for the format of this field. |
PreTrainInterval |
specifies the minimum time for the duration of the pre-train interval. This time may differ from the pre-pulse time of the component pulses. See common data type prefixInterval for the format of this field. |
PreTrainIntervalNom |
specifies the duration of the pre-train interval for transmission. See common data type prefixInterval for the format of this field |
InterPulseIntervalMin |
specifies the minimum time for the duration of the inter-pulse interval. See common data type prefixInterval for the format of this field |
InterPulseIntervalMax |
specifies the maximum time for the duration of the inter-pulse interval. See common data type prefixInterval for the format of this field. |
InterPulseIntervalNom |
specifies the desired time for the duration of the inter-pulse interval. See common data type prefixInterval for the format of this field. |
PostTrainInterval |
specifies the minimum time for the duration of the end-of-train interval. See common data type prefixInterval for the format of this field. |
PostTrainInterval |
specifies the minimum time for the duration of the end-of-train interval. See common data type prefixInterval for the format of this field |
DTCAS_DELETE_TEMPLATEThis command removes a signal template definition from the signal set. The devh handle must be a valid DTI board device handle. The cmdmsgp argument must point to the DTCAS_DELETE_TEMPLATE_MSG message block. The reply message code, DTCAS_DELETE_TEMPLATE_COMPLETE is received in response to this command. The typedef for the DTCAS_DELETE_TEMPLATE_MSG structure is as follows:
typedef struct t_delete_template_msg {
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
} DTCAS_DELETE_TEMPLATE_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_DELETE_TEMPLATE |
rfu |
is reserved and must be set to zero for future compatibility. |
template_id |
specifies the template identifier. |
DTCAS_ENABLE_TEMPLATEThis command enables CAS signal definition in a signal set for a particular channel. Enabling a signal which is already enabled is considered an error, because recognition of the signal could already be in progress based on earlier events. The devh handle must be a valid DTI channel device handle. The cmdmsgp argument must point to the DTCAS_ENA_DIS_TEMPLATE_MSG command message block. The reply message code, DTCAS_ENABLE_TEMPLATE_COMPLETE is received in response to this command. The typedef for the DTCAS_ENA_DIS_TEMPLATE_MSG structure is as follows:
typedef struct t_ena_dis_template_msg {
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
} DTCAS_ENA_DIS_TEMPLATE_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_ENABLE_TEMPLATE. |
rfu |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier |
DTCAS_DISABLE_TEMPLATEThis command disables a CAS signal definition in a signal set for a particular channel. Disabling a signal which is already disabled is considered a successful operation. The devh handle must be a valid DTI channel device handle. The cmdmsgp argument must point to the
DTCAS_ENA_DIS_TEMPLATE_MSG command. The reply message code, DTCAS_DISABLE_TEMPLATE_COMPLETE is received in response to this command. The typedef for the DTCAS_ENA_DIS_TEMPLATE_MSG structure is as follows:
typedef struct t_disable_template_msg {
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
} DTCAS_ENA_DIS_TEMPLATE_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_DISABLE_TEMPLATE |
rfu |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier |
DTCAS_TRANSMIT_TEMPLATEThis command transmits a CAS signal in a signal set for a particular channel. The devh handle must be a valid DTI channel device handle. The cmdmsgp argument must point to the DTCAS_TRANSMIT_MSG command. The reply message code, DTCAS_TRANSMIT_TEMPLATE_COMPLETE is received in response to this command. The typedef for the DTCAS_TRANSMIT_ MSG structure is as follows:
typedef struct t_transmit_msg
{
unsigned char msg_code;
unsigned char rfu;
unsigned short template_id;
unsigned char pulse_count;
unsigned char sequence_count;
} DTCAS_TRANSMIT_MSG;
Parameter |
Description |
msg_code |
identifies the message type and must be set to DTCAS_TRANSMIT_TEMPLATE |
rfu |
is reserved and must be set to zero for future compatibility |
template_id |
specifies the template identifier. |
Pulse_count |
specifies the number of pulses to send in a pulse-train. This field must be set to zero when sending a signal transition or a pulse |
Sequence_count |
is reserved for future use and must be set to zero |
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation