📄 gatestrc.h
字号:
/**********************************************************************************************
*
* $ProjectName: X:\SIPROJ\VOIP\HOST\WIN_NT\DEMOS\VOIPGATE\PROJECT.PJ $
* $ProjectRevision: 1.1 $
* $Label$
* $Revision: 1.4 $ - $Date: 1997/07/14 14:53:46 $
*
**********************************************************************************************/
#ifndef _gateStrc_h
#define _gateStrc_h
#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */
#include <dm3Ntsc.h>
#include <NTscClst.h>
#include "gatedefs.h"
typedef struct {
UINT off_hook;
UINT on_hook;
UINT callsMade;
UINT callsOffered;
UINT callsDropped;
UINT callsNull;
UINT callsFailed;
UINT callsRejected;
UINT callsIdle;
UINT callsConnected;
}CHANInfo;
typedef struct {
USHORT phoneDevice; /* Phone device handle to interact voice card */
USHORT pstnTxTSlot;
}PSTNInfo;
/* The DM3NTSP Session Per Call */
typedef struct {
USHORT sessionState; /* Session state */
gateStateFxn stateFxn; /* Next state machine function to be called */
USHORT sessionNumber; /* Index session number */
USHORT resetNow; /* Flag that indicates if reseting structure is available */
BOOL waitOnHook; /* Wait for Digital on_hook */
CallParameters ConfigFileParm; /* Information from cfg file */
DM3NetTSC NetTscComp;
NETTSCCLUSTER NetTscClust;
PSTNInfo PstnInfo;
FILE *LogFile;
} GateSession;
#ifndef _GATEMAIN_C
extern GateSession Session[];
#else
GateSession Session[GATE_MAX_SESSIONS+1];
#endif
/****** IPT Demo Function Prototypes ******/
#ifdef __cplusplus /* close C++ brackets */
}
#endif /* def __cplusplus */
#endif
/*** End of File ***/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -