⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gatestrc.h

📁 ipt网关源码
💻 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 + -