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

📄 cci.h

📁 OpenSS7 This the fourth public release of the OpenSS7 Master Package. See README in the release for
💻 H
📖 第 1 页 / 共 3 页
字号:
/***************************************************************************** @(#) cci.h,v 0.9.2.4 2006/10/31 21:04:37 brian Exp ----------------------------------------------------------------------------- Copyright (c) 2001-2006  OpenSS7 Corporation <http://www.openss7.com/> Copyright (c) 1997-2001  Brian F. G. Bidulock <bidulock@openss7.org> All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ----------------------------------------------------------------------------- U.S. GOVERNMENT RESTRICTED RIGHTS.  If you are licensing this Software on behalf of the U.S. Government ("Government"), the following provisions apply to you.  If the Software is supplied by the Department of Defense ("DoD"), it is classified as "Commercial Computer Software" under paragraph 252.227-7014 of the DoD Supplement to the Federal Acquisition Regulations ("DFARS") (or any successor regulations) and the Government is acquiring only the license rights granted herein (the license rights customarily provided to non-Government users).  If the Software is supplied to any unit or agency of the Government other than DoD, it is classified as "Restricted Computer Software" and the Government's rights in the Software are defined in paragraph 52.227-19 of the Federal Acquisition Regulations ("FAR") (or any successor regulations) or, in the cases of NASA, in paragraph 18.52.227-86 of the NASA Supplement to the FAR (or any successor regulations). ----------------------------------------------------------------------------- Commercial licensing and support of this software is available from OpenSS7 Corporation at a fee.  See http://www.openss7.com/ ----------------------------------------------------------------------------- Last Modified 2006/10/31 21:04:37 by brian ----------------------------------------------------------------------------- cci.h,v Revision 0.9.2.4  2006/10/31 21:04:37  brian - changes for 32-bit compatibility and remove HZ dependency *****************************************************************************/#ifndef __CCI_H__#define __CCI_H__#ident "@(#) cci.h,v openss7-0_9_2_E(0.9.2.4) Copyright (c) 2001-2006 OpenSS7 Corporation."/* This file can be processed by doxygen(1). */typedef lmi_long cc_long;typedef lmi_ulong cc_ulong;typedef lmi_ushort cc_ushort;typedef lmi_uchar cc_uchar;#define CC_INFO_REQ		0#define CC_OPTMGMT_REQ		1#define CC_BIND_REQ		2#define CC_UNBIND_REQ		3#define CC_ADDR_REQ		4#define CC_SETUP_REQ		5#define CC_MORE_INFO_REQ	6	/* ISDN only */#define CC_INFORMATION_REQ	7#define CC_CONT_CHECK_REQ	8	/* ISUP only */#define CC_CONT_TEST_REQ	9	/* ISUP only */#define CC_CONT_REPORT_REQ	10	/* ISUP only */#define CC_SETUP_RES		11#define CC_PROCEEDING_REQ	12#define CC_ALERTING_REQ		13#define CC_PROGRESS_REQ		14#define CC_IBI_REQ		15	/* (same as CC_DISCONNECT_REQ in ISDN) */#define CC_DISCONNECT_REQ	15#define CC_CONNECT_REQ		16#define CC_SETUP_COMPLETE_REQ	17	/* ISDN only */#define CC_FORWXFER_REQ		18	/* ISUP only */#define CC_SUSPEND_REQ		19#define CC_SUSPEND_RES		20	/* ISDN only */#define CC_SUSPEND_REJECT_REQ	21	/* ISDN only */#define CC_RESUME_REQ		22#define CC_RESUME_RES		23	/* ISDN only */#define CC_RESUME_REJECT_REQ	24	/* ISDN only */#define CC_REJECT_REQ		25	/* ISDN only */#define CC_RELEASE_REQ		26#define CC_RELEASE_RES		27	/* ISUP only */#define CC_NOTIFY_REQ		28	/* ISDN only */#define CC_RESTART_REQ		29	/* ISDN only */#define CC_RESET_REQ		30	/* ISUP only */#define CC_RESET_RES		31	/* ISUP only */#define CC_BLOCKING_REQ		32	/* ISUP only */#define CC_BLOCKING_RES		33	/* ISUP only */#define CC_UNBLOCKING_REQ	34	/* ISUP only */#define CC_UNBLOCKING_RES	35	/* ISUP only */#define CC_QUERY_REQ		36	/* ISUP only */#define CC_QUERY_RES		37	/* ISUP only */#define CC_STOP_REQ		38	/* ISUP only */#define CC_OK_ACK		64#define CC_ERROR_ACK		65#define CC_INFO_ACK		66#define CC_BIND_ACK		67#define CC_OPTMGMT_ACK		68#define CC_ADDR_ACK		69#define CC_CALL_REATTEMPT_IND	70	/* ISUP only */#define CC_SETUP_IND		71	/* recv IAM */#define CC_MORE_INFO_IND	72	/* ISDN only */#define CC_INFORMATION_IND	73	/* recv SAM */#define CC_CONT_CHECK_IND	74	/* ISUP only */#define CC_CONT_TEST_IND	75	/* ISUP only */#define CC_CONT_REPORT_IND	76	/* ISUP only */#define CC_SETUP_CON		77#define CC_PROCEEDING_IND	78	/* recv ACM w/ no indication if proceeding not sent before */#define CC_ALERTING_IND		79	/* recv ACM w/ subscriber free indication */#define CC_PROGRESS_IND		80	/* recv ACM w/ no indication and ATP parameter and call					   proceeding sent */#define CC_IBI_IND		81	/* recv ACM or CPG w/ inband info (same as					   CC_DISCONNECT_IND in ISDN) */#define CC_DISCONNECT_IND	81#define CC_CONNECT_IND		82#define CC_SETUP_COMPLETE_IND	83	/* ISDN only */#define CC_FORWXFER_IND		84	/* ISUP only */#define CC_SUSPEND_IND		85#define CC_SUSPEND_CON		86	/* ISDN only */#define CC_SUSPEND_REJECT_IND	87	/* ISDN only */#define CC_RESUME_IND		88#define CC_RESUME_CON		89	/* ISDN only */#define CC_RESUME_REJECT_IND	90	/* ISDN only */#define CC_REJECT_IND		91	/* ISDN only */#define CC_CALL_FAILURE_IND	92	/* ISUP only (ERROR_IND?) */#define CC_RELEASE_IND		93#define CC_RELEASE_CON		94#define CC_NOTIFY_IND		95	/* ISDN only */#define CC_RESTART_CON		96	/* ISDN only */#define CC_STATUS_IND		97	/* ISDN only */#define CC_ERROR_IND		98	/* ISDN only (CALL_FAILURE_IND?) */#define CC_DATALINK_FAILURE_IND	99	/* ISDN only */#define CC_INFO_TIMEOUT_IND	100#define CC_RESET_IND		101	/* ISUP only */#define CC_RESET_CON		102	/* ISUP only */#define CC_BLOCKING_IND		103	/* ISUP only */#define CC_BLOCKING_CON		104	/* ISUP only */#define CC_UNBLOCKING_IND	105	/* ISUP only */#define CC_UNBLOCKING_CON	106	/* ISUP only */#define CC_QUERY_IND		107	/* ISUP only */#define CC_QUERY_CON		108	/* ISUP only */#define CC_STOP_IND		109	/* ISUP only */#define CC_MAINT_IND		110	/* ISUP only */#define CC_START_RESET_IND	111	/* ISUP only *//* *  Interface state */enum {	CCS_UNBND,	CCS_IDLE,	CCS_WIND_SETUP,	CCS_WREQ_SETUP,	CCS_WREQ_MORE,	CCS_WIND_MORE,	CCS_WREQ_INFO,	CCS_WIND_INFO,	CCS_WACK_INFO,	CCS_WCON_SREQ,	CCS_WRES_SIND,	CCS_WREQ_CCREP,	CCS_WIND_CCREP,	CCS_WREQ_PROCEED,	CCS_WIND_PROCEED,	CCS_WACK_PROCEED,	CCS_WREQ_ALERTING,	CCS_WIND_ALERTING,	CCS_WACK_ALERTING,	CCS_WREQ_PROGRESS,	CCS_WIND_PROGRESS,	CCS_WACK_PROGRESS,	CCS_WREQ_IBI,	CCS_WIND_IBI,	CCS_WACK_IBI,	CCS_WREQ_CONNECT,	CCS_WIND_CONNECT,	CCS_WCON_CREQ,	CCS_WACK_FORWXFER,	CCS_WCON_SUSREQ,	CCS_CONNECTED,	CCS_SUSPENDED,	CCS_WIND_RELEASE,	CCS_WCON_RELREQ,	CCS_WRES_RELIND,	CCS_UNUSABLE,};typedef struct CC_ok_ack {	cc_ulong cc_primitive;		/* always CC_OK_ACK */	cc_ulong cc_correct_prim;	/* primitive being acknowledged */	cc_ulong cc_state;		/* current state */	cc_ulong cc_call_ref;		/* call reference */} CC_ok_ack_t;typedef struct CC_error_ack {	cc_ulong cc_primitive;		/* always CC_ERROR_ACK */	cc_ulong cc_error_primitive;	/* primitive in error */	cc_ulong cc_error_type;		/* CCI error code */	cc_ulong cc_unix_error;		/* UNIX system error code */	cc_ulong cc_state;		/* current state */	cc_ulong cc_call_ref;		/* call reference */} CC_error_ack_t;enum {	CCSYSERR = 0,	CCOUTSTATE,	CCBADADDR,	CCBADDIGS,	CCBADOPT,	CCNOADDR,	CCADDRBUSY,	CCBADCLR,	CCBADTOK,	CCBADFLAG,	CCNOTSUPP,	CCBADPRIM,	CCACCESS,};typedef struct CC_info_req {	cc_ulong cc_primitive;		/* always CC_INFO_REQ */} CC_info_req_t;typedef struct CC_info_ack {	cc_ulong cc_primitive;		/* always CC_INFO_ACK */	/* FIXME ... more ...  */} CC_info_ack_t;typedef struct CC_bind_req {	cc_ulong cc_primitive;		/* always CC_BIND_REQ */	cc_ulong cc_addr_length;	/* length of address */	cc_ulong cc_addr_offset;	/* offset of address */	cc_ulong cc_setup_ind;		/* req # of setup inds to be queued */	cc_ulong cc_bind_flags;		/* bind options flags */} CC_bind_req_t;/*   Flags associated with CC_BIND_REQ  */#define CC_DEFAULT_LISTENER		0x000000001UL#define CC_TOKEN_REQUEST		0x000000002UL#define CC_MANAGEMENT			0x000000004UL#define CC_TEST				0x000000008UL#define CC_MAINTENANCE			0x000000010UL#define CC_MONITOR			0x000000020ULtypedef struct CC_bind_ack {	cc_ulong cc_primitive;		/* always CC_BIND_ACK */	cc_ulong cc_addr_length;	/* length of address */	cc_ulong cc_addr_offset;	/* offset of address */	cc_ulong cc_setup_ind;		/* setup indications */	cc_ulong cc_token_value;	/* setup response token value */} CC_bind_ack_t;typedef struct CC_unbind_req {	cc_ulong cc_primitive;		/* always CC_UNBIND_REQ */} CC_unbind_req_t;typedef struct CC_addr_req {	cc_ulong cc_primitive;		/* always CC_ADDR_REQ */	cc_ulong cc_call_ref;		/* call reference */} CC_addr_req_t;typedef struct CC_addr_ack {	cc_ulong cc_primitive;		/* always CC_ADDR_ACK */	cc_ulong cc_bind_length;	/* length of bound address */	cc_ulong cc_bind_offset;	/* offset of bound address */	cc_ulong cc_call_ref;		/* call reference */	cc_ulong cc_conn_length;	/* length of connected address */	cc_ulong cc_conn_offset;	/* offset of connected address */} CC_addr_ack_t;typedef struct CC_optmgmt_req {	cc_ulong cc_primitive;		/* always CC_OPTMGMT_REQ */	cc_ulong cc_call_ref;		/* call reference */	cc_ulong cc_opt_length;		/* length of option values */	cc_ulong cc_opt_offset;		/* offset of option values */	cc_ulong cc_opt_flags;		/* option flags */} CC_optmgmt_req_t;typedef struct CC_optmgmt_ack {	cc_ulong cc_primitive;		/* always CC_OPTMGMT_ACK */	cc_ulong cc_call_ref;		/* call reference */	cc_ulong cc_opt_length;		/* length of option values */	cc_ulong cc_opt_offset;		/* offset of option values */	cc_ulong cc_opt_flags;		/* option flags */} CC_optmgmt_ack_t;typedef struct CC_setup_req {	cc_ulong cc_primitive;		/* always CC_SETUP_REQ */	cc_ulong cc_user_ref;		/* user call reference */	cc_ulong cc_call_type;		/* call type */	cc_ulong cc_call_flags;		/* call flags */	cc_ulong cc_cdpn_length;	/* called party number length */	cc_ulong cc_cdpn_offset;	/* called party number offset */	cc_ulong cc_opt_length;		/* optional parameters length */	cc_ulong cc_opt_offset;		/* optional parameters offset */	cc_ulong cc_addr_length;	/* connect to address length */	cc_ulong cc_addr_offset;	/* connect to address offset */} CC_setup_req_t;typedef struct CC_call_reattempt_ind {

⌨️ 快捷键说明

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