/*	TCAP public define head file		*/
/*	written by Liu Zhiguo 2002-08-06	*/
/*	Version 2.0							*/
/*	-------------------------------		*/

#ifndef _TCAP_PUBLIC
#define _TCAP_PUBLIC

#include "../../../public/src/include/includes.h"
#include "tcap_head.h"

#define MAX_DIALOGUEID		4096
#define MAX_INVOKEID		256
#define TCAP_ASCIN_LEN		80
#define TCAP_ASCOUT_LEN		4096
#define TCAP_UTILIZE_COUNT	97
#define TCAP_UTILIZE_LEN	76
#define TCAP_HB_LEN			8
#define TCAP_DLG_LEN		128		// max dialogue length
#define TCAP_CMP_LEN		256		// max component length
#define TCAP_ACN_LEN		10		// max context name length
#define TCAP_USERINFO_LEN	64		// max user infomation length
#define TCAP_UABORT_INFO_LEN		64		// max user abort infomation length
#define TCAP_SECURITY_CONTEXT_LEN	64		// max security context infomation length
#define TCAP_CONFIDENTIAL_INFO_LEN	64		// max confidentiality infomation length
#define MAX_TEMPINVOKEID	8
#define TCAP_BUF_LEN		256
#define TCAP_SLS_NUM		16
//#define TCAP_PARAM_LEN		170		// max parameter length when has dialogue portion
#define TCAP_PARAM_LEN		210		// max parameter length when has dialogue portion
#define TCAP_PARAM_LEN_1	210		// max parameter length when has not dialogue portion

#define MAX_TSL_BUF			4
#define MAX_CSL_BUF			4

#define TCAP_MODULE_ID		3
#define TCAP_SYSTEM_ID		4
#define TCAP_LED_CODE		5

/*	the state of TSM or DSM		*/
#define TCAP_INIT			0
#define TCAP_IDLE			1
#define TCAP_IR				2	// initiation received
#define TCAP_IS				3	// initiation send
#define TCAP_ACTIVE			4	// active state
#define TCAP_SUSPEND		7	// suspend state
/*	the state of ISM	*/
#define SENT_STATE1			2
#define SENT_STATE2			3
#define SENT_STATE3			4
#define SENT_STATE4			5
#define WAIT_REJECT_STATE	6

/*	the class of ISM	*/
#define OPERATION_CLASS1	1	// operation class 1
#define OPERATION_CLASS2	2	// operation class 2
#define OPERATION_CLASS3	3	// operation class 3
#define OPERATION_CLASS4	4	// operation class 4

#define INVOKE_TIMER		10
#define REJECT_TIMER		2
#define SUSPEND_TIMER		2
#define IDLE_TIMER			60
#define	EXPIRE_TIMER		240
#define TCAP_TIMERHZ		50
#define ISM_TIMERHZ			50

#endif
