/* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ Response Table define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ LPSTR ResponseTbl[MAX_RESPONSE_NUMBER] = { "OK\r\n", "CONNECT\r\n", "RING\r\n", "NO CARRIER\r\n", "ERROR\r\n", "CONNECT 1200\r\n", "NO DIAL TONE\r\n", "BUSY\r\n", "NO ANSWER\r\n", "RINGING\r\n", "CONNECT 2400\r\n", "CONNECT 4800\r\n", "CONNECT 9600\r\n", "CONNECT 19200\r\n", "CONNECT 7200\r\n", "CONNECT 12000\r\n", "CONNECT 14400\r\n", "CONNECT 16800\r\n", "CONNECT 38400\r\n", "CONNECT 57600\r\n", "CONNECT 76800\r\n", "VCON\r\n", }; /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ byte command define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ char StartVoiceCmd[3] = {DLE, 'v', '\0'}; char EndVoiceCmd[3] = {DLE, ETX, '\0'}; /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ temp buffer define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ char szTempBuffer[512]; /* ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ basic comm port variable define ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ */ int nComId; long lBaudRate; int nParity; int nWordLen; int nStopBits; int nCk16550; int nFCMethod; BOOL bEchoOn; BOOL bVerbose; BOOL bEnResponse; int nDialMethod; /* ÄÄÄÄÄÄÄÄÄÄ bit define ÄÄÄÄÄÄÄÄÄÄ */ #define BIT0 1 #define BIT1 2 #define BIT2 4 #define BIT3 8 #define BIT4 16 #define BIT5 32 #define BIT6 64 #define BIT7 128