q931ptl.hpp

来自「ABis无线接口全套资料」· HPP 代码 · 共 395 行 · 第 1/2 页

HPP
395
字号
#define Q931_MSG_RESUME_REJ				0x22#define Q931_MSG_HOLD					0x24 #define Q931_MSG_SUSPEND				0x25#define Q931_MSG_RESUME					0x26#define Q931_MSG_HOLD_ACK				0x28#define Q931_MSG_SUSPEND_ACK			0x2d					#define Q931_MSG_RESUME_ACK				0x2e#define Q931_MSG_HOLD_REJ				0x30#define Q931_MSG_RETRIEVE				0x31#define Q931_MSG_RETRIEVE_ACK			0x33#define Q931_MSG_RETRIEVE_REJ			0x37// Call clearing messages#define Q931_MSG_DISCONNECT				0x45#define Q931_MSG_RESTART				0x46#define Q931_MSG_RELEASE				0x4d#define Q931_MSG_RESTART_ACK			0x4e#define Q931_MSG_RELEASE_COM			0x5a// Miscallaneous messages#define Q931_MSG_SEGMENT				0x60#define Q931_MSG_FACILITY				0x62#define Q931_MSG_REGISTER				0x64#define Q931_MSG_NOTIFY 				0x6e#define Q931_MSG_STATUS_ENQUIRY			0x75  #define Q931_MSG_CONGESTION_CTRL 		0x79#define Q931_MSG_INFORMATION 			0x7b#define Q931_MSG_STATUS					0x7d/*                                * Declare Q931 API macro define. */                              // Declare Q931 signal index.// Call establishment message#define PSG_MSG_Q931_ALERTING       PSG_MSG_DSS1_ALERT#define PSG_MSG_Q931_CALL_PROC		PSG_MSG_DSS1_CPD#define PSG_MSG_Q931_PROGRESS		PSG_MSG_DSS1_CPG#define PSG_MSG_Q931_SETUP			PSG_MSG_DSS1_SETUP#define PSG_MSG_Q931_SETUP_ACK		PSG_MSG_DSS1_SA#define PSG_MSG_Q931_CONNECT		PSG_MSG_DSS1_CONN#define PSG_MSG_Q931_CONNECT_ACK	PSG_MSG_DSS1_CA// Call information phase messages#define PSG_MSG_Q931_USER_INF		PSG_MSG_DSS1_USR#define PSG_MSG_Q931_SUSPEND_REJ	PSG_MSG_DSS1_SUSR#define PSG_MSG_Q931_RESUME_REJ		PSG_MSG_DSS1_RESR#define PSG_MSG_Q931_HOLD			PSG_MSG_DSS1_HLD #define PSG_MSG_Q931_SUSPEND		PSG_MSG_DSS1_SUS#define PSG_MSG_Q931_RESUME			PSG_MSG_DSS1_RES#define PSG_MSG_Q931_HOLD_ACK		PSG_MSG_DSS1_HLDA#define PSG_MSG_Q931_SUSPEND_ACK	PSG_MSG_DSS1_SUSA					#define PSG_MSG_Q931_RESUME_ACK		PSG_MSG_DSS1_RESA#define PSG_MSG_Q931_HOLD_REJ		PSG_MSG_DSS1_HLDR#define PSG_MSG_Q931_RETRIEVE		PSG_MSG_DSS1_RTR#define PSG_MSG_Q931_RETRIEVE_ACK	PSG_MSG_DSS1_RTRA#define PSG_MSG_Q931_RETRIEVE_REJ	PSG_MSG_DSS1_RTRR// Call clearing messages#define PSG_MSG_Q931_DISCONNECT		PSG_MSG_DSS1_DISC#define PSG_MSG_Q931_RESTART		PSG_MSG_DSS1_RST#define PSG_MSG_Q931_RELEASE		PSG_MSG_DSS1_REL#define PSG_MSG_Q931_RESTART_ACK	PSG_MSG_DSS1_RSTA#define PSG_MSG_Q931_RELEASE_COM	PSG_MSG_DSS1_RLC//#define PSG_MSG_Q931_FAIL					0x5b//#define PSG_MSG_Q931_T302EXP				0x5c// #define PSG_MSG_Q931_RERR					0x5d// Miscallaneous messages#define PSG_MSG_Q931_FACILITY		PSG_MSG_DSS1_FAC#define PSG_MSG_Q931_REGISTER		PSG_MSG_DSS1_REG#define PSG_MSG_Q931_NOTIFY 		PSG_MSG_DSS1_NTF#define PSG_MSG_Q931_STATUS_ENQUIRY	PSG_MSG_DSS1_STENQ#define PSG_MSG_Q931_CONGESTION_CTRL	PSG_MSG_DSS1_CGC#define PSG_MSG_Q931_INFORMATION 	PSG_MSG_DSS1_INFO#define PSG_MSG_Q931_STATUS			PSG_MSG_DSS1_STA#define PSG_MSG_Q931_SEGMENT		0x140//// Q850 cause value, it can be apply in ISUP and LAYER3.//#define Q850_CAUSE_N1		0x01 // Unallocated (unassigned) number#define Q850_CAUSE_N2		0x02 // No route to specified transit network (national use)#define Q850_CAUSE_N3		0x03 // No route to destination#define Q850_CAUSE_N4		0x04 // Send special information tone#define Q850_CAUSE_N5		0x05 // Misdialled trunk prefix (national use)#define Q850_CAUSE_N6		0x06 // Channel unacceptable#define Q850_CAUSE_N7		0x07 // Call awarded and being delivered in an established channel#define Q850_CAUSE_N8		0x08 // Preemption#define Q850_CAUSE_N9		0x09 // Preemption - circuit reserved for reuse#define Q850_CAUSE_N16		0x10 // Normal call clearing#define Q850_CAUSE_N17		0x11 // User busy#define Q850_CAUSE_N18		0x02 // No user responding#define Q850_CAUSE_N19		0x13 // No answer from user (user alerted)#define Q850_CAUSE_N20		0x14 // Subscriber absent#define Q850_CAUSE_N21		0x15 // Call rejected#define Q850_CAUSE_N22		0x16 // Number changed#define Q850_CAUSE_N23		0x17 // Redirection to new destination#define Q850_CAUSE_N25		0x19 // Exchange - routing error#define Q850_CAUSE_N26		0x1a // Non-selected user clearing#define Q850_CAUSE_N27		0x1b // Destination out of order#define Q850_CAUSE_N28		0x1c // Invalid number format (address incomplete)#define Q850_CAUSE_N29		0x1d // Facility rejected#define Q850_CAUSE_N30		0x1e // Response to STATUS ENQUIRY#define Q850_CAUSE_N31		0x1f // Normal, unspecified#define Q850_CAUSE_N34		0x22 // No circuit/channel available#define Q850_CAUSE_N38		0x26 // Network out of order#define Q850_CAUSE_N39		0x27 // Permanent frame mode connection out of service#define Q850_CAUSE_N40		0x28 // Permanent frame mode connection operational#define Q850_CAUSE_N41		0x29 // Temporary failure#define Q850_CAUSE_N42		0x2a // Switching equipment congestion#define Q850_CAUSE_N43		0x2b // Access information discarded#define Q850_CAUSE_N44		0x2c // Requested circuit/channel not available#define Q850_CAUSE_N46		0x2e // Precedence call blocked#define Q850_CAUSE_N47		0x2f // Resource unavailable, unspecified#define Q850_CAUSE_N49		0x31 // Quality of Service not available#define Q850_CAUSE_N50		0x32 // Requested facility not subscribed#define Q850_CAUSE_N53		0x35 // Outgoing calls barred within CUG#define Q850_CAUSE_N55		0x37 // Incoming calls barred within CUG#define Q850_CAUSE_N57		0x39 // Bearer capability not authorized#define Q850_CAUSE_N58		0x3a // Bearer capability not presently available#define Q850_CAUSE_N62		0x3e // Inconsistency in designated outgoing access information and subscriber class#define Q850_CAUSE_N63		0x3f // Service or option not available, unspecified#define Q850_CAUSE_N65		0x41 // Bearer capability not implemented#define Q850_CAUSE_N66		0x42 // Channel type not implemented#define Q850_CAUSE_N69		0x45 // Requested facility not implemented#define Q850_CAUSE_N70		0x46 // Only restricted digital information bearer capability is available (national use)#define Q850_CAUSE_N79		0x4f // Service or option not implemented, unspecified#define Q850_CAUSE_N81		0x51 // Invalid call reference value#define Q850_CAUSE_N82		0x52 // Identified channel does not exist#define Q850_CAUSE_N83		0x53 // A suspended call exists, but this call identity does not#define Q850_CAUSE_N84		0x54 // Call identity in use#define Q850_CAUSE_N85		0x55 // No call suspended#define Q850_CAUSE_N86		0x56 // Call having the requested call identity has been cleared#define Q850_CAUSE_N87		0x57 // User not member of CUG#define Q850_CAUSE_N88		0x58 // Incompatible destination#define Q850_CAUSE_N90		0x5a // Non-existent CUG#define Q850_CAUSE_N91		0x5b // Invalid transit network selection (national use)#define Q850_CAUSE_N95		0x5f // Invalid message, unspecified#define Q850_CAUSE_N96		0x60 // Mandatory information element is missing#define Q850_CAUSE_N97		0x61 // Message type non-existent or not implemented#define Q850_CAUSE_N98		0x62 // Message not compatible with call state or message type non-existent or not implemented#define Q850_CAUSE_N99		0x63 // Information element/parameter non-existent or not implemented#define Q850_CAUSE_N100		0x64 // Invalid information element contents#define Q850_CAUSE_N101		0x65 // Message not compatible with call state#define Q850_CAUSE_N102		0x66 // Recovery on timer expiry#define Q850_CAUSE_N103		0x67 // Parameter non-existent or not implemented - passed on (national use)#define Q850_CAUSE_N110		0x6e // Message with unrecognized parameter discarded#define Q850_CAUSE_N111		0x6f // Protocol error, unspecified#define Q850_CAUSE_N127		0x7f // Interworking, unspecified// Declare Q.931 & Q.932 notification indicator.#define NTF_SUSPENDED		0x00 // 0  0  0  0  0  0  0     User suspended#define NTF_RESUME			0x01 // 0  0  0  0  0  0  1     User resume#define NTF_BS_CHANGE		0x02 // 0  0  0  0  0  1  0     Bearer service change#define NTF_CALL_DELAY		0x04 // 0  0  0  0  1  0  0     Call completion delay#define NTF_EXTENSION_ANS1	0X03 // 0  0  0  0  0  1  1     Discriminator for extension to ASN.1 encoded component (Note)#define NTF_CONF_ESTAB		0x42 // 1  0  0  0  0  1  0     Conference established#define NTF_CONF_DISC		0x43 // 1  0  0  0  0  1  1     Conference disconnected#define NTF_OP_ADDED		0x44 // 1  0  0  0  1  0  0     Other party added#define NTF_ISOLATED		0x45 // 1  0  0  0  1  0  1     Isolated#define NTF_REATTACHED		0x46 // 1  0  0  0  1  1  0     Reattached#define NTF_OP_ISOLATED		0x47 // 1  0  0  0  1  1  1     Other party isolated#define NTF_OP_REATTACHED	0x48 // 1  0  0  1  0  0  0     Other party reattached#define NTF_OP_SPLIT		0x49 // 1  0  0  1  0  0  1     Other party split#define NTF_OP_DISC			0x4A // 1  0  0  1  0  1  0     Other party disconnected#define NTF_CONF_FLOATING	0x4B // 1  0  0  1  0  1  1     Conference floating#define NTF_CONF_SUP		0x4F // 1  0  0  1  1  1  1     Conference floating, served user preempted#define NTF_CONF_DP			0x4C // 1  0  0  1  1  0  0     Conference disconnected, preemption#define NTF_REMOTE_HOLD		0x79 // 1  1  1  1  0  0  1     Remote hold#define NTF_REMOTE_RETR		0x7A // 1  1  1  1  0  1  0     Remote retrieval#define NTF_CALL_WAITING	0x60 // 1  1  0  0  0  0  0     Call is a waiting call#define NTF_CALL_DIVERTING	0x7B // 1  1  1  1  0  1  1     Call is diverting#define NTF_DIVERSION_ACT	0x68 // 1  1  0  1  0  0  0     Diversion activated// #define NTF_1  1  0  1  0  0  1     Reserved for call transfer// #define NTF_1  1  0  1  0  1  0     Reserved for call transfer#define NTF_REVERSE_CHG		0x6E // 1  1  0  1  1  1  0     Reverse charging//// Declare restart indicator.//#define RI_INDICATED_CHANNEL	0x00 // 0  0  0	Indicated channels (Note 1)#define RI_SINGLE_INTERFACE		0x06 // 1  1  0	Single interface (Note 2)#define RI_ALL_INTERFACE		0x07 // 1  1  1	All interfaces (Note 3)#endif// ------------------------------------------------------------------------////   //  ==============////  1.0,        2005-09-10,     zhu Minyu//      Initial version.//// ------------------------------------------------------------------------

⌨️ 快捷键说明

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