#ifndef _MGCP_CONST__H
#define _MGCP_CONST__H

#define MGCP_REQUEST				1
#define MGCP_INDICATION				2

#define MGCP_TRANS_IDLE_STATE			0
#define MGCP_TRANS_AWAIT_PEER_RESPONSE_STATE	1
#define MGCP_TRANS_AWAIT_USER_RESPONSE_STATE	2
#define MGCP_TRANS_INIT_STATE			3

#define	MGCP_MUTIPLE_T1S					100
#define MGCP_MAX_RETRANS_TIMER					(10 * MGCP_MUTIPLE_T1S)
#define MGCP_RETRANS_TIMER					(2 * MGCP_MUTIPLE_T1S)
#define MGCP_TIME_WAIT_TIMER					(5 * MGCP_MUTIPLE_T1S)

#define MGCP_INT_PORT_2727						4966
#define MGCP_INT_PORT_2427						4967

#define MGCP_MAX_RET_CODE_INDEX				20
#define MGCP_RET_CODE_TRANS_TIME_OUT_INDEX		0
#define MGCP_RET_CODE_INTERNAL_OVERLOAD_INDEX		1
#define MGCP_RET_CODE_UNEP_INDEX	   		2
#define MGCP_RET_CODE_UNCMD_INDEX			3
#define MGCP_RET_CODE_RCD_ERR_INDEX			4
#define MGCP_RET_CODE_INCONID_INDEX			5
#define MGCP_RET_CODE_UNCLLID_INDEX			6
#define MGCP_RET_CODE_UNMD_INDEX			7
#define MGCP_RET_CODE_UNPKG_INDEX			8
#define MGCP_RET_CODE_NES_INDEX 			9
#define MGCP_RET_CODE_ILCO_INDEX			10
#define MGCP_RET_CODE_UNRM_INDEX			11
#define MGCP_RET_CODE_TRANS_OK_INDEX		12
#define MGCP_RET_CODE_TEMP_RSP_INDEX		13

#define MGCP_MAX_ASCIIIN_LEN				4096
#define MGCP_MAX_ASCIIOUT_LEN			  	4096
#define MGCP_MAX_ASCITMP_LEN				4096

#define	MONITOR_NONE		0x0000
#define	MONITOR_ERROR		0x0001
#define	MONITOR_MG0_MSG		0x0002
#define MONITOR_MG1_MSG         0x0004
#define MONITOR_MG2_MSG         0x0008
#define	MONITOR_ALL		0xffff

#endif
