#define HTTP_INFO_TYPE		0
#define HTTP_INFO_BLOCK		1
#define HTTP_INFO_MAXLEN	2
#define HTTP_INFO_BEGINPOS	3
#define HTTP_INFO_LEFTLEN	4
#define HTTP_INFO_NUM		5

#define HTTP_IP_ADDR		0
#define HTTP_USE_GK			1
#define HTTP_RING_TYPE		2
#define HTTP_PHONE_NUMBER	3
#define HTTP_SUBNET_MASK	4
#define HTTP_ROUTER_ADDR	5
#define HTTP_IP_TYPE		6
#define HTTP_HANDSET_INPUT	7
#define HTTP_HANDSET_OUTPUT	8
#define HTTP_USE_AGC		9
#define HTTP_DNS_ADDR		10
#define HTTP_RING_NUMBER	12
#define HTTP_LOCAL_ALIAS	13
#define HTTP_HANDFREE_OUTPUT	14
#define HTTP_DTMF_PTYPE		15
#define HTTP_AUDIO_FRAMES	16
#define HTTP_Q931_PORT		17
#define HTTP_USE_VAD		18
#define HTTP_USE_HIGH_RATE	19
#define HTTP_HANDFREE_INPUT	20
#define HTTP_NAT_DNS		21
#define HTTP_NAT_TRAVERSAL	22
#define HTTP_FAST_START		23
#define HTTP_DTMF_TYPE		24
#define HTTP_PASSWORD		25
#define HTTP_COUNTRY_CODE	26
#define HTTP_INTL_PREFIX	27
#define HTTP_USE_DIALPLAN	28
#define HTTP_AREA_CODE		29
#define HTTP_LONG_PREFIX	30
#define HTTP_NUMBER_LEN		31
#define HTTP_INNER_LINE		32
#define HTTP_DUALMODE_PREFIX	33
#define HTTP_INNERLINE_PREFIX	34
#define HTTP_SERVICE_TYPE	35
#define HTTP_ACCOUNT		36
#define HTTP_PIN			37
#define HTTP_REMOTE_ALIAS	38
#define HTTP_H323ID			39
#define HTTP_PPP_ID			40
#define HTTP_PPP_PASSWORD	41
#define HTTP_GKID			42
#define HTTP_RAS_PORT		43
#define HTTP_H245_PORT		44
#define HTTP_RTP_PORT		45
#define HTTP_USE_AEC		46
#define HTTP_FIRMWARE		47
#define HTTP_PROTOCOL		48
#define HTTP_OUTPUT_DEBUG	49
#define HTTP_USE_DIGITMAP	50
#define HTTP_SUPER_PASSWORD	51
#define HTTP_DIAL_NUMBER	52
#define HTTP_SERVICE_DNS	53
#define HTTP_UPGRADE_ADDR	54
#define HTTP_TITLE			55
#define HTTP_SPEEDDIAL_NAME	56
#define HTTP_SPEEDDIAL_PHONE 57	
#define HTTP_MAC_ADDR		58
#define HTTP_FWD_ALWAYS		59
#define HTTP_FWD_BUSY		60
#define HTTP_FWD_NOANSWER	61
#define HTTP_FWD_POWEROFF	62
#define HTTP_FORWARD_NUMBER	63
#define HTTP_DNS_ADDR2		64
#define HTTP_RTP_TOS		65
#define HTTP_TIME_ZONE		66
#define	HTTP_NTS_ADDR		67
#define	HTTP_DAYLIGHT		68
#define HTTP_REGISTER_TTL	69
#define HTTP_NAT_TTL		70
#define HTTP_CALL_WAITING	71
#define HTTP_JITTER_SIZE	72
#define HTTP_CODEC_TYPE1	73
#define HTTP_CODEC_TYPE2	74
#define HTTP_CODEC_TYPE3	75
#define HTTP_CODEC_TYPE4	76
#define HTTP_CODEC_TYPE5	77
#define HTTP_DUAL_MODE		78
#define HTTP_UPGRADE_TYPE	79
#define HTTP_CODEC_TYPE6	80
#define HTTP_SIP_PRACK		81
#define HTTP_ILBC_PTYPE		82
#define HTTP_REMOTE_DIALPLAN	83
#define HTTP_VLAN_ENABLE	84
#define HTTP_VLAN_ID	85

#define HTTP_IDLE_TTL		600
#define HTTP_WINDOW_SIZE    1280		
#define HTTP_TIME_OUT		60

#define HTTP_STATE_INIT					0
#define HTTP_STATE_REQUEST_BEGIN		1
#define HTTP_STATE_REQUEST_HEAD_END		2
#define HTTP_STATE_REQUEST_END			3
#define HTTP_STATE_SEND_BEGIN			4

#define HTTP_MAX_RECV_LEN		99

extern XCHAR Http_pRecvPacket[HTTP_MAX_RECV_LEN+1];
extern XCHAR Http_iRecvLen;
extern XSHORT Http_iCurMsgLen; 
extern XLONG Http_lContentLen;
extern XCHAR Http_iState;
extern BOOLEAN Http_bBrokenLine;
