libisdn
Q.931 TE Message handling

Functions

L3INT Q931ProcAlertingTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcCallProceedingTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcConnectTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcConnectAckTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcProgressTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSetupTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSetupAckTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcResumeTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcResumeAckTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcResumeRejectTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSuspendTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSuspendAckTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSuspendRejectTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcUserInformationTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcDisconnectTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcReleaseTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcReleaseCompleteTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcRestartTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcRestartAckTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcCongestionControlTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcInformationTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcNotifyTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcStatusTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcStatusEnquiryTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)
L3INT Q931ProcSegmentTE (Q931_TrunkInfo_t *trunk, struct Q931_Call *call, Q931mes_Generic *msg, q931_msg_from_t from)

Function Documentation

Handle CONGESTION CONTROL message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 2016 of file Q931StateTE.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 ATT5ESSCreateTE(), and Q931CreateTE().

L3INT Q931ProcConnectAckTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle CONNECT ACKNOWLEDGE message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 662 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_SETUP_COMPLETE_INDICATION, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T313, Q931_U10, Q931_U8, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by Q931CreateTE().

L3INT Q931ProcInformationTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle INFORMATION message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 2054 of file Q931StateTE.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 Q931CreateTE().

L3INT Q931ProcNotifyTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle NOTIFY message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 2092 of file Q931StateTE.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 Q931CreateTE().

L3INT Q931ProcProgressTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle PROGRESS message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 726 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_PROCEEDING_INDICATION, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T304, Q931_TIMER_T310, Q931_U2, Q931_U3, Q931_U9, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by ATT5ESSCreateTE(), and Q931CreateTE().

L3INT Q931ProcRestartAckTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle RESTART ACKNOWLEDGE message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1964 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T303, Q931CallGetState(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by ATT5ESSCreateTE(), and Q931CreateTE().

L3INT Q931ProcRestartTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle RESTART message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1914 of file Q931StateTE.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 ATT5ESSCreateTE(), and Q931CreateTE().

L3INT Q931ProcResumeAckTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle RESUME ACKNOWLEDGE message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1039 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_RESUME_CONFIRM, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T318, Q931_U10, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by Q931CreateTE().

L3INT Q931ProcResumeRejectTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle RESUME REJECT message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1095 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_RESUME_CONFIRM, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T318, Q931_U0, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), 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 Q931CreateTE().

L3INT Q931ProcResumeTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle RESUME message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 994 of file Q931StateTE.c.

References Q931mes_Generic::CRV, L3INT, Q931_MSG_FROM_L4, Q931_TIMER_T318, Q931_U17, Q931CallNew(), Q931CallSetState(), Q931CallStartTimer(), Q931E_ILLEGAL_MESSAGE, Q931E_INTERNAL, Q931E_NO_ERROR, Q931GetCallByCRV(), Q931Tx32(), and Q931mes_Generic::Size.

Referenced by Q931CreateTE().

L3INT Q931ProcSegmentTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle SEGMENT message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 2386 of file Q931StateTE.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 Q931CreateTE().

L3INT Q931ProcStatusEnquiryTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle STATUS ENQUIRY message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 2347 of file Q931StateTE.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 ATT5ESSCreateTE(), and Q931CreateTE().

L3INT Q931ProcSuspendAckTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle SUSPEND ACKNOWLEDGE message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1199 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_SUSPEND_CONFIRM, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T319, Q931_U0, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), 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 Q931CreateTE().

L3INT Q931ProcSuspendRejectTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle SUSPEND REJECT message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1258 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_EVENT_SUSPEND_CONFIRM, Q931_EVENT_TYPE_MESSAGE, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T319, Q931_U10, Q931CallGetState(), Q931CallNewEvent(), Q931CallQueueEvent(), Q931CallSetState(), Q931CallStopTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by Q931CreateTE().

L3INT Q931ProcSuspendTE ( Q931_TrunkInfo_t trunk,
struct Q931_Call call,
Q931mes_Generic msg,
q931_msg_from_t  from 
)

Handle SUSPEND message (TE)

Parameters:
[in]trunkQ.931 trunk
[in]callQ.931 call handle
[in]msgIncoming message
[in]fromMessage coming from Layer 2 or 4?
Returns:
Q931E_NO_ERROR on success, Q931E_* otherwise

Definition at line 1153 of file Q931StateTE.c.

References Q931mes_Generic::CRV, Q931_TrunkInfo::Dialect, L3INT, Q931mes_Generic::MesType, Q931_MSG_FROM_L2, Q931_MSG_FROM_L4, Q931_TIMER_T319, Q931_U15, Q931CallGetState(), Q931CallSetState(), Q931CallStartTimer(), Q931DialectIsEventLegal(), Q931E_ILLEGAL_MESSAGE, Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931GetCallByCRV(), Q931Tx32(), Q931Tx34(), and Q931mes_Generic::Size.

Referenced by Q931CreateTE().