#ifndef _MGCP_STRUCT__H
#define _MGCP_STRUCT__H

#include "mgcp.h"
#include "mgcp_const.h"

typedef struct _MGCP_PORT
{
	BYTE		flag;		// used or not
	BYTE		sapIndex;
	BYTE		state;		// mgcp transaction state
	BYTE		state2;		// mgcp transaction state #2
	BYTE		cmd;		// mgcp command
	BYTE		reqInd;		// request or indication
	BYTE		gotProvRes;	// got provisional response flag
	WORD		usrPort;
	
	DWORD		timer;
	DWORD		transId;	// transaction id
	
	MGCP_PARA	para;		// operation specific parameters, used for command
//	MGCP_PARA	paraAux;	// auxilliary parameters, used for response
}MGCP_PORT;

typedef struct _MGCP_RET_CODE
{
	WORD		retCode;
	char		desc[64];
}MGCP_RET_CODE;

#endif
