libisdn
|
#include "Q931dialect.h"
Go to the source code of this file.
#define Q931_IE_CODESET_ALL (Q931_IE_CODESET_0 | Q931_IE_CODESET_1 | Q931_IE_CODESET_2 | Q931_IE_CODESET_3 | Q931_IE_CODESET_4 | Q931_IE_CODESET_5 | Q931_IE_CODESET_6 | Q931_IE_CODESET_7) |
Definition at line 71 of file Q931priv.h.
#define Q931_IEF_TO_BOTH (Q931_IEF_TO_NET | Q931_IEF_TO_USER) |
Definition at line 70 of file Q931priv.h.
#define Q931_MSGE_ERR_MAX 10 |
Definition at line 182 of file Q931priv.h.
Referenced by Q931MesgErrorsAddIE().
typedef L3INT( q931die_func_t)(Q931_TrunkInfo_t *trunk, Q931ie_Generic *ie, struct strstream *ostream) |
Definition at line 39 of file Q931priv.h.
typedef L3INT( q931pie_func_t)(Q931_TrunkInfo_t *trunk, L3UCHAR *IBuf, L3UCHAR *OBuf, L3INT *Octet) |
Definition at line 38 of file Q931priv.h.
typedef L3INT( q931pmes_func_t)(Q931_TrunkInfo_t *trunk, Q931mes_Generic *IBuf, L3INT ISize, L3UCHAR *OBuf, L3INT *OSize) |
Definition at line 35 of file Q931priv.h.
typedef L3INT( q931proc_func_t)(Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from) |
Definition at line 32 of file Q931priv.h.
typedef L3INT( q931timeout_func_t)(Q931_TrunkInfo_t *trunk, struct Q931_Call *call) |
Definition at line 41 of file Q931priv.h.
typedef L3ULONG q931timer_t |
Definition at line 42 of file Q931priv.h.
typedef L3INT( q931uie_func_t)(Q931_TrunkInfo_t *trunk, Q931mes_Generic *pMsg, L3UCHAR *IBuf, L3UCHAR *OBuf, L3INT *IOff, L3INT *OOff) |
Definition at line 37 of file Q931priv.h.
typedef L3INT( q931umes_func_t)(Q931_TrunkInfo_t *trunk, L3UCHAR *IBuf, Q931mes_Generic *OBuf, L3INT IOff, L3INT Size, struct Q931MesgErrors *Errs) |
Definition at line 34 of file Q931priv.h.
anonymous enum |
Message <-> (mandatory) IE table
Q931_IEF_NONE |
None |
Q931_IEF_MANDATORY |
IE is mandatory |
Q931_IEF_TO_NET |
User -> Network |
Q931_IEF_TO_USER |
Network -> User |
Definition at line 48 of file Q931priv.h.
anonymous enum |
Definition at line 56 of file Q931priv.h.
anonymous enum |
anonymous enum |
Q931 Trunk feature flags
Definition at line 107 of file Q931priv.h.
anonymous enum |
Message parser error codes
Q931_MSGE_NONE | |
Q931_MSGE_UNKNOWN | |
Q931_MSGE_OVERFLOW | |
Q931_MSGE_NOT_ALLOWED | |
Q931_MSGE_INVALID_DIRECTION | |
Q931_MSGE_INVALID_SIZE | |
Q931_MSGE_INVALID_CODESET | |
Q931_MSGE_MANDATORY_MISSING | |
Q931_MSGE_COUNT |
Definition at line 169 of file Q931priv.h.
enum q931_msg_direction_t |
Definition at line 25 of file Q931priv.h.
enum q931_msg_from_t |
Definition at line 20 of file Q931priv.h.
void Q931CreateNT | ( | struct Q931Dialect * | d | ) |
Definition at line 61 of file Q931StateNT.c.
References MSGF_FROM_BOTH, MSGF_FROM_L2, MSGF_FROM_L4, Q931_CODESET_0, Q931_N0, Q931_N1, Q931_N10, Q931_N11, Q931_N12, Q931_N15, Q931_N17, Q931_N19, Q931_N2, Q931_N25, Q931_N3, Q931_N4, Q931_N6, Q931_N7, Q931_N8, Q931_N9, Q931_NANY, Q931_TIMER_T301, Q931_TIMER_T302, Q931_TIMER_T303, Q931_TIMER_T304, Q931_TIMER_T305, Q931_TIMER_T306, Q931_TIMER_T307, Q931_TIMER_T308, Q931_TIMER_T309, Q931_TIMER_T310, Q931_TIMER_T312, Q931_TIMER_T314, Q931_TIMER_T316, Q931_TIMER_T317, Q931_TIMER_T320, Q931_TIMER_T321, Q931_TIMER_T322, Q931_UANY, Q931DialectAddCodeset(), Q931DialectAddStateEntry(), Q931DialectSetFlag(), Q931DialectSetIEProc(), Q931DialectSetInvalidMesProc(), Q931DialectSetMesIEMap(), Q931DialectSetMesProc(), Q931DialectSetName(), Q931DialectSetTimeout(), Q931DialectSetTimerProc(), Q931DialectSetTimerProcAll(), Q931DialectSetUnknownMesProc(), Q931Die_BearerCap, Q931Die_CalledNum, Q931Die_CalledSub, Q931Die_CallID, Q931Die_CallingNum, Q931Die_CallingSub, Q931Die_CallState, Q931Die_Cause, Q931Die_ChanID, Q931Die_DateTime, Q931Die_Display, Q931Die_Generic(), Q931Die_HLComp, Q931Die_LLComp, Q931Die_ProgInd, Q931Die_RestartInd, Q931Die_Segment, Q931Die_SendComplete, Q931Die_Signal, Q931Die_UserUser, Q931ie_BEARER_CAPABILITY, Q931ie_CALL_IDENTITY, Q931ie_CALL_STATE, Q931ie_CALLED_PARTY_NUMBER, Q931ie_CALLED_PARTY_SUBADDRESS, Q931ie_CALLING_PARTY_NUMBER, Q931ie_CALLING_PARTY_SUBADDRESS, Q931ie_CAUSE, Q931ie_CHANNEL_IDENTIFICATION, Q931ie_CONNECTED_NUMBER, Q931ie_CONNECTED_SUBADDRESS, Q931ie_DATETIME, Q931ie_DISPLAY, Q931ie_HIGH_LAYER_COMPATIBILITY, Q931ie_KEYPAD_FACILITY, Q931ie_LOW_LAYER_COMPATIBILITY, Q931ie_NETWORK_SPECIFIC_FACILITIES, Q931ie_NOTIFICATION_INDICATOR, Q931ie_PROGRESS_INDICATOR, Q931ie_REDIRECTING_NUMBER, Q931ie_REDIRECTION_NUMBER, Q931ie_RESTART_INDICATOR, Q931ie_SEGMENTED_MESSAGE, Q931ie_SENDING_COMPLETE, Q931ie_SIGNAL, Q931ie_TRANSIT_DELAY_SELECTION_AND_IND, Q931ie_TRANSIT_NETWORK_SELECTION, Q931ie_USER_USER, Q931mes_ALERTING, Q931mes_CALL_PROCEEDING, Q931mes_CONGESTION_CONTROL, Q931mes_CONNECT, Q931mes_CONNECT_ACKNOWLEDGE, Q931mes_DISCONNECT, Q931mes_INFORMATION, Q931mes_NOTIFY, Q931mes_PROGRESS, Q931mes_RELEASE, Q931mes_RELEASE_COMPLETE, Q931mes_RESTART, Q931mes_RESTART_ACKNOWLEDGE, Q931mes_RESUME, Q931mes_RESUME_ACKNOWLEDGE, Q931mes_RESUME_REJECT, Q931mes_SEGMENT, Q931mes_SETUP, Q931mes_SETUP_ACKNOWLEDGE, Q931mes_STATUS, Q931mes_STATUS_ENQUIRY, Q931mes_SUSPEND, Q931mes_SUSPEND_ACKNOWLEDGE, Q931mes_SUSPEND_REJECT, Q931mes_USER_INFORMATION, Q931MessageIEs, Q931Pie_BearerCap, Q931Pie_CalledNum, Q931Pie_CalledSub, Q931Pie_CallID, Q931Pie_CallingNum, Q931Pie_CallingSub, Q931Pie_CallState, Q931Pie_Cause, Q931Pie_ChanID, Q931Pie_DateTime, Q931Pie_Display, Q931Pie_Generic(), Q931Pie_HLComp, Q931Pie_KeypadFac, Q931Pie_LLComp, Q931Pie_NetFac, Q931Pie_NotifInd, Q931Pie_ProgInd, Q931Pie_RestartInd, Q931Pie_Segment, Q931Pie_SendComplete, Q931Pie_Signal, Q931Pie_TransNetSel, Q931Pie_UserUser, Q931Pmes_Generic(), Q931ProcAlertingNT(), Q931ProcCallProceedingNT(), Q931ProcCongestionControlNT(), Q931ProcConnectAckNT(), Q931ProcConnectNT(), Q931ProcDisconnectNT(), Q931ProcInformationNT(), Q931ProcNotifyNT(), Q931ProcProgressNT(), Q931ProcReleaseCompleteNT(), Q931ProcReleaseNT(), Q931ProcRestartAckNT(), Q931ProcRestartNT(), Q931ProcResumeAckNT(), Q931ProcResumeNT(), Q931ProcResumeRejectNT(), Q931ProcSegmentNT(), Q931ProcSetupAckNT(), Q931ProcSetupNT(), Q931ProcStatusEnquiryNT(), Q931ProcStatusNT(), Q931ProcSuspendAckNT(), Q931ProcSuspendNT(), Q931ProcSuspendRejectNT(), Q931ProcTimeoutT301NT(), Q931ProcTimeoutT302NT(), Q931ProcTimeoutT303NT(), Q931ProcTimeoutT304NT(), Q931ProcTimeoutT305NT(), Q931ProcTimeoutT308NT(), Q931ProcTimeoutT309NT(), Q931ProcTimeoutT310NT(), Q931ProcTimeoutT314NT(), Q931ProcTimeoutT316NT(), Q931ProcTimeoutT317NT(), Q931ProcTimeoutT321NT(), Q931ProcTimeoutT322NT(), Q931ProcUnexpectedMessage(), Q931ProcUnknownMessage(), Q931ProcUserInformationNT(), Q931TimeoutDummy(), Q931Uie_BearerCap, Q931Uie_CalledNum, Q931Uie_CalledSub, Q931Uie_CallID, Q931Uie_CallingNum, Q931Uie_CallingSub, Q931Uie_CallState, Q931Uie_Cause, Q931Uie_ChanID, Q931Uie_DateTime, Q931Uie_Display, Q931Uie_Generic(), Q931Uie_HLComp, Q931Uie_KeypadFac, Q931Uie_LLComp, Q931Uie_NetFac, Q931Uie_NotifInd, Q931Uie_ProgInd, Q931Uie_RestartInd, Q931Uie_Segment, Q931Uie_SendComplete, Q931Uie_Signal, Q931Uie_TransNetSel, Q931Uie_UserUser, Q931Umes_Generic(), Q932ie_ENDPOINT_IDENTIFIER, Q932ie_EXTENDED_FACILITY, Q932ie_FACILITY, Q932ie_FEATURE_ACTIVATION, Q932ie_FEATURE_INDICATION, Q932ie_SERVICE_PROFILE_IDENTIFICATION, Q932mes_FACILITY, Q932mes_HOLD, Q932mes_HOLD_ACKNOWLEDGE, Q932mes_HOLD_REJECT, Q932mes_REGISTER, Q932mes_RETRIEVE, Q932mes_RETRIEVE_ACKNOWLEDGE, Q932mes_RETRIEVE_REJECT, Q932Pmes_Facility(), Q932Pmes_Hold(), Q932Pmes_HoldAck(), Q932Pmes_HoldReject(), Q932Pmes_Register(), Q932Pmes_Retrieve(), Q932Pmes_RetrieveAck(), Q932Pmes_RetrieveReject(), Q932ProcFacilityNT(), Q932ProcHoldAckNT(), Q932ProcHoldNT(), Q932ProcHoldRejectNT(), Q932ProcRegisterNT(), Q932ProcRetrieveAckNT(), Q932ProcRetrieveNT(), Q932ProcRetrieveRejectNT(), Q932Umes_Facility(), Q932Umes_Hold(), Q932Umes_HoldAck(), Q932Umes_HoldReject(), Q932Umes_Register(), Q932Umes_Retrieve(), Q932Umes_RetrieveAck(), and Q932Umes_RetrieveReject().
Referenced by Q931Initialize().
L3INT Q931Die | ( | Q931_TrunkInfo_t * | trunk, |
Q931ie_Generic * | ie, | ||
struct strstream * | ostream | ||
) |
Invoke IE specific debug function
[in] | trunk | Q.931 trunk |
[in] | ie | Pointer to Information Element |
Definition at line 1189 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931ie_Generic::IEId, Q931DialectGetDieProc(), and Q931E_INTERNAL.
Referenced by Q931Dmes_Generic().
L3INT Q931Die_Generic | ( | Q931_TrunkInfo_t * | pTrunk, |
Q931ie_Generic * | ie, | ||
struct strstream * | ostream | ||
) |
Definition at line 3394 of file Q931ie.c.
References Q931ie_Generic::IEId, Q931E_NO_ERROR, and strstream_printf().
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), and Q931Dmes_Generic().
L3BOOL Q931DieIsNull | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id | ||
) |
Check whether information element has a debug function available
[in] | trunk | Q.931 trunk |
[in] | id | Information element id to check |
Definition at line 1233 of file Q931.c.
References Q931_TrunkInfo::Dialect, and Q931DialectGetDieProc().
Referenced by Q931Dmes_Generic().
L3INT Q931Dmes_Generic | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg, | ||
q931_msg_direction_t | direction | ||
) |
Print message debug information.
Q931Dmes_Generic
[in] | trunk | Q.931 trunk |
[in] | mes | Decoded message |
[in] | direction | Incoming/Outgoing direction |
Definition at line 918 of file Q931mes.c.
References strstream::buf, Q931mes_Generic::buf, Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931_TrunkInfo::Dialect, Q931ie_Generic::IEId, L3INT, Q931_TrunkInfo::loglevel, Q931mes_Generic::MesType, name, Q931mes_Generic::ProtDisc, Q931_LOG_DEBUG, Q931_MSG_INCOMING, Q931Die(), Q931Die_Generic(), Q931DieIsNull(), Q931E_NO_ERROR, Q931LogRaw(), Q931ie_Generic::Size, strstream_get(), strstream_init_static(), strstream_printf(), strstream_puts(), STRSTREAM_SIZE, and Q931mes_Generic::Tei.
Referenced by Q931Pmes_Generic(), and Q931Umes_Generic().
L3ULONG Q931GetTime | ( | void | ) |
Get current time in milliseconds
Definition at line 654 of file Q931.c.
References L3ULONG, and Q931GetTimeProc.
Referenced by Q931CallRestartTimer(), Q931CallStartTimer(), and Q931TimerTick().
L3INT Q931GetUniqueCRV | ( | Q931_TrunkInfo_t * | trunk | ) |
Definition at line 196 of file Q931api.c.
References L3INT, Q931_TrunkInfo::LastCRV, Q931_BRI_MAX_CRV, Q931_IS_BRI, Q931_PRI_MAX_CRV, and Q931GetCallByCRV().
Referenced by Q931CallNew().
L3INT Q931Log | ( | const Q931_TrunkInfo_t * | trunk, |
Q931LogLevel_t | level, | ||
const char * | fmt, | ||
... | |||
) |
Log formatted string
[in] | trunk | Q.931 trunk |
[in] | level | Log level of message |
[in] | fmt | Format string |
[in] | ... | Optional arguments |
Definition at line 758 of file Q931.c.
References L3INT, Q931_TrunkInfo::loglevel, Q931_TrunkInfo::PrivateDataLog, Q931_LOGBUFSIZE, and Q931_TrunkInfo::Q931LogCBProc.
Referenced by Q931CallDump(), Q931CallNew(), Q931CallRestartTimer(), Q931CallSendEvent(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopAllTimers(), Q931CallStopTimer(), Q931Die_CalledSub(), Q931DumpAllCalls(), Q931MesgErrorsPrint(), Q931MesgHeader(), Q931Pie_BearerCap(), Q931Pmes_Generic(), Q931Proc(), Q931ProcAlertingNT(), Q931ProcCallProceedingNT(), Q931ProcConnectAckNT(), Q931ProcConnectNT(), Q931ProcDisconnectNT(), Q931ProcDisconnectTE(), Q931ProcProgressNT(), Q931ProcResumeAckNT(), Q931ProcResumeRejectNT(), Q931ProcSetupAckNT(), Q931ProcSetupNT(), Q931ProcSetupTE(), Q931ProcSuspendAckNT(), Q931ProcSuspendNT(), Q931ProcSuspendRejectNT(), Q931ProcTimeoutT301NT(), Q931ProcTimeoutT301TE(), Q931ProcTimeoutT302NT(), Q931ProcTimeoutT302TE(), Q931ProcTimeoutT303NT(), Q931ProcTimeoutT303TE(), Q931ProcTimeoutT304NT(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305NT(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT306NT(), Q931ProcTimeoutT307NT(), Q931ProcTimeoutT308NT(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT309NT(), Q931ProcTimeoutT309TE(), Q931ProcTimeoutT310NT(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT311TE(), Q931ProcTimeoutT312NT(), Q931ProcTimeoutT313NT(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT314NT(), Q931ProcTimeoutT314TE(), Q931ProcTimeoutT316NT(), Q931ProcTimeoutT316TE(), Q931ProcTimeoutT317NT(), Q931ProcTimeoutT317TE(), Q931ProcTimeoutT318TE(), Q931ProcTimeoutT319TE(), Q931ProcTimeoutT320NT(), Q931ProcTimeoutT321NT(), Q931ProcTimeoutT321TE(), Q931ProcTimeoutT322NT(), Q931ProcTimeoutT322TE(), Q931ProcUnexpectedMessage(), Q931ProcUnknownMessage(), Q931Rx23(), Q931Rx43(), Q931TimeoutDummy(), Q931TimerTick(), Q931Tx32(), Q931Tx34(), Q931Uie_ChanID(), Q931Uie_Generic(), and Q931Umes_Generic().
L3INT Q931LogRaw | ( | const Q931_TrunkInfo_t * | trunk, |
Q931LogLevel_t | level, | ||
const char * | str | ||
) |
Definition at line 787 of file Q931.c.
References Q931_TrunkInfo::loglevel, Q931_TrunkInfo::PrivateDataLog, and Q931_TrunkInfo::Q931LogCBProc.
Referenced by Q931Dmes_Generic().
L3INT Q931MesgErrorsAddIE | ( | struct Q931MesgErrors * | merrs, |
const char | id, | ||
const char | size, | ||
const int | offset, | ||
const int | error | ||
) |
Add IE error to message error buffer
merrs | Message error buffer |
id | IE id |
size | IE size |
offset | IE offset |
error | IE error code |
Definition at line 1240 of file Q931mes.c.
References Q931MesgErrors::error, id, Q931MesgErrors::id, Q931MesgErrors::ie_errors, Q931MesgErrors::nr_errors, Q931MesgErrors::nr_overflow, Q931MesgErrors::offset, Q931_MSGE_ERR_MAX, Q931E_NO_ERROR, and Q931MesgErrors::size.
Referenced by Q931Umes_Generic().
L3INT Q931MesgErrorsCount | ( | struct Q931MesgErrors * | merrs | ) |
Get number of errors
merrs | Message error buffer |
Definition at line 1265 of file Q931mes.c.
References Q931MesgErrors::nr_errors.
L3INT Q931MesgErrorsInit | ( | struct Q931MesgErrors * | merrs, |
const char | id | ||
) |
Initialize message error buffer and set message id
merrs | Message error buffer |
id | Message id |
Definition at line 1220 of file Q931mes.c.
References id, Q931MesgErrors::id, and Q931E_NO_ERROR.
Referenced by Q931Rx23().
L3INT Q931MesgErrorsPrint | ( | Q931_TrunkInfo_t * | trunk, |
const struct Q931MesgErrors * | merrs, | ||
const unsigned char * | IBuf, | ||
const int | Size | ||
) |
Print a detailed message error report
trunk | Q.931 Trunk |
merrs | Message error report |
IBuf | Message input buffer |
Size | Message size |
Definition at line 1321 of file Q931mes.c.
References Q931_TrunkInfo::Dialect, Q931MesgErrors::error, Q931MesgErrors::id, Q931MesgErrors::ie_errors, Q931_TrunkInfo::loglevel, Q931MessageIEEntry::maxsize, Q931MessageIEEntry::minsize, Q931MesgErrors::nr_errors, Q931MesgErrors::nr_overflow, Q931MesgErrors::offset, Q931_LOG_DEBUG, Q931_LOG_ERROR, Q931_MSGE_INVALID_CODESET, Q931_MSGE_INVALID_SIZE, Q931E_NO_ERROR, Q931Log(), Q931MesgErrors::size, TMP_APPEND, TMP_BUFSIZE, TMP_MIN, and TMP_PUTS.
Referenced by Q931Rx23().
L3INT Q931MesgHeader | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | mes, | ||
L3UCHAR * | OBuf, | ||
L3INT | Size, | ||
L3INT * | IOff | ||
) |
Create Q.931 Message header.
Q931MesgHeader
Definition at line 699 of file Q931mes.c.
References Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931mes_Generic::ProtDisc, Q931_IS_BRI, Q931_LOG_DEBUG, and Q931Log().
Referenced by Q931Pmes_Generic().
L3INT Q931Pie | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id, | ||
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | Octet | ||
) |
Invoke IE specific encoder function
[in] | trunk | Q.931 trunk |
[in] | id | ID of information element (type) |
[in] | IBuf | Input buffer |
[out] | OBuf | Output buffer |
[in,out] | Octet | Input buffer offset |
Definition at line 1171 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931DialectGetPieProc(), and Q931E_INTERNAL.
Referenced by Q931Pmes_Generic().
L3INT Q931Pie_Generic | ( | Q931_TrunkInfo_t * | pTrunk, |
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | Octet | ||
) |
Definition at line 3388 of file Q931ie.c.
References Q931E_NO_ERROR.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931PieDummy | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | Octet | ||
) |
Dummy function for IE encoding.
[in] | trunk | Q.931 trunk |
[in] | IBuf | Message input buffer |
[out] | OBuf | Message output buffer (encoded IE) |
[out] | Octet | Output buffer offset |
Definition at line 167 of file Q931.c.
References Q931E_UNKNOWN_IE.
L3BOOL Q931PieIsNull | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id | ||
) |
Check whether information element has a encoder function available
[in] | trunk | Q.931 trunk |
[in] | id | Information element id to check |
Definition at line 1220 of file Q931.c.
References Q931_TrunkInfo::Dialect, and Q931DialectGetPieProc().
Referenced by Q931Pmes_Generic().
L3INT Q931Pmes | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id, | ||
Q931mes_Generic * | IBuf, | ||
L3INT | ISize, | ||
L3UCHAR * | OBuf, | ||
L3INT * | OSize | ||
) |
Invoke message specific encoder function
[in] | trunk | Q.931 trunk |
[in] | id | ID of message (type) |
[in] | IBuf | Input buffer |
[in] | ISize | Size of input message |
[out] | OBuf | Output buffer |
[out] | OSize | Output message size |
Definition at line 1125 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931DialectGetPmesProc(), and Q931E_INTERNAL.
Referenced by Q931Tx32().
L3INT Q931Pmes_Generic | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | IBuf, | ||
L3INT | ISize, | ||
L3UCHAR * | OBuf, | ||
L3INT * | OSize | ||
) |
Definition at line 1064 of file Q931mes.c.
References Q931_TrunkInfo::Dialect, Q931Dialect::flags, Q931MessageIEEntry::id, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931_TrunkInfo::NetUser, Q931mes_Generic::ProtDisc, Q931_DIALECT_LOCKING_SHIFT_ONLY, Q931_LOG_DEBUG, Q931_LOG_ERROR, Q931_MSG_OUTGOING, Q931Dmes_Generic(), Q931E_ILLEGAL_IE, Q931E_MANDATORY_IE_MISSING, Q931E_NO_ERROR, Q931E_UNKNOWN_IE, Q931E_UNKNOWN_MESSAGE, Q931ie_SHIFT, Q931Log(), Q931MAXIE, Q931MesgHeader(), Q931Pie(), and Q931PieIsNull().
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931PmesDummy | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | IBuf, | ||
L3INT | ISize, | ||
L3UCHAR * | OBuf, | ||
L3INT * | OSize | ||
) |
Dummy function for message encoding.
[in] | trunk | Q.931 trunk |
[in] | IBuf | Message input buffer |
[in] | ISize | Input message size |
[out] | OBuf | Message output buffer |
[out] | OSize | Output message size |
Definition at line 152 of file Q931.c.
References Q931E_UNKNOWN_MESSAGE.
L3INT Q931Proc | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Invoke message specific handler function
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call handle |
[in] | msg | Decoded message to handle (Q931mes_Generic *) |
[in] | from | Source of message (Q931_MSG_FROM_L2 or Q931_MSG_FROM_L4) |
Definition at line 1020 of file Q931.c.
References Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_ERROR, Q931_TFLAG_IGNORE_UNKNOWN_MSG, Q931CallGetCRV(), Q931CallGetState(), Q931CallGetStateName(), Q931DialectGetMesProc(), Q931DialectGetUnknownMesProc(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931Log(), and Q931TrunkIsSetFlag().
Referenced by Q931AckRestart(), Q931AckService(), Q931AckSetup(), Q931Rx23(), Q931Rx43(), and Q931Start().
L3INT Q931ProcAlertingNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 346 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N2, Q931_N3, Q931_N4, Q931_N6, Q931_N7, Q931_N9, Q931_TIMER_T301, Q931_TIMER_T302, Q931_TIMER_T303, Q931_TIMER_T310, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcCallProceedingNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 426 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N1, Q931_N2, Q931_N3, Q931_N6, Q931_N9, Q931_TIMER_T302, Q931_TIMER_T303, Q931_TIMER_T310, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcCongestionControlNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1495 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcConnectAckNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 569 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N10, Q931_N8, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcConnectNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 499 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N10, Q931_N2, Q931_N3, Q931_N4, Q931_N6, Q931_N7, Q931_N8, Q931_N9, Q931_TIMER_T301, Q931_TIMER_T302, Q931_TIMER_T303, Q931_TIMER_T310, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcDisconnectNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1103 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N0, Q931_N1, Q931_N11, Q931_N12, Q931_N19, Q931_N22, Q931_N6, Q931_N7, Q931_N8, Q931_N9, Q931_TIMER_T305, Q931_TIMER_T306, Q931_TIMER_T308, Q931CallGetState(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopAllTimers(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcDummy | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Dummy function for message processing.
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call handle |
[in] | msg | Message |
[in] | from | Message coming from Layer 2 or Layer 4? |
Definition at line 102 of file Q931.c.
References Q931E_INTERNAL.
L3INT Q931ProcInformationNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1528 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcInvalid | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Invoke invalid message handling function
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call handle |
[in] | msg | Decoded message to handle (Q931mes_Generic *) |
[in] | from | Source of message (Q931_MSG_FROM_L2 or Q931_MSG_FROM_L4) |
Definition at line 1069 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931DialectGetInvalidMesProc(), and Q931E_INTERNAL.
L3INT Q931ProcNotifyNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1561 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcProgressNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 619 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N2, Q931_N3, Q931_N4, Q931_N9, Q931_TIMER_T302, Q931CallGetState(), Q931CallGetStateName(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcReleaseCompleteNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1324 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N0, Q931_N1, Q931_N19, Q931_N6, Q931_TIMER_T303, Q931_TIMER_T308, Q931CallGetState(), Q931CallRelease(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcReleaseNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1206 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N0, Q931_N11, Q931_N12, Q931_N19, Q931_N6, Q931_TIMER_T305, Q931_TIMER_T306, Q931_TIMER_T308, Q931CallGetState(), Q931CallRelease(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopAllTimers(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931ReleaseComplete(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcRestartAckNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1451 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcRestartNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1409 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TFLAG_AUTO_RESTART_ACK, Q931AckRestart(), Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931TrunkIsSetFlag(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcResumeAckNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 875 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L4, Q931_N10, Q931_TIMER_T307, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcResumeNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 838 of file Q931StateNT.c.
References Q931mes_Generic::CRV, L3INT, Q931_MSG_FROM_L2, Q931_N17, Q931CallNew(), Q931CallSetState(), Q931E_ILLEGAL_MESSAGE, Q931E_INTERNAL, Q931E_NO_ERROR, Q931GetCallByCRV(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcResumeRejectNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 914 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L4, Q931_N0, Q931CallGetState(), Q931CallGetStateName(), Q931CallRelease(), Q931CallSetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSegmentNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1661 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSetupAckNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 777 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N1, Q931_N2, Q931_N25, Q931_N6, Q931_TIMER_T302, Q931_TIMER_T303, Q931_TIMER_T304, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSetupNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 680 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_IS_PTP, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_N0, Q931_N1, Q931_N6, Q931_TFLAG_AUTO_SETUP_ACK, Q931_TIMER_T303, Q931AckSetup(), Q931CallGetCRV(), Q931CallGetState(), Q931CallGetStateName(), Q931CallNew(), Q931CallNewIncoming(), Q931CallSetState(), Q931CallStartTimer(), Q931DialectIsEventLegal(), Q931Disconnect(), Q931E_INTERNAL, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931TrunkIsSetFlag(), Q931Tx32(), Q931Tx34(), Q931mes_Generic::Size, Q931_Call::Tei, and Q931mes_Generic::Tei.
Referenced by Q931CreateNT().
L3INT Q931ProcStatusEnquiryNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1627 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q850_CAUSE_RESPONSE_TO_STATUS_ENQUIRY, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931StatusEnquiryResponse(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcStatusNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1594 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSuspendAckNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 983 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L4, Q931_N0, Q931_TIMER_T307, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSuspendNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 949 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_N15, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcSuspendRejectNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1025 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_LOG_DEBUG, Q931_MSG_FROM_L4, Q931CallGetState(), Q931CallGetStateName(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Log(), Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT301NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 1962 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N7, Q931CallGetState(), Q931CallGetStateName(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT302NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 1976 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N2, Q931CallGetState(), Q931CallGetStateName(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT303NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 1990 of file Q931StateNT.c.
References Q931_Call::CRV, L3UCHAR, Q931_EVENT_RELEASE_INDICATION, Q931_EVENT_TYPE_TIMER, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N0, Q931_N6, Q931_TIMER_T303, Q931CallGetState(), Q931CallGetStateName(), Q931CallGetTimerExpireCount(), Q931CallInitEvent(), Q931CallRelease(), Q931CallRestartTimer(), Q931CallSendEvent(), Q931CallSetState(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT304NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2027 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N25, Q931CallGetState(), Q931CallGetStateName(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT305NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2041 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N12, Q931_N19, Q931_TIMER_T308, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT306NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2061 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N12, Q931_N19, Q931_TIMER_T308, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931E_NO_ERROR, and Q931Log().
L3INT Q931ProcTimeoutT307NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2081 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N0, Q931CallGetState(), Q931CallGetStateName(), Q931CallRelease(), Q931CallSetState(), Q931E_NO_ERROR, and Q931Log().
L3INT Q931ProcTimeoutT308NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2099 of file Q931StateNT.c.
References Q931_Call::CRV, L3UCHAR, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N0, Q931_N19, Q931_TIMER_T308, Q931CallGetState(), Q931CallGetStateName(), Q931CallGetTimerExpireCount(), Q931CallRelease(), Q931CallRestartTimer(), Q931CallSetState(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT309NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2129 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT310NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2135 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_N12, Q931_N9, Q931_TIMER_T305, Q931_TIMER_T306, Q931CallGetState(), Q931CallGetStateName(), Q931CallSetState(), Q931CallStartTimer(), Q931CallStopAllTimers(), Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT312NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2170 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
L3INT Q931ProcTimeoutT313NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2176 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
L3INT Q931ProcTimeoutT314NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2182 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT316NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2188 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT317NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2194 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT320NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2200 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
L3INT Q931ProcTimeoutT321NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2206 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcTimeoutT322NT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Definition at line 2212 of file Q931StateNT.c.
References Q931_Call::CRV, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by Q931CreateNT().
L3INT Q931ProcUnexpectedMessage | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Handle unexpected message
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call handle |
[in] | msg | Input buffer (Q931mes_Generic *) |
[in] | from | Source of message (Q931_MSG_FROM_L2 or Q931_MSG_FROM_L4) |
Definition at line 1284 of file Q931.c.
References Q931mes_Generic::MesType, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931ProcUnknownMessage | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Handle unknown message
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call handle |
[in] | msg | Input buffer (Q931mes_Generic *) |
[in] | from | Source of message (Q931_MSG_FROM_L2 or Q931_MSG_FROM_L4) |
Definition at line 1268 of file Q931.c.
References Q931mes_Generic::MesType, Q931_LOG_NOTICE, Q931E_NO_ERROR, and Q931Log().
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931ProcUserInformationNT | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
q931_msg_from_t | from | ||
) |
Definition at line 1058 of file Q931StateNT.c.
References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T302, Q931_TIMER_T304, Q931CallGetState(), Q931CallStartTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.
Referenced by Q931CreateNT().
L3INT Q931ReadExt | ( | L3UCHAR * | IBuf, |
L3INT | Off | ||
) |
Definition at line 379 of file Q931ie.c.
References L3INT.
Referenced by Q931Uie_BearerCap(), Q931Uie_ChanID(), Q931Uie_HLComp(), Q931Uie_LLComp(), Q931Uie_NetFac(), Q931Uie_NotifInd(), Q931Uie_ProgInd(), Q931Uie_RestartInd(), and Q931Uie_TransNetSel().
L3INT Q931StatusEnquiryResponse | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
L3UCHAR | causeval | ||
) |
Definition at line 421 of file Q931api.c.
References Q931ie_CallState::CallState, Q931mes_Generic::CallState, Q931mes_Generic::Cause, Q931ie_CallState::CodStand, Q931ie_Cause::CodStand, Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931ie_Cause::Diag, Q931ie_CallState::IEId, Q931ie_Cause::IEId, L3UCHAR, Q931ie_Cause::Location, Q931mes_Generic::MesType, Q931_CODING_ITU, Q931_DIRECTION_INBOUND, Q931AppendIE(), Q931CallGetCRV(), Q931CallGetDirection(), Q931CallGetState(), Q931ie_CALL_STATE, Q931ie_CAUSE, Q931InitMesGeneric(), Q931L4BUF, Q931mes_STATUS, Q931Tx32(), Q931ie_Cause::Recom, Q931ie_CallState::Size, Q931ie_Cause::Size, Q931mes_Generic::Size, and Q931ie_Cause::Value.
Referenced by Q931ProcStatusEnquiryNT(), Q931ProcStatusEnquiryTE(), and Q931Rx23().
L3INT Q931Timeout | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
L3UCHAR | timer | ||
) |
Invoke timeout handler function
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call |
[in] | timer | Timer to handle |
Definition at line 1247 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931DialectGetTimerProc(), and Q931E_INTERNAL.
Referenced by Q931TimerTick().
L3INT Q931TimeoutDummy | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call | ||
) |
Dummy handler for timeouts
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call |
Definition at line 884 of file Q931.c.
References Q931_Call::CRV, Q931_LOG_DEBUG, Q931E_NO_ERROR, Q931Log(), and Q931_Call::TimerID.
Referenced by Q931CreateNT(), and Q931CreateTE().
void Q931TrunkClearAllFlags | ( | Q931_TrunkInfo_t * | trunk | ) |
Helper function to clear all flags of a trunk
[in] | trunk | Q.931 trunk |
Definition at line 923 of file Q931.c.
References Q931_TrunkInfo::flags.
void Q931TrunkClearFlag | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | flag | ||
) |
Helper function to unset a trunk flag
[in] | trunk | Q.931 trunk |
[in] | flag | Flag (mask) to clear |
Definition at line 913 of file Q931.c.
References Q931_TrunkInfo::flags.
Referenced by Q931TrunkSetRelaxedMode().
L3BOOL Q931TrunkIsSetFlag | ( | const Q931_TrunkInfo_t * | trunk, |
const L3INT | flag | ||
) |
Helper function to check if a trunk flag is set
[in] | trunk | Q.931 trunk |
[in] | flag | Flag (mask) to check |
Definition at line 935 of file Q931.c.
References Q931_TrunkInfo::flags.
Referenced by Q931Proc(), Q931ProcConnectTE(), Q931ProcRestartNT(), Q931ProcRestartTE(), Q931ProcSetupNT(), Q931ProcSetupTE(), Q931Rx43(), Q931Umes(), and Q931Umes_Generic().
void Q931TrunkSetFlag | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | flag | ||
) |
Helper function to set a trunk flag
[in] | trunk | Q.931 trunk |
[in] | flag | Flag (mask) to set |
Definition at line 902 of file Q931.c.
References Q931_TrunkInfo::flags.
Referenced by Q931TrunkSetRelaxedMode().
L3INT Q931Tx32 | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | bcast, | ||
Q931mes_Generic * | msg, | ||
int | size | ||
) |
Encode and send message to Layer 2
[in] | trunk | Q.931 trunk |
[in] | bcast | Broadcast message to all TEIs |
[in] | msg | Message buffer |
[in] | size | Size of message |
Definition at line 570 of file Q931.c.
References Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931_TrunkInfo::L2Buf, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931_TrunkInfo::PrivateData32, Q921_DL_DATA, Q921_DL_UNIT_DATA, Q931_LOG_DEBUG, Q931CallIsOutgoing(), Q931E_INVALID_CRV, Q931E_MISSING_CB, Q931E_NO_ERROR, Q931GetCallByCRV(), Q931L2HeaderSpace, Q931Log(), Q931Pmes(), Q931_TrunkInfo::Q931Tx32CBProc, and Q931_Call::Tei.
Referenced by Q931AckConnect(), Q931CallSendStatus(), Q931ProcAlertingNT(), Q931ProcAlertingTE(), Q931ProcCallProceedingNT(), Q931ProcCallProceedingTE(), Q931ProcCongestionControlNT(), Q931ProcCongestionControlTE(), Q931ProcConnectAckNT(), Q931ProcConnectAckTE(), Q931ProcConnectNT(), Q931ProcConnectTE(), Q931ProcDisconnectNT(), Q931ProcDisconnectTE(), Q931ProcInformationNT(), Q931ProcInformationTE(), Q931ProcNotifyNT(), Q931ProcNotifyTE(), Q931ProcProgressTE(), Q931ProcReleaseCompleteNT(), Q931ProcReleaseNT(), Q931ProcReleaseTE(), Q931ProcRestartAckNT(), Q931ProcRestartAckTE(), Q931ProcRestartNT(), Q931ProcRestartTE(), Q931ProcResumeAckNT(), Q931ProcResumeAckTE(), Q931ProcResumeRejectNT(), Q931ProcResumeRejectTE(), Q931ProcResumeTE(), Q931ProcSegmentNT(), Q931ProcSegmentTE(), Q931ProcSetupAckNT(), Q931ProcSetupAckTE(), Q931ProcSetupNT(), Q931ProcSetupTE(), Q931ProcStatusEnquiryNT(), Q931ProcStatusEnquiryTE(), Q931ProcStatusNT(), Q931ProcStatusTE(), Q931ProcSuspendAckNT(), Q931ProcSuspendAckTE(), Q931ProcSuspendRejectNT(), Q931ProcSuspendRejectTE(), Q931ProcSuspendTE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT318TE(), Q931ProcUserInformationNT(), Q931ProcUserInformationTE(), Q931Release(), Q931ReleaseComplete(), Q931Rx23(), Q931Send(), Q931StatusEnquiryResponse(), Q932ProcFacilityNT(), Q932ProcFacilityTE(), Q932ProcHoldAckNT(), Q932ProcHoldAckTE(), Q932ProcHoldNT(), Q932ProcHoldRejectNT(), Q932ProcHoldRejectTE(), Q932ProcHoldTE(), Q932ProcRegisterNT(), Q932ProcRegisterTE(), Q932ProcRetrieveAckNT(), Q932ProcRetrieveAckTE(), Q932ProcRetrieveNT(), Q932ProcRetrieveRejectNT(), Q932ProcRetrieveRejectTE(), and Q932ProcRetrieveTE().
L3INT Q931Tx34 | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
Q931mes_Generic * | msg, | ||
int | size | ||
) |
Send message to Layer 4
[in] | trunk | Q.931 trunk |
[in] | call | Q.931 call |
[in] | msg | Message to send (Q931mes_Generic *) |
[in] | size | Size of message |
Definition at line 460 of file Q931.c.
References Q931_TrunkInfo::PrivateData34, Q931_LOG_DEBUG, Q931E_MISSING_CB, Q931Log(), and Q931_TrunkInfo::Q931Tx34CBProc.
Referenced by Q931ProcAlertingNT(), Q931ProcAlertingTE(), Q931ProcCallProceedingNT(), Q931ProcCallProceedingTE(), Q931ProcCongestionControlNT(), Q931ProcCongestionControlTE(), Q931ProcConnectAckTE(), Q931ProcConnectNT(), Q931ProcConnectTE(), Q931ProcDisconnectNT(), Q931ProcDisconnectTE(), Q931ProcInformationNT(), Q931ProcInformationTE(), Q931ProcNotifyNT(), Q931ProcNotifyTE(), Q931ProcProgressNT(), Q931ProcProgressTE(), Q931ProcReleaseCompleteNT(), Q931ProcReleaseCompleteTE(), Q931ProcReleaseNT(), Q931ProcReleaseTE(), Q931ProcRestartAckNT(), Q931ProcRestartAckTE(), Q931ProcRestartNT(), Q931ProcRestartTE(), Q931ProcResumeAckTE(), Q931ProcResumeNT(), Q931ProcResumeRejectTE(), Q931ProcSegmentNT(), Q931ProcSegmentTE(), Q931ProcSetupNT(), Q931ProcSetupTE(), Q931ProcStatusNT(), Q931ProcStatusTE(), Q931ProcSuspendAckTE(), Q931ProcSuspendNT(), Q931ProcSuspendRejectTE(), Q931ProcSuspendTE(), Q931ProcUserInformationNT(), Q931ProcUserInformationTE(), Q932ProcFacilityNT(), Q932ProcFacilityTE(), Q932ProcHoldAckNT(), Q932ProcHoldAckTE(), Q932ProcHoldNT(), Q932ProcHoldRejectNT(), Q932ProcHoldRejectTE(), Q932ProcHoldTE(), Q932ProcRegisterNT(), Q932ProcRegisterTE(), Q932ProcRetrieveAckNT(), Q932ProcRetrieveAckTE(), Q932ProcRetrieveNT(), Q932ProcRetrieveRejectNT(), Q932ProcRetrieveRejectTE(), and Q932ProcRetrieveTE().
L3INT Q931TxDummy | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR * | b, | ||
L3INT | n | ||
) |
L3INT Q931Uie | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id, | ||
Q931mes_Generic * | pMes, | ||
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | IOff, | ||
L3INT * | OOff | ||
) |
Invoke IE specific decoder function
[in] | trunk | Q.931 trunk |
[in] | id | ID of information element (type) |
[in] | pMes | Message |
[in] | IBuf | Input buffer |
[out] | OBuf | Output buffer |
[in,out] | IOff | Input buffer offset |
[in,out] | OOff | Output buffer offset |
Definition at line 1149 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931DialectGetUieProc(), and Q931E_INTERNAL.
Referenced by Q931Umes_Generic().
L3USHORT Q931Uie_CRV | ( | Q931_TrunkInfo_t * | pTrunk, |
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | IOff, | ||
L3INT * | OOff | ||
) |
L3INT Q931Uie_Generic | ( | Q931_TrunkInfo_t * | pTrunk, |
Q931mes_Generic * | pMsg, | ||
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | IOff, | ||
L3INT * | OOff | ||
) |
Definition at line 3366 of file Q931ie.c.
References L3INT, L3UCHAR, Q931_LOG_DEBUG, Q931E_NO_ERROR, and Q931Log().
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931UieDummy | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg, | ||
L3UCHAR * | IBuf, | ||
L3UCHAR * | OBuf, | ||
L3INT * | IOff, | ||
L3INT * | OOff | ||
) |
Dummy function for IE decoding.
[in] | trunk | Q.931 trunk |
[in] | msg | Message |
[in] | IBuf | Input buffer |
[out] | OBuf | Output buffer |
[in,out] | IOff | Input buffer offset |
[in,out] | OOff | Output buffer offset |
Definition at line 136 of file Q931.c.
References Q931E_UNKNOWN_IE.
L3BOOL Q931UieIsNull | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id | ||
) |
Check whether information element has a decoder function available
[in] | trunk | Q.931 trunk |
[in] | id | Information element id to check |
Definition at line 1207 of file Q931.c.
References Q931_TrunkInfo::Dialect, and Q931DialectGetUieProc().
Referenced by Q931Umes_Generic().
L3INT Q931Umes | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR | id, | ||
L3UCHAR * | IBuf, | ||
Q931mes_Generic * | OBuf, | ||
L3INT | IOff, | ||
L3INT | Size, | ||
struct Q931MesgErrors * | errs | ||
) |
Invoke message specific decoder function
[in] | trunk | Q.931 trunk |
[in] | id | ID of message (type) |
[in] | IBuf | Input buffer (raw encoded message) |
[out] | OBuf | Output buffer |
[in] | IOff | Input buffer offset |
[in] | Size | Size of input message |
[out] | errs | Message errors reported by parser |
Definition at line 1093 of file Q931.c.
References Q931_TrunkInfo::Dialect, Q931_TFLAG_IGNORE_UNKNOWN_MSG, Q931DialectGetUmesProc(), Q931E_INTERNAL, Q931E_NO_ERROR, and Q931TrunkIsSetFlag().
Referenced by Q931Rx23().
L3INT Q931Umes_Generic | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR * | IBuf, | ||
Q931mes_Generic * | mes, | ||
L3INT | IOff, | ||
L3INT | Size, | ||
struct Q931MesgErrors * | Errs | ||
) |
A generic table driven codeset aware decode function for messages.
Q931Umes_Generic
[in] | trunk | Q.931 Trunk |
[in] | IBuf | Input buffer |
[out] | mes | Decoded Q.931 message |
[in] | IOff | Offset of input buffer |
[in] | Size | Number of bytes in input buffer |
[out] | Errs | Message parser errors |
Definition at line 739 of file Q931mes.c.
References Q931mes_Generic::buf, Q931MessageIEEntry::codeset, Q931_TrunkInfo::Dialect, Q931MessageIEEntry::flags, id, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931_TrunkInfo::NetUser, Q931mes_Generic::nr_ie, Q931mes_Generic::ProtDisc, Q931_LOG_DEBUG, Q931_LOG_ERROR, Q931_MSG_INCOMING, Q931_MSGE_INVALID_CODESET, Q931_MSGE_INVALID_DIRECTION, Q931_MSGE_INVALID_SIZE, Q931_MSGE_MANDATORY_MISSING, Q931_MSGE_NOT_ALLOWED, Q931_MSGE_OVERFLOW, Q931_MSGE_UNKNOWN, Q931_TFLAG_IGNORE_ILLEGAL_IE, Q931_TFLAG_IGNORE_UNKNOWN_IE, Q931Dmes_Generic(), Q931E_ILLEGAL_IE, Q931E_MANDATORY_IE_MISSING, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931E_UNKNOWN_IE, Q931E_UNKNOWN_MESSAGE, Q931ie_REPEAT_INDICATOR, Q931ie_SHIFT, Q931Log(), Q931MAXIE, Q931MesgErrorsAddIE(), Q931TrunkIsSetFlag(), Q931Uie(), Q931UieIsNull(), and Q931mes_Generic::Size.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
L3INT Q931UmesDummy | ( | Q931_TrunkInfo_t * | trunk, |
L3UCHAR * | IBuf, | ||
Q931mes_Generic * | OBuf, | ||
L3INT | IOff, | ||
L3INT | Size, | ||
struct Q931MesgErrors * | errs | ||
) |
Dummy function for message decoding.
[in] | trunk | Q.931 trunk |
[in] | IBuf | Message input buffer |
[out] | OBuf | Message output buffer |
[in] | IOff | Input buffer offset |
[in] | Size | Size of input |
[out] | errs | Message parser errors |
Definition at line 119 of file Q931.c.
References Q931E_UNKNOWN_MESSAGE.
Definition at line 395 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 412 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 413 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 407 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 410 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 411 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 416 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 403 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 394 of file Q931priv.h.
Definition at line 396 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 420 of file Q931priv.h.
Definition at line 402 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 398 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 419 of file Q931priv.h.
Definition at line 400 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 405 of file Q931priv.h.
Definition at line 415 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 409 of file Q931priv.h.
Definition at line 406 of file Q931priv.h.
Definition at line 397 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 408 of file Q931priv.h.
Definition at line 417 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 421 of file Q931priv.h.
Definition at line 401 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 404 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 399 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 414 of file Q931priv.h.
Definition at line 418 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 336 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 353 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 354 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 348 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 351 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 352 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 358 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 344 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 335 of file Q931priv.h.
Definition at line 337 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 362 of file Q931priv.h.
Definition at line 343 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 339 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 361 of file Q931priv.h.
Definition at line 341 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 346 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 357 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 350 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 347 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 338 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 349 of file Q931priv.h.
Definition at line 359 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 363 of file Q931priv.h.
Definition at line 342 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 345 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 340 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 356 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 360 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 366 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 383 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 384 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 378 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 381 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 382 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 387 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 374 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 365 of file Q931priv.h.
Definition at line 367 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 391 of file Q931priv.h.
Definition at line 373 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 369 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 390 of file Q931priv.h.
Definition at line 371 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 376 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 386 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 380 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 377 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 368 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 379 of file Q931priv.h.
Definition at line 388 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 392 of file Q931priv.h.
Definition at line 372 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 375 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 370 of file Q931priv.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
Definition at line 385 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 389 of file Q931priv.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().