📄 gatestrc.h
字号:
/**********************************************************************************************
*
* $ProjectName: X:/SIPROJ/VOIP/HOST/WIN_NT/DEMOS/Samples.rel5/Dm3/Iplink/project.pj $
* $ProjectRevision: 1.5 $
* $Label$
* $Revision: 1.5 $ - $Date: 2001/11/04 14:42:48 $
*
**********************************************************************************************/
#ifndef _gateStrc_h
#define _gateStrc_h
#ifdef __cplusplus
extern "C" {
#endif /* def __cplusplus */
#include "gatedefs.h"
typedef struct {
unsigned int callsMake;
unsigned int callsOffered;
unsigned int callsNull;
unsigned int callsFailed;
unsigned int callsRejected;
unsigned int callsConnected;
unsigned int UII_Msg;
unsigned int UII_Evt;
unsigned int NonStdCmd_Msg;
unsigned int NonStdCmd_Evt;
unsigned int Q931Facility_Msg;
unsigned int Q931Facility_Evt;
}CHANInfo;
typedef struct {
unsigned short BoardNum; /* Board number */
unsigned int ChanNum; /* Number of channel in the board */
LINEDEV linedev; /* line device handle */
unsigned short TxTSlot; /* transmitted time slot */
int NetwH; /* network device handle */
int VoiceH; /* voice device handle */
long currentCRN; /* the current call's CRN */
long glareCRN; /* CRN that was received in glare condition */
long nextCRN; /* CRN for the next call */
int NEW_OFFERED; /* offered call, when the old call still exist */
}FRONT_END_PARAMS;
/* H245 Data structure used for UII and NonStdCmd messages */
typedef struct {
char Val[IPT_MAX_STRING];
char ObjId[OBJECT_ID_STR];
}H245Data;
/* Q931 Data structure used for Facility message */
typedef struct {
char ObjId[OBJECT_ID_STR];
char Data[IPT_MAX_STRING];
} Q931Data;
/* Call Parameters structure */
typedef struct {
char display[IPT_MAX_STRING]; /* Display null-terminated string */
char IPT_UUI[IPT_MAX_STRING]; /* User to User Information */
char phoneList[IPT_MAX_STRING]; /* Phone list null-terminated string */
char callerId[IPT_MAX_STRING]; /* Caller Id address */
char localPhoneNumber[IPT_MAX_STRING]; /* Local phone Number -
used for inbound call without phoneList */
short maxTxCoders; /* Max capability coders */
char srcAddr[IPT_MAX_STRING]; /* My IP address */
char destAddr[IPT_MAX_STRING]; /* Destination IP address */
unsigned int callDurationTime; /* Duration time in seconds */
IP_RTCPINFO RTCPInfo; /* RTCP information structure */
IP_CAPABILITY Coder[MAX_CODER_CAPABILITY]; /* Recieve Transmit capabilty coders */
char NonStdData[IPT_MAX_STRING]; /* Non standard data used in Q.931 and H.245 messages */
char NonStdObjID[IPT_MAX_STRING]; /* Non standard objID used in Q.931 and H.245 messages */
IP_H221NONSTANDARD H221NonStd; /* Vendor H221 structure */
char productID[IPT_MAX_STRING]; /* Vendor product string */
char versionID[IPT_MAX_STRING]; /* Vendor version string */
char ConferenceID[16]; /* For conference call info use */
int ConferenceGoal; /* For conference call info use */
H245Data UII; /* User Input Indication message strucure */
H245Data NonStdCmd; /* Nonstandard Command message strucure */
Q931Data Q931Facility; /* Q931Facility message strucure */
}CallParameters;
/* Session Per Call */
typedef struct {
unsigned int sessionNumber; /* Index session number */
unsigned short sessionState; /* Session state */
gateStateFxn stateFxn; /* Next state machine function to be called */
FRONT_END_PARAMS ipParams;
FRONT_END_PARAMS pstnParams;
FRONT_END_PARAMS voiceParams;
char DNIS[50]; /* Dialed Number Identification Service,provides the caller party number Info.*/
short NumOfDropEvt;
short NumOfDropExpected;
int pstnIsListen;
CallParameters ConfigFileParm; /* Information from cfg file */
FILE *LogFile;
} GateSession;
#ifndef _GATEMAIN_C
extern GateSession Session[];
#else
GateSession Session[GATE_MAX_SESSIONS+1];
#endif
/****** IPLink 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 + -