Use the same Q931mes_Generic for all messages for simplicity.

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@137 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris committed 2007-05-24 14:27:20 +00:00
1 parent 8ab54893ce
commit 4f86bcc241
8 files changed
+117 -613

No files matched your search

+5 -501
View File
@@ -1373,6 +1373,7 @@ typedef struct
ie Segment; /* Segmented message */
ie BearerCap; /* Bearer Capability */
ie Cause; /* Cause */
ie CallState; /* Call State */
ie CallID; /* Call Identity */
ie ChanID; /* Channel Identification */
ie ProgInd; /* Progress Indicator */
@@ -1396,6 +1397,8 @@ typedef struct
ie CallingSub; /* Calling Party Subaddress */
ie RedirNum; /* Redirection Number */
ie TransNetSel; /* Transmit Network Selection */
ie LLRepeatInd; /* Repeat Indicator 2 LLComp */
ie RestartWin; /* Restart Window */
ie RestartInd; /* Restart Indicator */
ie LLComp; /* Low Layer Compatibility */
ie HLComp; /* High Layer Compatibility */
@@ -1405,505 +1408,6 @@ typedef struct
}Q931mes_Generic;
/*****************************************************************************
Struct: Q931mes_Alerting
Description: This message is send by the called party to indicate that
the phone is ringing.
The message consist of an header that MUST be identical with
Q931mes_Header, a fixed number of IE flags w/offset, and
a dynamic buffer storing normalized IE's.
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie BearerCap; /* Bearer Capability */
ie ChanID; /* Channel Identification */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie Signal; /* Signal */
ie HLComp; /* High Layer Compatibility */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Alerting;
/*****************************************************************************
Struct: Q931mes_CallProceeding
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie BearerCap; /* Bearer Capability */
ie ChanID; /* Channel Identification */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie HLComp; /* High Layer Compatibility */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_CallProceeding;
/*****************************************************************************
Struct: Q931mes_Connect
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie BearerCap; /* Bearer Capability */
ie ChanID; /* Channel Identification */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie DateTime; /* Date/Time */
ie Signal; /* Signal */
ie LLComp; /* Low Layer Compatibility */
ie HLComp; /* High layer Compatibility */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Connect;
/*****************************************************************************
Struct: Q931mes_ConnectAck
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Display; /* Display */
ie Signal; /* Signal */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_ConnectAck;
/*****************************************************************************
Struct: Q931mes_Disconnect
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie Signal; /* Signal */
#ifdef Q931_X25_SUPPORT
ie UserUser; /* User - user. Packed Mode. */
#endif
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Disconnect;
/*****************************************************************************
Struct: Q931mes_Information
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie SendComplete; /* Sending Complete */
ie Display; /* Display */
ie KeypadFac; /* Keypad facility */
ie Signal; /* Signal */
ie CalledNum; /* Called party number */
#ifdef Q931_X25_SUPPORT
ie Cause; /* Cause (packed only) */
#endif
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Information;
/*****************************************************************************
Struct: Q931mes_Notify
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie BearerCap; /* Bearer Capability */
ie NotifInd; /* Notification Indicator */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Notify;
/*****************************************************************************
Struct: Q931mes_Progress
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie BearerCap; /* Bearer Capability */
ie Cause; /* Cause */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie HLComp; /* High Layer Compatibility */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Progress;
/*****************************************************************************
Struct: Q931mes_Release
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie Display; /* Display */
ie Signal; /* Signal */
#ifdef Q931_X25_SUPPORT
ie UserUser; /* User-User packed mode */
#endif
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Release;
/*****************************************************************************
Struct: Q931mes_ReleaseComplete
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie Display; /* Display */
ie Signal; /* Signal */
#ifdef Q931_X25_SUPPORT
ie UserUser; /* User-User packed mode */
#endif
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_ReleaseComplete;
/*****************************************************************************
Struct: Q931mes_Resume
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie CallID; /* Call Identity */
L3UCHAR buf[1];
}Q931mes_Resume;
/*****************************************************************************
Struct: Q931mes_ResumeAck
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie ChanID; /* Channel ID */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_ResumeAck;
/*****************************************************************************
Struct: Q931mes_ResumeReject
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_ResumeReject;
/*****************************************************************************
Struct: Q931mes_Segment
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Segment;
/*****************************************************************************
Struct: Q931mes_Setup
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie SendComplete; /* Sending Complete */
ie RepeatInd; /* Repeat Indicator */
ie BearerCap; /* Bearer Capability */
ie ChanID; /* Channel ID */
ie ProgInd; /* Progress Indicator */
ie NetFac; /* Network-specific facilities */
/* Note: Up to 4 NetFac's may be */
/* included. */
ie Display; /* Display */
ie DateTime; /* Date/Time */
ie KeypadFac; /* Keypad Facility */
ie Signal; /* Signal */
ie CallingNum; /* Calling party number */
ie CallingSub; /* Calling party sub address */
ie CalledNum; /* Called party number */
ie CalledSub; /* Called party sub address */
ie TransNetSel; /* Transit network selection */
ie LLRepeatInd; /* Repeat Indicator 2 LLComp */
ie LLComp; /* Low layer compatibility */
ie HLComp; /* High layer compatibility */
#ifdef Q931_X25_SUPPORT
/* Packed mode additions */
ie IndoRate; /* Information Rate */
ie EndEndDelay; /* End-end transit delay */
ie TransDelayInd; /* TRansit delay selection and ind. */
ie PackParam; /* Packed layer binary parameters */
ie PackWinSize; /* Packed layer window size */
ie PackSize; /* Packet Size */
ie ClosedUserGrp; /* Closed User Group */
ie RevChargInd; /* Reverse charhing indicator */
ie RedirNum; /* Redirection number */
ie UserUser; /* User-user. */
#endif
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Setup;
/*****************************************************************************
Struct: Q931mes_SetupAck
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie ChanID; /* Channel ID */
ie ProgInd; /* Progress Indicator */
ie Display; /* Display */
ie Signal; /* Signal */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_SetupAck;
/*****************************************************************************
Struct: Q931mes_Status
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie CallState; /* Call State */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Status;
/*****************************************************************************
Struct: Q931mes_StatusEnquire
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_StatusEnquiry;
/*****************************************************************************
Struct: Q931mes_Suspend
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie CallID; /* Call Identity */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Suspend;
/*****************************************************************************
Struct: Q931mes_SuspendAck
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_SuspendAck;
/*****************************************************************************
Struct: Q931mes_SuspendReject
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie Cause; /* Cause */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_SuspendReject;
/*****************************************************************************
Struct: Q931mes_CongestionControl
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie CongLevel; /* Congestion level */
ie Cause; /* Cause */
ie Display; /* Display */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_CongestionControl;
/*****************************************************************************
Struct: Q931mes_UserInformation
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie MoreData; /* More data */
ie UserUser; /* User-user */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_UserInformation;
/*****************************************************************************
Struct: Q931mes_Restart
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie ChanID; /* Channel identification */
ie Display; /* Display */
ie RestartWin; /* Restart Window */
ie RestartInd; /* Restart indicator */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_Restart;
/*****************************************************************************
Struct: Q931mes_RestartAck
*****************************************************************************/
typedef struct
{
L3UINT Size; /* Size of message in bytes */
L3UCHAR ProtDisc; /* Protocol Discriminator */
L3UCHAR MesType; /* Message type */
L3INT CRV; /* Call reference value */
ie ChanID; /* Channel identification */
ie Display; /* Display */
ie RestartWin; /* Restart Window */
ie RestartInd; /* Restart Indicator */
L3UCHAR buf[1]; /* Dynamic buffer */
}Q931mes_RestartAck;
/*****************************************************************************
@@ -2396,8 +1900,8 @@ void Q931SetIEProc(L3UCHAR iec, L3UCHAR dialect,
void Q931Initialize();
void Q931AddDialect(L3UCHAR iDialect, void (*Q931CreateDialectCB)(L3UCHAR iDialect));
L3INT Q931InitMesSetup(Q931mes_Setup *p);
L3INT Q931InitMesRestartAck(Q931mes_RestartAck * pMes);
L3INT Q931InitMesSetup(Q931mes_Generic *p);
L3INT Q931InitMesRestartAck(Q931mes_Generic * pMes);
L3INT Q931CreateCRV(Q931_TrunkInfo_t *pTrunk, L3INT * callIndex);
L3INT Q931AllocateCRV(Q931_TrunkInfo_t *pTrunk, L3INT iCRV, L3INT * callIndex);