📄 gatevars.h
字号:
/****************************************************************
*
* $ProjectName: X:/SIPROJ/VOIP/HOST/WIN_NT/DEMOS/Samples.rel5/Dm3/Iplink/project.pj $
* $ProjectRevision: 1.5 $
* $Name: gateway_r4-5_10-E19 $
* $Revision: 1.3 $ - $Date: 2001/10/07 16:02:29 $
* $Locker: $
*
****************************************************************/
#ifndef _gateVars_h
#define _gateVars_h
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "gatestrc.h"
#ifdef _GATEMAIN_C
unsigned int gateChannels = 0; /* Program channels be updated according
to pstn and ip channels*/
CHANInfo chanInfoIP[GATE_MAX_SESSIONS]; /* Holds information IP related to all Sessions */
CHANInfo chanInfoPSTN[GATE_MAX_SESSIONS]; /* Holds information PSTN related to all Sessions */
unsigned short numRings = GATE_RINGS; /* Number of rings, default = 2 */
int PSTNNumOfBoards = 0; /* Number of pstn boards */
int IPNumOfBoards = 0; /* Number of dm3 boards */
unsigned short argChannels = 0; /* Number of command line channels */
int quitFlag = 0; /* quitflag = 1 means the user asked
to end the application */
unsigned short frontEnd = GATE_LEGACY_ANALOG; /* Type of front end to use */
int logFileFlag = 0; /* All printings go to stdout, by default */
int Dialing = -1; /* A flag which enable/disable dialing for E1/T1 front ends */
char pstnProtocol[MAX_PROTOCOL_NAME] = "isdn"; /* Protocol name of pstn */
char ipProtocol[MAX_PROTOCOL_NAME] = "H323_NTSC"; /* Protocol name of ip */
unsigned short unblockedFlage[GATE_MAX_SESSIONS]; /* Flage to indicate that unblocked event have been arrieved */
char logFArr[50]; /* A array containing the channel list to print to the log file */
int _logLevel = 0;
int DnisEnable = 0;
unsigned short activeChannel; /* Active channel to send UII or NonStdCmd messages */
#else /* notdef _GATEMAIN_C */
extern unsigned int gateChannels;
extern CHANInfo chanInfoIP[];
extern CHANInfo chanInfoPSTN[];
extern int PSTNNumOfBoards;
extern int IPNumOfBoards;
extern unsigned short argChannels;
extern unsigned short numRings;
extern unsigned short frontEnd;
extern int quitFlag;
extern int _logLevel;
extern int Dialing;
extern int StandardReasonCompleteEnabled;
extern char pstnProtocol[];
extern char ipProtocol[];
extern unsigned short unblockedFlage[];
extern char logFArr[];
extern int _logLevel;
extern int DnisEnable;
extern unsigned short activeChannel;
#endif /* elsedef _GATEMAIN_C */
/* State Machine Function Prototype */
unsigned short gateInit(unsigned int,COMP_KEY,long,void *);
unsigned short gateNull(unsigned int,COMP_KEY,long,void *);
unsigned short gateIPOffered(unsigned int,COMP_KEY,long,void *);
unsigned short gatePSTNOffered(unsigned int,COMP_KEY,long,void *);
unsigned short gateIPConnected(unsigned int,COMP_KEY,long,void *);
unsigned short gateConnected(unsigned int,COMP_KEY,long,void *);
unsigned short gateDrop(unsigned int,COMP_KEY,long,void *);
#ifdef _GATESTATE_C
gateStateFxn gateFunctionList[] = {
(gateStateFxn)&gateInit,
(gateStateFxn)&gateNull,
(gateStateFxn)&gateIPOffered,
(gateStateFxn)&gatePSTNOffered,
(gateStateFxn)&gateIPConnected,
(gateStateFxn)&gateConnected,
(gateStateFxn)&gateDrop
};
#endif /* elsenot _GATESTATE_C */
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -