#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
DV_TPT tpt[2];
/*
* detect a pattern which repeats 4 times of approximately 2 seconds
* off 2 seconds on.
*/
tpt[0].tp_type = IO_CONT; /* next entry is contiguous */
tpt[0].tp_termno = DX_PMOFF; /* specify pattern match off */
tpt[0].tp_length = 4; /* terminate if pattern repeats 4 times */
tpt[0].tp_flags = 175; /* minimum silence off is 1.75 seconds
* (10 ms units) */
tpt[0].tp_data = 225; /* maximum silence off is 2.25 seconds
* (10 ms units) */
tpt[1].tp_type = IO_EOT; /* This is the last in the chain */
tpt[1].tp_termno = DX_PMON; /* specify pattern match on */
tpt[1].tp_length = TF_10MS; /* use 10 ms timer units */
tpt[1].tp_flags = 175; /* minimum silence on is 1.75 seconds
* (10 ms units) */
tpt[1].tp_data = 225; /* maximum silence on is 2.25 seconds
* (10 ms units) */
/* issue the function */
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation