#ifndef _SIP_UA_CONST_H
#define _SIP_UA_CONST_H

#define SIP_UA_MAX_NUM_OF_PORT      4096//8192

#define SIP_UA_MAX_NUM_OF_DIALOG    4096//8192

#define SIP_UA_MAX_NUM_OF_SAP       4

#define SIP_UA_NULL_DIALOG          0xFFFF

#define SIP_UA_NULL_PORT                0xFFFF

#define SIP_UA_NULL_UP_PORT         0xFFFF

#define SIP_UA_SEND_COM_NULL            0

#define SIP_UA_RECV_COM_NULL            0

#define SIP_UA_FSM_STATE_INDICATE              1
#define SIP_UA_FSM_STATE_REQUEST               2

#define SIP_UA_MAIN_STATE_IDLE                          0
#define SIP_UA_MAIN_STATE_INVITE_REQ              1
#define SIP_UA_MAIN_STATE_NON_INVITE_REQ     2
#define SIP_UA_MAIN_STATE_INVITE_RSP              3
#define SIP_UA_MAIN_STATE_NON_INVITE_RSP     4
#define SIP_UA_MAIN_STATE_INIT                          5

#define SIP_UA_SEND_REQUEST					1
#define SIP_UA_REQ_WAIT_FOR_RSP				2
#define SIP_UA_INV_REQ_TERMINATED				3
#define SIP_UA_SEND_RESPONSE					4
#define SIP_UA_INV_200_RSP_WAIT_FOR_ACK		5
#define SIP_UA_INV_RSP_TERMINATED				6

#define WAIT_200_ACK_TIME_OUT               97
#define WAIT_RSP_TIME_OUT                       98

#define SIP_UA_TIMER_RETRANSMIT_200                 50
#define SIP_UA_TIMER_WAIT_INV_RSP                     3300
#define SIP_UA_TIMER_WAIT_INV_200_RSP             5000
#define SIP_UA_TIMER_WAIT_NON_INV_RSP            1000
#define SIP_UA_TIMER_WAIT_ACK                            1000
#define SIP_UA_TIMER_T1                                         300//3200
#define SIP_UA_TIMER_TIME_OUT                            18000

#define SIP_UA_TIMER_T2			5
#define SIP_UA_TIMER_T3			20	

#define SIP_UA_FSM_TIMER                       3300//SIP_UA_TIMER_T1;

#define SIP_UA_MAX_TAG_LEN                  64//128
#define SIP_UA_MAX_BRANCH_LEN            64

#endif

