#ifndef _SIP_EXT__H
#define _SIP_EXT__H

#include "sip_pub.h"
#include "sip.h"
#include "sip_const.h"
#include "sip_struct.h"

extern int		sipUdpSocketFd;
extern int		sipTcpServerSocketFd;

extern char		sipHostName[50];
extern char		sipDottedHostIp[20];
extern DWORD	sipHostIp;

extern BYTE 	sipUdpMsgSdBuf[SIP_MAX_UDP_MSG_LEN];
extern BYTE 	sipUdpMsgRvBuf[SIP_MAX_UDP_MSG_LEN];
extern BYTE	sipTcpMsgRvBuf[SIP_MAX_TCP_MSG_LEN];

extern BYTE		sipEncBuf[SIP_MAX_UDP_MSG_LEN];
extern char		sipEscapeBuf[SIP_MAX_ESCAPE_BUF_LEN];

extern SIP_TCP_SOCK		sipTcpSock[SIP_MAX_NUM_OF_TCP_SOCK];

extern SIP_API_STRUCT		sipRecvMsg;
extern SIP_API_STRUCT		sipSendMsg;

extern SIP_API_STRUCT		sipToUpMsg;

extern struct 	sockaddr_in	sipSrcInAddr;
extern struct 	sockaddr_in	sipDstInAddr;

extern int 				sipHdrRefTable[SIP_HASH_TABLE_SIZE];
extern SIP_HDR_CONFIG 	sipParseConfig[SIP_MAX_NUM_OF_HEADERS];

extern SIP_USERS_STRUCT	sipUsers;
extern SIP_TRANSACTION	sipTrans[SIP_MAX_NUM_OF_TRANS];

//extern SIP_SIP_UA_USER     sipSipUaUser[SIP_MAX_NUM_OF_SIP_UA_USER];

extern WORD				sipTransHead;

extern BYTE				sipAsciInBuf[SIP_MAX_ASCIIIN_LEN];
extern BYTE				sipAsciOutBuf[SIP_MAX_ASCIIOUT_LEN];
extern BYTE				sipAsciTempBuf[SIP_MAX_ASCITMP_LEN];
extern WORD				sipMonitorFg;

#endif
