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

📄 pubdef.hpp

📁 GB接口数据解译程序
💻 HPP
📖 第 1 页 / 共 4 页
字号:
/* ======================================================================== *\ | | |  JOYIT Communication Technology |  Copyright (C)  2002-2003,  All Right Reserved. | |  System: Programmable Signaling Gateway |  Sub-system: TCPAgent |  Filename: ptlbase.cpp |  Environment: Red Hat Linux 9.0 & GNU C/C++ Compiler 3.2.2 |  Function description: Public  definition |\* ======================================================================== */#ifndef _PUBDEF_HPP#define _PUBDEF_HPP////////////////////////	Protocol ID//////////////////////#define PTL_OAM					0x00#define PTL_TCP					0x01#define PTL_SS7					0x02#define PTL_DSS1				0x03#define PTL_MTPAPI				0x07#define PTL_TUPAPI				0x08#define PTL_ISUPAPI				0x09#define PTL_SCCPAPI				0x0A#define PTL_TCAPAPI				0x0B#define PTL_MAPAPI				0x0C#define PTL_INAPAPI				0x0D#define PTL_Q931API				0x20#define PTL_SYSMGR				0x30#define PTL_INC					0x31 // Add 2006-01-13, by Wu jianjin. Protocol for inter-node communication#define PTL_PCU					0x32 // Add 2006-04-27, by Wu jianjin. Protocol for PCU.// ### The following line are added for SAP project. 2007-07-26#define PTL_L2A					0x33 //add 2006-12-15, by linanan#define PTL_SNIFFER				0x34#define PTL_TCPCLIENT			0x35#define PTL_SYTHESIZE			0x36#define PTL_SAP					0x37// ### End 2007-07-26#define PTL_R2					0x38 // Adding for R2 module, 2007-12-26#define PTL_R2API				0x39 // Adding for R2 module, 2007-12-26//////////////////////////	Protocol Version////////////////////////#define VER_OAM					0x01	// Version 1.0, the first version.#define VER_TCP					0x01	// Version 1.0, the first version.#define VER_SS7					0x01	// Version 1.0, the first version.#define VER_DSS1				0x01	// Version 1.0, the first version.#define VER_MTPAPI				0x01	// Version 1.0, the first version.#define VER_TUPAPI				0x01	// Version 1.0, the first version.#define VER_ISUPAPI			  	0x01	// Version 1.0, the first version.#define VER_SCCPAPI				0x01	// Version 1.0, the first version.#define VER_TCAPAPI				0x01	// Version 1.0, the first version.#define VER_MAPAPI				0x01	// Version 1.0, the first version.#define VER_INAPAPI				0x01	// Version 1.0, the first version.#define VER_Q931API				0x01	// Version 1.0, the first version.#define VER_SYSMGR				0x01	// Version 1.0, the first version.#define VER_SYSMGR_REDUNT		0x02	// Version 1.0, the first version.// ### The following line are added for SAP project. 2007-07-26#define VER_SNIFFER				0x01   //add 2006-12-18,by T-mac#define VER_TCPCLIENT			0x01   //add 2006-12-18,by T-mac#define VER_SC					0x01   //add 2006-12-18,by T-mac#define VER_SPP					0x01   //add 2006-12-18,by T-mac// ### End 2007-07-26//////////////////////////	Logical Module ID////////////////////////#define LMI_SYSMGR					0x0000	// System manager process#define LMI_TCPAGN				  	0x0001	// TCP agent#define LMI_UDPAGN				  	0x0002	// UDP agent#define LMI_OAMSRV				  	0x0003	// OAM Server#define LMI_OAMMGR				  	0x0004	// OAM Manager#define LMI_SPP						0x0005	// Add 2006-10-13, by Wu jianjin.#define LMI_MTP2					0x0070	// SS7 MTP2#define LMI_M2A						0x0071	// SS7 MTP2 agent#define LMI_L2A						0x0071	// Layer2 agent. // Add 2006-07-05, by Wu jianjin.#define LMI_MTP3					0x0073	// SS7 MTP3#define LMI_TUP						0x0074	// SS7 TUP#define LMI_ISUP					0x0075	// SS7 ISUP#define LMI_SCCP					0x0076	// SS7 SCCP#define LMI_TCAP					0x0077	// SS7 TCAP#define LMI_MAP						0x0078	// SS7 MAP#define LMI_INAP					0x0079	// SS7 INAP#define LMI_Q921					0x0071	// DSS1 Q.921#define LMI_Q931					0x0081	// DSS1 Q.931#define LMI_SI						0x0090	// Signaling interworking#define LMI_PAPI					0x0091// ### The following line are added for SAP project. 2007-07-26//#define LMI_SPP						0x0093	//add 2006-12-18,by T-mac#define LMI_SYTHESIZE				0x0094	//add 2006-12-15, by linanan#define LMI_OUTPUT					0x0095	//add 2006-12-15, by linanan#define LMI_R2						LMI_L2A // Adding for R2 module, 2007-12-26// ### End 2007-07-26// Upper 0x0800, can be use as user defined./////////////////////////////////////	Message Packet Priority//////////////////////////////////#define PRO_3						3#define PRO_2						2#define PRO_1						1#define PRO_0						0/////////////////////////////////////	Message type//0x0000-0x0100 MTP//0x0101-0x0200 TUP//0x0201-0x0300 ISUP/////////////////////////////////////ALARM CODE//#define PSG_ALRM_SMSTART               		0x0080		//锟侥o拷//#define PSG_ALRM_SMSTOP         		   	0x0081		//锟侥o拷止#define PSG_ALRM_L_UNKNOWNSP			0x0085 // Recieve unknown signalling point code message#define PSG_ALRM_L_LLID			   		0x0086 // Local Link Inhibit Denny#define PSG_ALRM_L_RLID			   		0x0087 // Remote Link Inhibit Denny#define PSG_ALRM_L_LIUNSUCC				0x0088 // Link Inhibit Unsuccess#define PSG_ALRM_L_LUUNPOS				0x0089 // Link Uninhibit Unpossible#define PSG_ALRM_L_LLUN			   		0x008a // Local Link Uninhibit#define PSG_ALRM_L_RLUN 			   	0x008b // Remote Link Uninhibit#define PSG_ALRM_L_LLIN			   		0x008c // Local Link Inhibit#define PSG_ALRM_L_RLIN			   		0x008d // Remote Link Inhibit#define PSG_ALRM_L_SLTF			   		0x008e // Signalling Link Test Failure#define PSG_ALRM_L_SLTS			   		0x008f // Signalling Link Test Success#define PSG_ALRM_L_SNMIH0			   	0x0091 // SNM MSU with Invalid H0#define PSG_ALRM_L_SNMIH1			   	0x0092 // SNM MSU with Invalid H1#define PSG_ALRM_L_ILIN			   		0x0093 // Invalid Link Inhibit Signal#define PSG_ALRM_L_ICOO			   		0x0094 // Invalid Change-Over Signal#define PSG_ALRM_L_IECO			   		0x0095 // Invalid Emergency Change-Over Signal#define PSG_ALRM_L_ILFU			   		0x0096 // Invalid Link Force Uninhibit Signal#define PSG_ALRM_L_ILUN			   		0x0097 // Invalid Link Uninhbit Signal#define PSG_ALRM_L_ICBD			   		0x0098 // Invalid Link Change-Back Declare#define PSG_ALRM_L_ITFP			   		0x0099 // Invalid Transfer-Prohibit Signal#define PSG_ALRM_L_ITFA			   		0x009a // Invalid Transfer-Allowed Signal#define PSG_ALRM_L_ITFC			   		0x009b // Invalid Transfer-Controlled Signal#define PSG_ALRM_L_ITFR			   		0x009c // Invalid Transfer-Restrict Signal#define PSG_ALRM_L_ISLT			   		0x009d // Invalid Signalling Link Test Signal#define PSG_ALRM_L_UPU			        0x0100 // User Part Unavailable#define PSG_ALRM_L_ISSF			   		0x0101 // Invalid SSF#define PSG_ALRM_L_ISI					0x0102 // Invalid SI#define PSG_ALRM_L_DPCNOEXIST			0x0103 // DPC no exist#define PSG_ALRM_L_IDPC			   		0x0104 // Invalid DPC#define PSG_ALRM_L_ILUA			   		0x0105 // Invalid Link Uninhibit Acknowledge#define PSG_ALRM_L_ILID			   		0x0106 // Invalid Link Inhibit Denny#define PSG_ALRM_L_ILIA			   		0x0107 // Invalid Link Inhibit Acknowledge#define PSG_ALRM_L_ILIT			   		0x0108 // Invalid Local Inhibit Test#define PSG_ALRM_L_IRIT			   		0x0109 // Invalid Remote Inhibit Test#define PSG_ALRM_L_ICOA			   		0x010a // Invalid Change-Over Acknowledge#define PSG_ALRM_L_IECA			   		0x010b // Invalid Emergency Change-Over Acknowledge#define PSG_ALRM_L_LAF					0x0132	// Link Alignment Failed#define PSG_ALRM_L_LEAS					0x0133	// Link Emergency alignment Sucess#define PSG_ALRM_L_LEAF					0x0134	// Link Emergency alignment Failed#define PSG_ALRM_L_LIS					0x0135	// Link in service#define PSG_ALRM_L_LOS					0x0090	// Link out of service#define PSG_ALRM_L_LLPO			   		0x0137	// Link local processor outage#define PSG_ALRM_L_LLPR			   		0x0138	// Link local processor recovered#define PSG_ALRM_L_LRPO			   		0x0139	// Link remote processor outage#define PSG_ALRM_L_LRPR			   		0x013a	// Link remote processor recovered#define PSG_ALRM_L_LSTOP			   	0x013b	// Link stopped by MTP3#define PSG_ALRM_L_RB				   	0x013c	//Remote busy#define PSG_ALRM_L_RBR			        0x013d	//Remote busy recovered#define PSG_ALRM_L_LB		       	   	0x013e	//Local busy#define PSG_ALRM_L_LBR			        0x013f	//Local busy recovered#define PSG_ALRM_L_TFP			        0x0140	//TranFer Prohibit#define PSG_ALRM_L_TFA			        0x0141	//TranFer Allowed#define PSG_ALRM_L_TFC			        0x0142	//TranFer Controlled#define PSG_ALRM_L_TFR			        0x0143	//TranFer Restricted#define PSG_ALRM_L_IUPU			        0x0144	//Invalid UPU#define PSG_ALRM_L_ILLT	                0x0145	//Invalid LLT#define PSG_ALRM_L_ILRT	                0x0146	//Invalid LRT#define PSG_ALRM_L_DLOS	                0x0200	//LAPD Link Out of Service#define PSG_ALRM_L_DLIS                 0x0201	//LAPD Link In of Service#define PSG_ALRM_L_L3CF	                0x0202	//LAPD3 Call Failed#define PSG_ALRM_L_CSCFN	            0x0203	//Circuit Status Confusion#define PSG_ALRM_L_ICBA			   		0x010c // Invalid Change-Back Acknowledge#define PSG_ALRM_C_CALLFAIL				0x0082#define PSG_ALRM_C_RELNA			    0x0083		// REL No Acknowledge#define PSG_ALRM_C_CLFNA			   	0x0084#define PSG_ALRM_C_CICNOEXIST			0x010d // CIC no exist#define PSG_ALRM_C_RSCNA		   		0x010e // RSC No Acknowledge#define PSG_ALRM_C_GRSNA		 		0x010f // GRS No Acknowledge // GRA No Acknowledge#define PSG_ALRM_C_RLCNA		 		0x0110 // CLF No Acknowledge#define PSG_ALRM_C_BLONA		 		0x0112 // BLO No Acknowledge#define PSG_ALRM_C_UBLNA		 		0x0113 // UBL No Acknowledge#define PSG_ALRM_C_MGBNA		 		0x0114 // MGB No Acknowledge#define PSG_ALRM_C_HGBNA			   	0x0115 // HGB No Acknowledge#define PSG_ALRM_C_SGBNA		 		0x0116 // SGB No Acknowledge#define PSG_ALRM_C_MGUNA		 		0x0117 // MGU No Acknowledge#define PSG_ALRM_C_HGUNA		 		0x0118 // HGU No Acknowledge#define PSG_ALRM_C_SGUNA 		 		0x0119 // SGU No Acknowledge#define PSG_ALRM_C_RMB					0x011a // Remote Maintence Block#define PSG_ALRM_C_RHB					0x011b // Remote Hardware Block#define PSG_ALRM_C_RSB					0x011c // Remote Software Block#define PSG_ALRM_C_RMUB			   		0x011d // Remote Maintence Unblock#define PSG_ALRM_C_RHUB			   		0x011e // Remote Hardware Unblock#define PSG_ALRM_C_RSUB					0x011f // Remote Software Unblock#define PSG_ALRM_C_LMBS			   		0x0120 // Local Maintence Block Success#define PSG_ALRM_C_LMBUS			   	0x0121 // Local Maintence Block Unsuccess#define PSG_ALRM_C_LMUBS				0x0122 // Local Maintence Unblock Success#define PSG_ALRM_C_LHBS			   		0x0123 // Local Hardware Block Success#define PSG_ALRM_C_LHUBS		 		0x0124 // Local Hardware Unblock Success#define PSG_ALRM_C_LSBS					0x0125 // Local Software Block Success#define PSG_ALRM_C_LSUBS		 		0x0126 // Local Software Unblock Success#define PSG_ALRM_C_CCF					0x0127 // Continuty Check Fail#define PSG_ALRM_C_LRSC					0x0128 // Local RSC Success#define PSG_ALRM_C_RRSC					0x0129 // Remote RSC#define PSG_ALRM_L_LAS					0x0131	// Link Alignment Sucess#define PSG_ALRM_S_CONGESTION			0x0130#define PSG_ALRM_C_MBTIME2LONG			0x0132 // Circuit group maintentance blocked times too long. // Add 2005-04-04, by Wujianjin.#define PSG_ALRM_C_GRS					0x0133 // Remote circuit group reset. Add 2005-05-03, by Wujianjin.#define PSG_ALRM_S_SYSERR				0x0204	//System Error//for hardware#define PSG_ALRM_H_LOSEHB		        0x0147	// Lose heart beat#define PSG_ALRM_H_HLOSSYN	            0x0148	// Lost synchronization#define PSG_ALRM_H_HNOSIG		        0x0149	// No signal#define PSG_ALRM_H_HRALRM		        0x014a	// Remote alarm#define PSG_ALRM_H_HALL1		        0x014b	// All be 1//for LAPD//Error Code#define PSG_ERR_NOERR 	               	0		// No error#define PSG_ERR_NORMAL               	-2		// general error,not specify cause#define PSG_ERR_IPCNOEXIST         	    -1		// SYSMGR does not exist#define PSG_ERR_QUENOINIT 				-3		// system queue not yet initialized#define PSG_ERR_QUEFULL	 				-4		// system queue is full#define PSG_ERR_NOMEM					-5		// not enough memory#define PSG_ERR_TMREXP			 		-6		// timer expiration#define PSG_ERR_CREATQUE				-7		// cannot creat system queue#define PSG_ERR_SENDFAIL				-8		// Send Message failed//OAM message// 0x0000 ~ 0x007F or// 0x7000 ~ 0x7FFF#define OAM_REGISTER	         		0x0001#define OAM_DEREGISTER	         		0x0002#define OAM_CONFIG_ACTIVE	      		0x0003#define OAM_CONFIG_DEACTIVE	   			0x0004#define OAM_CONFIG_SYSPARA	   			0x0005#define OAM_CONFIG_DPC	         		0x0006#define OAM_CONFIG_STACK	      		0x0007#define OAM_CONFIG_ROUTE_SET	   		0x0008#define OAM_CONFIG_LINK_SET	   			0x0009#define OAM_CONFIG_LINK	      			0x000a#define OAM_CONFIG_CIR_GROUP	   		0x000b#define OAM_CONFIG_RESTORE	   			0x000c#define OAM_CONFIG_APPLY	      		0x000d#define OAM_CONFIG_MODULE	      		0x000e	// Model Config#define OAM_CONFIG_L2LINK				0x008a// LAPD2 Link Config#define OAM_CONFIG_L3CIR				0x008b// LAPD3 Circuit Config#define OAM_DATAQUERY_SYSPARA			0x0010#define OAM_DATAQUERY_DPC	      		0x0011#define OAM_DATAQUERY_OPC	      		0x0012#define OAM_DATAQUERY_ROUTE_SET			0x0013#define OAM_DATAQUERY_LINK_SET			0x0014#define OAM_DATAQUERY_LINK	   			0x0015#define OAM_DATAQUERY_CIR_GROUP			0x0016#define OAM_DATAQUERY_L2LINK			0x0017#define OAM_STATQUERY_SPC	      		0x0020#define OAM_STATQUERY_ROUTE	   			0x0021#define OAM_STATQUERY_LINK	   			0x0022#define OAM_STATQUERY_CIR	      		0x0023#define OAM_STATQUERY_PROC	   			0x0024#define OAM_STATQUERY_SYSTEM	   		0x0025#define OAM_STATQUERY_LINK_SET			0x0026#define OAM_STATQUERY_ROUTE_SET 		0x0027#define OAM_STATQUERY_DL				0x0028	// LAPD Link Status Query#define OAM_CIRSTAT_IND	      			0x0029#define OAM_STATQUERY_PSB           	0x002a#define OAM_STATQUERY_MTP2_LINK     	0x002b#define OAM_STATQUERY_STACK     		0x002c#define OAM_OPERATE_LINK_PROHIBIT		0x0030#define OAM_OPERATE_LINK_UNFREEZE		0x0031#define OAM_OPERATE_LINK_START	   		0x0032#define OAM_OPERATE_LINK_STOP	   		0x0033#define OAM_OPERATE_LINK_TEST	   		0x0034#define OAM_OPERATE_LINKSET_START		0x0035#define OAM_OPERATE_LINKSET_STOP		0x0036#define OAM_OPERATE_CIR_MBLOCK	   		0x0037#define OAM_OPERATE_CIR_UMBLOCK	   		0x0038#define OAM_OPERATE_CIR_HBLOCK	   		0x0039#define OAM_OPERATE_CIR_UHBLOCK	   		0x003a#define OAM_OPERATE_CIR_SBLOCK	   		0x003b#define OAM_OPERATE_CIR_USBLOCK	   		0x003c#define OAM_OPERATE_CIR_RESET	   		0x003d#define OAM_OPERATE_CIR_MNTSTOP	   		0x003e#define OAM_OPERATE_CIR_SETSTAT	   		0x003f#define OAM_OPERATE_DL_ACTIVE	   		0x0040#define OAM_OPERATE_DL_DEACTIVE	   		0x0041// ### Add 2005-11-02, by Wujianjin.// For PSCONSOLE.#define OAM_OPERATE_CIR_DISC           0x003d#define OAM_OPERATE_CIR_RESTART        0x003d#define OAM_STATQUERY_CIR_GROUP        0x0023#define OAM_OPERATE_LINK_INHIBIT       0x0030#define OAM_OPERATE_LINK_UNINHIBIT     0x0031// ### 2005-11-02 ####define OAM_OPERATE_PROC_START	   		0x0050#define OAM_OPERATE_PROC_STOP	   		0x0051#define OAM_OPERATE_PROC_SUSPEND		0x0052#define OAM_OPERATE_PROC_RESUME	   		0x0053#define OAM_OPERATE_PROC_SETPRIO		0x0054#define OAM_OPERATE_PROC_PSGSTART		0x0056#define OAM_OPERATE_PROC_PSGSTOP		0x0057#define OAM_OPERATE_PROC_SETPARA		0x0058 // Add 2005-02-02, by Lushengsheng.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -