#ifndef _SIP_UA_STRUCT_H
#define _SIP_UA_STRUCT_H

#include "sip_ua_pub.h"
#include "sip_ua.h"
#include "sip.h"

typedef struct _SIP_UA_CALL_STRUCT
{
    SIP_HDR_CALL_ID  callId;
    char             fromTag[128];
}SIP_UA_CALL_STRUCT;

typedef struct _SIP_UA_PORT
{
    BYTE		flag;
    BYTE          cgId;//BYTE		sapIndex;
    WORD		dialogId;
    WORD		usrPort;
    WORD		llPort;

    SIP_UA_CALL_STRUCT    callStruct;

    BYTE        sipuafState;
    DWORD       sipuafTimer;

    BYTE		mainState;
    BYTE		state;
    WORD		rcvCmd;
    WORD		sdCmd;

    DWORD	    timer;
    DWORD       timer2;
    DWORD	    waitAckTimer;
    BYTE        retrans200Times;

    SIP_API_STRUCT	sdSipMsg;
}SIP_UA_PORT;

typedef struct _SIP_UA_SAPS
{
	BYTE		flag;
	SIP_UA_SAP	sipUaSap;
}SIP_UA_SAPS;

#endif

