The connection information (SccpConnInfo) message is returned to the application by the SCCP layer with a SCCPCONNAUDCFM event, in response to an application call to SCCPConnAuditRqst. The connection information in this message includes the protocol class (class 2 or class 3), the calling and called party addresses, the connection type, and current connection state.
typedef struct sccpConnInfo /* Connection Info (audit confirm) */
{
SccpProtoClass protoClass; /* protocol class */
SccpAddr calledPty; /* called party address */
SccpAddr callingPty; /* calling party address */
U8 reason; /* reserved for future use */
U8 connState; /* connection state */
#define SCCP_CONN_RDY_ST 0x00 /* ready (idle) state */
#define SCCP_CONN_CON_ST 0x01 /* connecting state */
#define SCCP_CONN_DTX_ST 0x02 /* data Transfer state */
#define SCCP_CONN_RCG_ST 0x03 /* reset (calling side) state */
#define SCCP_CONN_RCD_ST 0x04 /* reset (called side) state */
#define SCCP_CONN_RBT_ST 0x05 /* reset (both sides) state */
#define SCCP_CONN_RLS_ST 0x06 /* releasing state */
U8 connType; /* connection type */
#define SCCP_CONN_ORIG 0x01 /* originating node */
#define SCCP_CONN_DEST 0x02 /* destination node */
#define SCCP_CONN_INTR 0x04 /* intermediate node */
SccpCredit credit; /* proposed window size */
} SccpConnInfo;