libisdn
|
Go to the source code of this file.
#define ieGetOctet | ( | x | ) | ((L3UCHAR)(x)) |
Definition at line 828 of file Q931.h.
Referenced by Q931Uie_BearerCap().
#define IsQ931Ext | ( | x | ) | ((x & 0x80) == 0) |
Definition at line 816 of file Q931.h.
Referenced by Q931Uie_BearerCap(), and Q931Uie_LLComp().
#define L3BOOL char /* Min 1 bit, valuse 0 & 1 only */ |
Definition at line 177 of file Q931.h.
Referenced by Q931Pie_RevChargeInd(), Q932Pmes_Facility(), Q932Pmes_Hold(), Q932Pmes_HoldAck(), Q932Pmes_HoldReject(), Q932Pmes_Register(), Q932Pmes_Retrieve(), Q932Pmes_RetrieveAck(), and Q932Pmes_RetrieveReject().
#define L3FALSE 0 |
Definition at line 180 of file Q931.h.
Referenced by Q931DialectIsEventLegal(), Q931Pie_RevChargeInd(), Q932Pmes_Facility(), Q932Pmes_Hold(), Q932Pmes_HoldAck(), Q932Pmes_HoldReject(), Q932Pmes_Register(), Q932Pmes_Retrieve(), Q932Pmes_RetrieveAck(), and Q932Pmes_RetrieveReject().
#define L3INT int /* Min 16 bit signed */ |
Definition at line 175 of file Q931.h.
Referenced by Q931AckRestart(), Q931AppendIE(), Q931CallGetStateName(), Q931CallNew(), Q931CallRelease(), Q931Dmes_Generic(), Q931GetMesSize(), Q931GetUniqueCRV(), Q931Log(), Q931MesgHeader(), Q931Pie_BearerCap(), Q931Pie_CalledNum(), Q931Pie_CalledSub(), Q931Pie_CallID(), Q931Pie_CallingNum(), Q931Pie_CallingSub(), Q931Pie_CallState(), Q931Pie_Cause(), Q931Pie_ChangeStatus(), Q931Pie_ChanID(), Q931Pie_CongLevel(), Q931Pie_DateTime(), Q931Pie_Display(), Q931Pie_HLComp(), Q931Pie_KeypadFac(), Q931Pie_LLComp(), Q931Pie_NetFac(), Q931Pie_NotifInd(), Q931Pie_ProgInd(), Q931Pie_RepeatInd(), Q931Pie_RestartInd(), Q931Pie_Segment(), Q931Pie_Signal(), Q931Pie_TransNetSel(), Q931Pie_UserUser(), Q931Pmes_Generic(), Q931Proc(), Q931ProcAlertingNT(), Q931ProcAlertingTE(), Q931ProcCallProceedingNT(), Q931ProcCallProceedingTE(), Q931ProcCongestionControlNT(), Q931ProcCongestionControlTE(), Q931ProcConnectAckNT(), Q931ProcConnectAckTE(), Q931ProcConnectNT(), Q931ProcConnectTE(), Q931ProcDisconnectNT(), Q931ProcDisconnectTE(), Q931ProcInformationNT(), Q931ProcInformationTE(), Q931ProcNotifyNT(), Q931ProcNotifyTE(), Q931ProcProgressNT(), Q931ProcProgressTE(), Q931ProcReleaseCompleteNT(), Q931ProcReleaseCompleteTE(), Q931ProcReleaseNT(), Q931ProcReleaseTE(), Q931ProcRestartAckNT(), Q931ProcRestartAckTE(), Q931ProcRestartNT(), Q931ProcRestartTE(), Q931ProcResumeAckNT(), Q931ProcResumeAckTE(), Q931ProcResumeNT(), Q931ProcResumeRejectNT(), Q931ProcResumeRejectTE(), Q931ProcResumeTE(), Q931ProcSegmentNT(), Q931ProcSegmentTE(), Q931ProcSetupAckNT(), Q931ProcSetupAckTE(), Q931ProcSetupNT(), Q931ProcSetupTE(), Q931ProcStatusEnquiryNT(), Q931ProcStatusEnquiryTE(), Q931ProcStatusNT(), Q931ProcStatusTE(), Q931ProcSuspendAckNT(), Q931ProcSuspendAckTE(), Q931ProcSuspendNT(), Q931ProcSuspendRejectNT(), Q931ProcSuspendRejectTE(), Q931ProcSuspendTE(), Q931ProcUserInformationNT(), Q931ProcUserInformationTE(), Q931ReadExt(), Q931Rx23(), Q931Rx43(), Q931TimerTick(), Q931Tx32(), Q931Uie_BearerCap(), Q931Uie_CalledNum(), Q931Uie_CalledSub(), Q931Uie_CallID(), Q931Uie_CallingNum(), Q931Uie_CallingSub(), Q931Uie_CallState(), Q931Uie_Cause(), Q931Uie_ChangeStatus(), Q931Uie_ChanID(), Q931Uie_CongLevel(), Q931Uie_CRV(), Q931Uie_DateTime(), Q931Uie_Display(), Q931Uie_Generic(), Q931Uie_GenericDigits(), Q931Uie_HLComp(), Q931Uie_KeypadFac(), Q931Uie_LLComp(), Q931Uie_NetFac(), Q931Uie_NotifInd(), Q931Uie_ProgInd(), Q931Uie_RepeatInd(), Q931Uie_RestartInd(), Q931Uie_Segment(), Q931Uie_SendComplete(), Q931Uie_Signal(), Q931Uie_TransNetSel(), Q931Uie_UserUser(), Q931Umes_Generic(), Q932ProcFacilityNT(), Q932ProcFacilityTE(), Q932ProcHoldAckNT(), Q932ProcHoldAckTE(), Q932ProcHoldNT(), Q932ProcHoldRejectNT(), Q932ProcHoldRejectTE(), Q932ProcHoldTE(), Q932ProcRegisterNT(), Q932ProcRegisterTE(), Q932ProcRetrieveAckNT(), Q932ProcRetrieveAckTE(), Q932ProcRetrieveNT(), Q932ProcRetrieveRejectNT(), Q932ProcRetrieveRejectTE(), Q932ProcRetrieveTE(), Q932Umes_Facility(), Q932Umes_Hold(), Q932Umes_HoldAck(), Q932Umes_HoldReject(), Q932Umes_Register(), Q932Umes_Retrieve(), Q932Umes_RetrieveAck(), and Q932Umes_RetrieveReject().
#define L3TRUE 1 |
Definition at line 179 of file Q931.h.
Referenced by Q931DialectIsEventLegal(), and Q931DialectRegistryInit().
#define L3UCHAR unsigned char /* Min 8 bit */ |
Definition at line 172 of file Q931.h.
Referenced by Q931AckConnect(), Q931AckRestart(), Q931AppendIE(), Q931CallSendStatus(), Q931GetMesSize(), Q931MesgHeader(), Q931Pie_BearerCap(), Q931Pie_CalledNum(), Q931Pie_CalledSub(), Q931Pie_CallID(), Q931Pie_CallingNum(), Q931Pie_CallingSub(), Q931Pie_CallState(), Q931Pie_Cause(), Q931Pie_ChangeStatus(), Q931Pie_ChanID(), Q931Pie_DateTime(), Q931Pie_Display(), 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(), Q931ProcStatusTE(), Q931ProcTimeoutT303NT(), Q931ProcTimeoutT303TE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308NT(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT316TE(), Q931ProcTimeoutT318TE(), Q931Release(), Q931ReleaseComplete(), Q931Rx23(), Q931Start(), Q931StatusEnquiryResponse(), Q931Tx32(), Q931Uie_CalledNum(), Q931Uie_CalledSub(), Q931Uie_CallID(), Q931Uie_CallingNum(), Q931Uie_CallingSub(), Q931Uie_Display(), Q931Uie_Generic(), Q931Uie_GenericDigits(), Q931Uie_KeypadFac(), Q931Uie_NetFac(), Q931Uie_TransNetSel(), Q931Uie_UserUser(), and Q931Umes_Generic().
#define L3ULONG unsigned long /* Min 32 bit */ |
Definition at line 176 of file Q931.h.
Referenced by Q931CallRestartTimer(), Q931CallStartTimer(), Q931GetTime(), and Q931TimerTick().
#define L3USHORT unsigned short /* Min 16 bit unsigned */ |
Definition at line 173 of file Q931.h.
Referenced by Q931Uie_CRV().
#define NoWarning | ( | x | ) | (x = x) |
Definition at line 843 of file Q931.h.
Referenced by Q931Pie_RevChargeInd(), Q932Pmes_Facility(), Q932Pmes_Hold(), Q932Pmes_HoldAck(), Q932Pmes_HoldReject(), Q932Pmes_Register(), Q932Pmes_Retrieve(), Q932Pmes_RetrieveAck(), and Q932Pmes_RetrieveReject().
#define Q931_BRI_MAX_CRV 127 |
Definition at line 234 of file Q931.h.
Referenced by Q931GetUniqueCRV().
#define Q931_CODESET_ALL 0x07 |
Definition at line 476 of file Q931.h.
Referenced by Q931DialectAddCodeset().
#define Q931_IS_BRI | ( | x | ) | ((x)->TrunkType == Q931_TrType_BRI || (x)->TrunkType == Q931_TrType_BRI_PTMP) |
Definition at line 228 of file Q931.h.
Referenced by Q931GetUniqueCRV(), and Q931MesgHeader().
#define Q931_IS_PRI | ( | x | ) | (!Q931_IS_BRI(x)) |
Definition at line 229 of file Q931.h.
Referenced by Q931Start().
#define Q931_IS_PTMP | ( | X | ) | ((x)->TrunkType == Q931_TrType_BRI_PTMP) |
#define Q931_IS_PTP | ( | x | ) | ((x)->TrunkType != Q931_TrType_BRI_PTMP) |
Definition at line 231 of file Q931.h.
Referenced by Q931ProcSetupNT().
#define Q931_LOGBUFSIZE 1024 /* size of logging buffer */ |
#define Q931_PRI_MAX_CRV 32767 |
Definition at line 235 of file Q931.h.
Referenced by Q931GetUniqueCRV().
#define Q931GetIEOffset | ( | x | ) | (x & 0x7fff) |
#define Q931GetIEPtr | ( | ie, | |
buf | |||
) | ((void *)&buf[Q931GetIEOffset(ie)]) |
Definition at line 793 of file Q931.h.
Referenced by Q931ProcStatusTE().
#define Q931GetIETotSize | ( | ie | ) | (((ie.InfoID & 0x80) != 0) ? 1 : ie.LenIE) + 2) |
#define Q931GetIEValue | ( | x | ) | (x & 0x7fff) |
#define Q931IsIEPresent | ( | x | ) | ((x & 0x8000) != 0) |
Definition at line 765 of file Q931.h.
Referenced by Q931ProcStatusTE().
#define Q931L4BUF 1000 /* size of message buffer */ |
Definition at line 209 of file Q931.h.
Referenced by Q931AckConnect(), Q931CallSendStatus(), Q931ProcStatusTE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT318TE(), Q931Release(), Q931ReleaseComplete(), Q931Start(), and Q931StatusEnquiryResponse().
#define Q931MAXCALLPERTRUNK (Q931MAXCHPERTRUNK * 2) |
Definition at line 222 of file Q931.h.
Referenced by Q931DumpAllCalls(), Q931GetCallByCRV(), and Q931TimerTick().
#define Q931MAXCHPERTRUNK 32 /* Number of channels per trunk. The */ |
Definition at line 217 of file Q931.h.
Referenced by Q931InitTrunk().
#define Q931MAXCODESETS 7 /* Maximum number of codests (by spec, 0-7) */ |
#define Q931MAXDLCT 8 /* Max dialects included in this */ |
Definition at line 258 of file Q931.h.
Referenced by Q931DialectGet(), Q931DialectRegister(), and Q931DialectRegistryInit().
#define Q931MAXIE 255 /* Number of IE */ |
Definition at line 263 of file Q931.h.
Referenced by Q931Pmes_Generic(), and Q931Umes_Generic().
#define Q931MAXMES 128 /* Number of messages */ |
#define Q931MAXSTATE 100 /* Size of state tables */ |
Definition at line 266 of file Q931.h.
Referenced by Q931DialectAddStateEntry(), and Q931DialectIsEventLegal().
#define Q931MAXTIMER 25 /* Maximum number of timers */ |
Definition at line 267 of file Q931.h.
Referenced by Q931DialectSetTimerProcAll().
#define Q931MAXTRUNKS 4 /* Total number of trunks that will be */ |
#define Q931MAXUSEDIE 50 /* Maximum number of ie types per Dialect */ |
#define Q931mes_ALERTING 0x01 /* 0000 0001 */ |
Definition at line 276 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_CALL_PROCEEDING 0x02 /* 0000 0010 */ |
Definition at line 277 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_CONGESTION_CONTROL 0x79 /* 0111 1001 */ |
Definition at line 295 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_CONNECT 0x07 /* 0000 0111 */ |
Definition at line 278 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_CONNECT_ACKNOWLEDGE 0x0f /* 0000 1111 */ |
Definition at line 279 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931AckConnect(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_DISCONNECT 0x45 /* 0100 0101 */ |
Definition at line 290 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), Q931ProcStatusTE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT310TE(), and Q931ProcTimeoutT313TE().
#define Q931mes_FACILITY 0x62 /* 0110 0010 */ |
Definition at line 301 of file Q931.h.
Referenced by ATT5ESSCreateTE().
#define Q931mes_FACILITY_ACKNOWLEDGE 0x6a /* 0110 1010 */ |
Definition at line 307 of file Q931.h.
Referenced by ATT5ESSCreateTE().
#define Q931mes_FACILITY_REJECT 0x72 /* 0111 0010 */ |
Definition at line 308 of file Q931.h.
Referenced by ATT5ESSCreateTE().
#define Q931mes_INFORMATION 0x7b /* 0111 1011 */ |
Definition at line 296 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_NOTIFY 0x6e /* 0110 1110 */ |
Definition at line 297 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_PROGRESS 0x03 /* 0000 0011 */ |
Definition at line 280 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_REGISTER 0x64 /* 0110 0100 */ |
Definition at line 309 of file Q931.h.
Referenced by ATT5ESSCreateTE().
#define Q931mes_RELEASE 0x4d /* 0100 1101 */ |
Definition at line 291 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT318TE(), Q931Release(), and Q931Rx23().
#define Q931mes_RELEASE_COMPLETE 0x5a /* 0101 1010 */ |
Definition at line 292 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), Q931ReleaseComplete(), and Q931Rx23().
#define Q931mes_RESTART 0x46 /* 0100 0110 */ |
Definition at line 293 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), and Q931Start().
#define Q931mes_RESTART_ACKNOWLEDGE 0x4e /* 0100 1110 */ |
Definition at line 294 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931AckRestart(), Q931CreateNT(), Q931CreateTE(), and Q931InitMesRestartAck().
#define Q931mes_RESUME 0x26 /* 0010 0110 */ |
Definition at line 283 of file Q931.h.
Referenced by Q931CreateNT(), Q931CreateTE(), and Q931InitMesResume().
#define Q931mes_RESUME_ACKNOWLEDGE 0x2e /* 0010 1110 */ |
Definition at line 284 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_RESUME_REJECT 0x22 /* 0010 0010 */ |
Definition at line 285 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_SEGMENT 0x60 /* 0110 0000 */ |
Definition at line 300 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_SERVICE 0x0f /* 0000 1111 (ProtDisc 3) */ |
#define Q931mes_SERVICE_ACKNOWLEDGE 0x07 /* 0000 0111 (ProtDisc 3) */ |
Definition at line 305 of file Q931.h.
Referenced by Q931AckService().
#define Q931mes_SETUP 0x05 /* 0000 0101 */ |
Definition at line 281 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), and Q931Rx23().
#define Q931mes_SETUP_ACKNOWLEDGE 0x0d /* 0000 1101 */ |
Definition at line 282 of file Q931.h.
Referenced by Q931AckSetup(), Q931CreateNT(), and Q931CreateTE().
#define Q931mes_STATUS 0x7d /* 0111 1101 */ |
Definition at line 298 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CallSendStatus(), Q931CreateNT(), Q931CreateTE(), and Q931StatusEnquiryResponse().
#define Q931mes_STATUS_ENQUIRY 0x75 /* 0111 0101 */ |
Definition at line 299 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), Q931CreateTE(), and Q931Rx23().
#define Q931mes_SUSPEND 0x25 /* 0010 0101 */ |
Definition at line 286 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_SUSPEND_ACKNOWLEDGE 0x2d /* 0010 1101 */ |
Definition at line 287 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_SUSPEND_REJECT 0x21 /* 0010 0001 */ |
Definition at line 288 of file Q931.h.
Referenced by Q931CreateNT(), and Q931CreateTE().
#define Q931mes_USER_INFORMATION 0x20 /* 0010 0000 */ |
Definition at line 289 of file Q931.h.
Referenced by ATT5ESSCreateTE(), Q931CreateNT(), and Q931CreateTE().
Definition at line 804 of file Q931.h.
Referenced by Q931Uie_BearerCap(), Q931Uie_CalledNum(), Q931Uie_CalledSub(), Q931Uie_CallID(), Q931Uie_CallingNum(), Q931Uie_CallingSub(), Q931Uie_CallState(), Q931Uie_Cause(), Q931Uie_ChangeStatus(), Q931Uie_ChanID(), Q931Uie_CongLevel(), Q931Uie_DateTime(), Q931Uie_Display(), Q931Uie_GenericDigits(), Q931Uie_HLComp(), Q931Uie_KeypadFac(), Q931Uie_LLComp(), Q931Uie_NetFac(), Q931Uie_NotifInd(), Q931Uie_ProgInd(), Q931Uie_RepeatInd(), Q931Uie_RestartInd(), Q931Uie_RevChargeInd(), Q931Uie_Segment(), Q931Uie_SendComplete(), Q931Uie_Signal(), Q931Uie_TransNetSel(), and Q931Uie_UserUser().
typedef struct Q931_TrunkInfo Q931_TrunkInfo_t |
typedef L3INT(* Q931LogCB_t)(void *, Q931LogLevel_t, const char *, L3INT) |
typedef L3INT(* Q931Tx34CB_t)(void *, struct Q931_Call *call, Q931mes_Generic *, int) |
anonymous enum |
Generic Q.931 Timers
anonymous enum |
enum Q931_ChanType_t |
enum q931_coding_t |
enum q931_error_t |
enum q931_hlchar_t |
enum q931_itc_t |
enum q931_itr_t |
enum q931_npi_t |
enum q931_pres_t |
enum q931_screen_t |
enum q931_ton_t |
enum Q931_TrunkState_t |
enum Q931_TrunkType_t |
enum q931_uil1p_t |
enum Q931Dialect_t |
enum Q931LogLevel_t |
enum Q931NetUser_t |
Q931_API const char* q931_error_to_name | ( | q931_error_t | error | ) |
Return description of error code
[in] | error | Error code |
Definition at line 731 of file Q931.c.
References Q931_MAX_ERROR.
L3INT Q931AckConnect | ( | struct Q931_Call * | call | ) |
Definition at line 535 of file Q931api.c.
References Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, L3UCHAR, Q931mes_Generic::MesType, Q931CallGetCRV(), Q931CallGetTrunk(), Q931CallIsOutgoing(), Q931InitMesGeneric(), Q931L4BUF, Q931mes_CONNECT_ACKNOWLEDGE, Q931Tx32(), and Q931mes_Generic::Size.
Referenced by Q931ProcConnectTE().
L3INT Q931AckRestart | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg | ||
) |
Definition at line 500 of file Q931api.c.
References Q931ie_RestartInd::Class, Q931mes_Generic::CRVFlag, Q931ie_RestartInd::IEId, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931_MSG_FROM_L4, Q931AppendIE(), Q931GetGlobalCall(), Q931ie_RESTART_INDICATOR, Q931mes_RESTART_ACKNOWLEDGE, Q931Proc(), and Q931mes_Generic::RestartInd.
Referenced by Q931ProcRestartNT(), and Q931ProcRestartTE().
L3INT Q931AckService | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg | ||
) |
Definition at line 549 of file Q931api.c.
References Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931mes_Generic::MesType, Q931_MSG_FROM_L4, Q931GetGlobalCall(), Q931mes_SERVICE_ACKNOWLEDGE, and Q931Proc().
L3INT Q931AckSetup | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg | ||
) |
Definition at line 521 of file Q931api.c.
References Q931mes_Generic::MesType, Q931_MSG_FROM_L4, Q931GetGlobalCall(), Q931mes_SETUP_ACKNOWLEDGE, and Q931Proc().
Referenced by Q931ProcSetupNT(), and Q931ProcSetupTE().
Q931_API ie Q931AppendIE | ( | Q931mes_Generic * | msg, |
L3UCHAR * | pi | ||
) |
Definition at line 181 of file Q931api.c.
References Q931mes_Generic::buf, L3INT, L3UCHAR, and Q931mes_Generic::Size.
Referenced by Q931AckRestart(), Q931CallSendStatus(), Q931ProcStatusTE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT318TE(), Q931Release(), Q931ReleaseComplete(), Q931Start(), and Q931StatusEnquiryResponse().
L3INT Q931CallSendStatus | ( | const struct Q931_Call * | call, |
const L3UCHAR | causeval | ||
) |
Send STATUS message with cause code.
Q931CallSendStatus
[in] | call | Q.931 call handle |
[in] | causeval | Q.850 cause code |
Definition at line 464 of file Q931api.c.
References Q931ie_CallState::CallState, Q931mes_Generic::CallState, Q931mes_Generic::Cause, Q931ie_CallState::CodStand, Q931ie_Cause::CodStand, Q931mes_Generic::CRVFlag, Q931ie_Cause::Diag, Q931ie_CallState::IEId, Q931ie_Cause::IEId, L3UCHAR, Q931ie_Cause::Location, Q931mes_Generic::MesType, Q931_CODING_ITU, Q931AppendIE(), Q931CallGetState(), Q931CallGetTrunk(), Q931CallIsOutgoing(), 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.
L3INT Q931Disconnect | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | iTo, | ||
L3INT | iCRV, | ||
L3INT | iCause | ||
) |
Definition at line 357 of file Q931api.c.
Referenced by Q931ProcSetupNT(), Q931ProcSetupTE(), and Q931Rx23().
Q931_API Q931LogLevel_t Q931GetLogLevel | ( | Q931_TrunkInfo_t * | trunk | ) |
Get log level
[in] | trunk | Q.931 trunk |
Definition at line 836 of file Q931.c.
References Q931_TrunkInfo::loglevel, and Q931_LOG_NONE.
Q931_API const char* Q931GetLogLevelName | ( | Q931_TrunkInfo_t * | trunk | ) |
Get name of log level set on trunk
[in] | trunk | Q.931 trunk |
Definition at line 865 of file Q931.c.
References Q931_TrunkInfo::loglevel, and Q931_LOG_NONE.
Q931_API L3INT Q931GetMesSize | ( | Q931mes_Generic * | msg | ) |
Definition at line 164 of file Q931api.c.
References Q931mes_Generic::buf, L3INT, and L3UCHAR.
Referenced by Q931InitMesGeneric(), Q931InitMesRestartAck(), and Q931InitMesResume().
Q931_API void Q931Initialize | ( | void | ) |
Initialize Q.931 stack
Definition at line 178 of file Q931.c.
References ATT5ESSCreateTE(), Q931_Dialect_5ESS, Q931_Dialect_Q931, Q931_NT, Q931_TE, Q931CreateNT(), Q931CreateTE(), Q931DialectRegister(), and Q931DialectRegistryInit().
Definition at line 236 of file Q931api.c.
References Q931ie_BearerCap::IEId, Q931ie_BearerCap::ITR, Q931ie_BEARER_CAPABILITY, and Q931ie_BearerCap::Size.
Definition at line 317 of file Q931api.c.
References Q931ie_CalledNum::IEId, Q931ie_CALLED_PARTY_NUMBER, and Q931ie_CalledNum::Size.
Definition at line 325 of file Q931api.c.
References Q931ie_CalledSub::IEId, Q931ie_CALLED_PARTY_SUBADDRESS, and Q931ie_CalledSub::Size.
Definition at line 301 of file Q931api.c.
References Q931ie_CallingNum::IEId, Q931ie_CALLING_PARTY_NUMBER, and Q931ie_CallingNum::Size.
Definition at line 309 of file Q931api.c.
References Q931ie_CallingSub::IEId, Q931ie_CALLING_PARTY_SUBADDRESS, and Q931ie_CallingSub::Size.
Q931_API L3INT Q931InitIEChanID | ( | Q931ie_ChanID * | ie | ) |
Definition at line 245 of file Q931api.c.
References Q931ie_ChanID::IEId, Q931ie_CHANNEL_IDENTIFICATION, and Q931ie_ChanID::Size.
Referenced by Q931Start().
Definition at line 277 of file Q931api.c.
References Q931ie_DateTime::IEId, Q931ie_DATETIME, and Q931ie_DateTime::Size.
Q931_API L3INT Q931InitIEDisplay | ( | Q931ie_Display * | ie | ) |
Definition at line 269 of file Q931api.c.
References Q931ie_Display::IEId, Q931ie_DISPLAY, and Q931ie_Display::Size.
Q931_API L3INT Q931InitIEHLComp | ( | Q931ie_HLComp * | ie | ) |
Definition at line 349 of file Q931api.c.
References Q931ie_HLComp::IEId, Q931ie_HIGH_LAYER_COMPATIBILITY, and Q931ie_HLComp::Size.
Definition at line 285 of file Q931api.c.
References Q931ie_KeypadFac::IEId, Q931ie_KEYPAD_FACILITY, and Q931ie_KeypadFac::Size.
Q931_API L3INT Q931InitIELLComp | ( | Q931ie_LLComp * | ie | ) |
Definition at line 341 of file Q931api.c.
References Q931ie_LLComp::IEId, Q931ie_LOW_LAYER_COMPATIBILITY, and Q931ie_LLComp::Size.
Q931_API L3INT Q931InitIENetFac | ( | Q931ie_NetFac * | ie | ) |
Definition at line 261 of file Q931api.c.
References Q931ie_NetFac::IEId, Q931ie_NETWORK_SPECIFIC_FACILITIES, and Q931ie_NetFac::Size.
Q931_API L3INT Q931InitIEProgInd | ( | Q931ie_ProgInd * | ie | ) |
Definition at line 253 of file Q931api.c.
References Q931ie_ProgInd::IEId, Q931ie_PROGRESS_INDICATOR, and Q931ie_ProgInd::Size.
Q931_API L3INT Q931InitIESignal | ( | Q931ie_Signal * | ie | ) |
Definition at line 293 of file Q931api.c.
References Q931ie_Signal::IEId, Q931ie_SIGNAL, and Q931ie_Signal::Size.
Definition at line 333 of file Q931api.c.
References Q931ie_TransNetSel::IEId, Q931ie_TRANSIT_NETWORK_SELECTION, and Q931ie_TransNetSel::Size.
Q931_API L3INT Q931InitMesGeneric | ( | Q931mes_Generic * | msg | ) |
Definition at line 210 of file Q931api.c.
References Q931mes_Generic::ProtDisc, Q931GetMesSize(), and Q931mes_Generic::Size.
Referenced by Q931AckConnect(), Q931CallSendStatus(), Q931ProcStatusTE(), Q931ProcTimeoutT304TE(), Q931ProcTimeoutT305TE(), Q931ProcTimeoutT308TE(), Q931ProcTimeoutT310TE(), Q931ProcTimeoutT313TE(), Q931ProcTimeoutT318TE(), Q931Release(), Q931ReleaseComplete(), Q931Rx23(), Q931Start(), and Q931StatusEnquiryResponse().
Definition at line 227 of file Q931api.c.
References Q931mes_Generic::MesType, Q931mes_Generic::ProtDisc, Q931GetMesSize(), Q931mes_RESTART_ACKNOWLEDGE, and Q931mes_Generic::Size.
Q931_API L3INT Q931InitMesResume | ( | Q931mes_Generic * | msg | ) |
Definition at line 218 of file Q931api.c.
References Q931mes_Generic::MesType, Q931mes_Generic::ProtDisc, Q931GetMesSize(), Q931mes_RESUME, and Q931mes_Generic::Size.
Q931_API L3INT Q931InitMesSetup | ( | Q931mes_Generic * | msg | ) |
Q931_API L3INT Q931InitTrunk | ( | Q931_TrunkInfo_t * | trunk, |
Q931Dialect_t | Dialect, | ||
Q931NetUser_t | NetUser, | ||
Q931_TrunkType_t | TrunkType, | ||
Q931Tx34CB_t | Q931Tx34CBProc, | ||
Q931Tx32CB_t | Q931Tx32CBProc, | ||
Q931ErrorCB_t | Q931ErrorCBProc, | ||
void * | PrivateData32, | ||
void * | PrivateData34 | ||
) |
Definition at line 46 of file Q931api.c.
References Q931_TrunkInfo::_charray::Available, Q931_TrunkInfo::call, Q931_TrunkInfo::ch, Q931_TrunkInfo::_charray::ChanType, Q931_TrunkInfo::Dialect, Q931_TrunkInfo::Enabled, Q931_Call::InUse, Q931_TrunkInfo::LastCRV, Q931_TrunkInfo::NetUser, Q931_TrunkInfo::PrivateData32, Q931_TrunkInfo::PrivateData34, Q931_ChType_B, Q931_ChType_D, Q931_ChType_NotUsed, Q931_ChType_Sync, Q931_TrType_BRI, Q931_TrType_BRI_PTMP, Q931_TrType_E1, Q931_TrType_J1, Q931_TrType_T1, Q931DialectGet(), Q931_TrunkInfo::Q931ErrorCBProc, Q931MAXCHPERTRUNK, Q931_TrunkInfo::Q931Tx32CBProc, Q931_TrunkInfo::Q931Tx34CBProc, Q931_Call::Trunk, Q931_TrunkInfo::TrunkState, and Q931_TrunkInfo::TrunkType.
L3INT Q931Release | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
L3UCHAR | causeval | ||
) |
Definition at line 367 of file Q931api.c.
References Q931mes_Generic::Cause, Q931ie_Cause::CodStand, Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931ie_Cause::Diag, Q931ie_Cause::IEId, L3UCHAR, Q931ie_Cause::Location, Q931mes_Generic::MesType, Q931_CODING_ITU, Q931_DIRECTION_INBOUND, Q931AppendIE(), Q931CallGetCRV(), Q931CallGetDirection(), Q931ie_CAUSE, Q931InitMesGeneric(), Q931L4BUF, Q931mes_RELEASE, Q931Tx32(), Q931ie_Cause::Recom, Q931ie_Cause::Size, Q931mes_Generic::Size, and Q931ie_Cause::Value.
L3INT Q931ReleaseComplete | ( | Q931_TrunkInfo_t * | trunk, |
struct Q931_Call * | call, | ||
L3UCHAR | causeval | ||
) |
Definition at line 394 of file Q931api.c.
References Q931mes_Generic::Cause, Q931ie_Cause::CodStand, Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931ie_Cause::Diag, Q931ie_Cause::IEId, L3UCHAR, Q931ie_Cause::Location, Q931mes_Generic::MesType, Q931_CODING_ITU, Q931_DIRECTION_INBOUND, Q931AppendIE(), Q931CallGetCRV(), Q931CallGetDirection(), Q931ie_CAUSE, Q931InitMesGeneric(), Q931L4BUF, Q931mes_RELEASE_COMPLETE, Q931Tx32(), Q931ie_Cause::Recom, Q931ie_Cause::Size, Q931mes_Generic::Size, and Q931ie_Cause::Value.
Referenced by Q931ProcReleaseCompleteTE(), Q931ProcReleaseNT(), and Q931ProcReleaseTE().
Q931_API L3INT Q931ReleaseCRV | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | crv | ||
) |
Release a CRV (= call)
[in] | trunk | Q.931 trunk |
[in] | crv | CRV to release |
Definition at line 635 of file Q931.c.
References Q931_Call::InUse, Q931E_INVALID_CRV, Q931E_NO_ERROR, and Q931GetCallByCRV().
Q931_API L3INT Q931Rx23 | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | ind, | ||
L3UCHAR | tei, | ||
L3UCHAR * | buf, | ||
L3INT | Size | ||
) |
Receive message from Q.921 (Layer 2) stack
[in] | trunk | Q.931 trunk |
[in] | ind | Type of Q.921 message: Q921_DL_UNIT_DATA, Q921_DL_DATA |
[in] | tei | TEI this message is coming in on |
[in] | buf | Message buffer |
[in] | Size | Size of message |
Definition at line 267 of file Q931.c.
References Q931mes_Generic::buf, Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931_TrunkInfo::Dialect, Q931_CallEvent::id, Q931_TrunkInfo::L3Buf, L3INT, L3UCHAR, Q931mes_Generic::MesType, MSGF_FROM_L2, Q931mes_Generic::ProtDisc, Q850_CAUSE_IE_NONEXIST, Q850_CAUSE_INVALID_IE_CONTENTS, Q850_CAUSE_MANDATORY_IE_MISSING, Q850_CAUSE_MESSAGE_TYPE_NONEXIST, Q850_CAUSE_WRONG_MESSAGE, Q921_DL_DATA, Q921_DL_UNIT_DATA, Q931_EVENT_RELEASE_CRV, Q931_EVENT_TYPE_CRV, Q931_LOG_DEBUG, Q931_MSG_FROM_L2, Q931_U0, Q931CallGetCRV(), Q931CallGetState(), Q931CallGetStateName(), Q931CallIsGlobal(), Q931CallIsOutgoing(), Q931CallNewIncoming(), Q931CallRelease(), Q931CallSendEvent(), Q931CallSendQueuedEvents(), Q931DialectGetName(), Q931Disconnect(), Q931E_ILLEGAL_IE, Q931E_INTERNAL, Q931E_INVALID_CRV, Q931E_MANDATORY_IE_MISSING, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931E_UNKNOWN_IE, Q931E_UNRECOGNIZED_MESSAGE, Q931GetCallByCRV(), Q931GetGlobalCall(), Q931InitMesGeneric(), Q931L2HeaderSpace, Q931Log(), Q931mes_RELEASE, Q931mes_RELEASE_COMPLETE, Q931mes_SETUP, Q931mes_STATUS_ENQUIRY, Q931MesgErrorsInit(), Q931MesgErrorsPrint(), Q931Proc(), Q931StatusEnquiryResponse(), Q931TrunkGetStatusEnquiry(), Q931Tx32(), Q931Uie_CRV(), Q931Umes(), Q931mes_Generic::Size, and Q931mes_Generic::Tei.
Q931_API L3INT Q931Rx43 | ( | Q931_TrunkInfo_t * | trunk, |
Q931mes_Generic * | msg, | ||
int | size | ||
) |
Receive and process message from Layer 4 (application)
[in] | trunk | Q.931 trunk |
[in] | msg | Message buffer (Q931mes_Generic *) |
[in] | size | Size of message |
Definition at line 478 of file Q931.c.
References Q931mes_Generic::CRV, Q931mes_Generic::CRVFlag, Q931_TrunkInfo::Dialect, Q931_CallEvent::id, L3INT, Q931mes_Generic::MesType, Q931_EVENT_RELEASE_CRV, Q931_EVENT_TYPE_CRV, Q931_LOG_DEBUG, Q931_LOG_ERROR, Q931_LOG_NOTICE, Q931_LOG_WARNING, Q931_MSG_FROM_L4, Q931_TFLAG_IGNORE_UNKNOWN_MSG, Q931_U0, Q931CallGetCRV(), Q931CallGetState(), Q931CallIsGlobal(), Q931CallIsOutgoing(), Q931CallRelease(), Q931CallSendEvent(), Q931DialectGetMesProc(), Q931DialectIsEventLegal(), Q931E_INVALID_CRV, Q931E_NO_ERROR, Q931E_UNEXPECTED_MESSAGE, Q931E_UNRECOGNIZED_MESSAGE, Q931GetCallByCRV(), Q931GetGlobalCall(), Q931Log(), Q931Proc(), and Q931TrunkIsSetFlag().
Referenced by Q931ProcStatusTE().
void Q931SetError | ( | Q931_TrunkInfo_t * | trunk, |
L3INT | ErrID, | ||
L3INT | ErrPar1, | ||
L3INT | ErrPar2 | ||
) |
Used by the stack to indicate an error
[in] | trunk | Q.931 trunk |
[in] | ErrID | ID of error (Q931E_*) |
[in] | ErrPar1 | Parameter1 |
[in] | ErrPar2 | Parameter2 |
Definition at line 621 of file Q931.c.
References Q931_TrunkInfo::PrivateData34, and Q931_TrunkInfo::Q931ErrorCBProc.
Referenced by Q931Pie_LLComp(), Q931Uie_BearerCap(), Q931Uie_GenericDigits(), Q931Uie_HLComp(), and Q931Uie_LLComp().
Q931_API void Q931SetGetTimeCB | ( | L3ULONG(*)(void) | callback | ) |
Set timer callback
[in] | callback | callback function used to get the current time in milliseconds |
Definition at line 675 of file Q931.c.
References Q931GetTimeProc.
void Q931SetL2HeaderSpace | ( | L3INT | space | ) |
Definition at line 86 of file Q931.c.
References Q931L2HeaderSpace.
Q931_API void Q931SetLogCB | ( | Q931_TrunkInfo_t * | trunk, |
Q931LogCB_t | func, | ||
void * | priv | ||
) |
Set Logging callback function and private data
[in] | trunk | Q.931 trunk |
[in] | func | Log callback function |
[in] | priv | Optional private data passed to logging function |
Definition at line 804 of file Q931.c.
References Q931_TrunkInfo::PrivateDataLog, and Q931_TrunkInfo::Q931LogCBProc.
Q931_API void Q931SetLogLevel | ( | Q931_TrunkInfo_t * | trunk, |
Q931LogLevel_t | level | ||
) |
Set log level
[in] | trunk | Q.931 trunk |
[in] | level | Log level |
Definition at line 816 of file Q931.c.
References Q931_TrunkInfo::loglevel, Q931_LOG_DEBUG, and Q931_LOG_NONE.
Q931_API L3INT Q931Start | ( | Q931_TrunkInfo_t * | trunk | ) |
Start Q.931 Trunk (Send RESTART)
Definition at line 132 of file Q931api.c.
References Q931mes_Generic::ChanID, Q931ie_RestartInd::Class, Q931ie_ChanID::CodStand, Q931mes_Generic::CRV, Q931ie_RestartInd::IEId, Q931ie_ChanID::IntType, L3UCHAR, Q931mes_Generic::MesType, Q931_IS_PRI, Q931_MSG_FROM_L4, Q931AppendIE(), Q931GetGlobalCall(), Q931ie_RESTART_INDICATOR, Q931InitIEChanID(), Q931InitMesGeneric(), Q931L4BUF, Q931mes_RESTART, Q931Proc(), Q931mes_Generic::RestartInd, and Q931ie_RestartInd::Size.
Q931_API void Q931TimerTick | ( | Q931_TrunkInfo_t * | trunk | ) |
Periodically called to update and check for expired timers
trunk | Q.931 trunk |
Definition at line 201 of file Q931.c.
References Q931_TrunkInfo::call, Q931_CallEvent::id, Q931_Call::InUse, L3INT, L3ULONG, Q931_EVENT_RELEASE_CRV, Q931_EVENT_TYPE_CRV, Q931_LOG_DEBUG, Q931_U0, Q931CallGetCRV(), Q931CallGetState(), Q931CallIncrementTimerExpireCount(), Q931CallIsGlobal(), Q931CallRelease(), Q931CallSendEvent(), Q931CallStopTimer(), Q931GetTime(), Q931Log(), Q931MAXCALLPERTRUNK, Q931Timeout(), Q931_Call::Timer, and Q931_Call::TimerID.
Q931_API L3BOOL Q931TrunkGetAutoConnectAck | ( | Q931_TrunkInfo_t * | trunk | ) |
Q931_API L3BOOL Q931TrunkGetAutoRestartAck | ( | Q931_TrunkInfo_t * | trunk | ) |
Q931_API L3BOOL Q931TrunkGetAutoServiceAck | ( | Q931_TrunkInfo_t * | trunk | ) |
Q931_API L3BOOL Q931TrunkGetAutoSetupAck | ( | Q931_TrunkInfo_t * | trunk | ) |
Q931_API L3BOOL Q931TrunkGetStatusEnquiry | ( | Q931_TrunkInfo_t * | trunk | ) |
Referenced by Q931Rx23().
Q931_API void Q931TrunkSetAutoConnectAck | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetAutoRestartAck | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetAutoServiceAck | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetAutoSetupAck | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetIgnoreIllegalIEs | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetIgnoreUnknownIEs | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetIgnoreUnknownMsg | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Q931_API void Q931TrunkSetRelaxedMode | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |
Relax IE and Message checks: incoming unknown messages and unknown/invalid IEs will be ignored
[in] | trunk | Q.931 Trunk handle |
[in] | enable | Enable or disable Relaxed mode (Q931_TRUE / Q931_FALSE) |
Definition at line 997 of file Q931.c.
References Q931_TFLAG_IGNORE_ILLEGAL_IE, Q931_TFLAG_IGNORE_UNKNOWN_IE, Q931_TFLAG_IGNORE_UNKNOWN_MSG, Q931TrunkClearFlag(), and Q931TrunkSetFlag().
Q931_API void Q931TrunkSetStatusEnquiry | ( | Q931_TrunkInfo_t * | trunk, |
L3BOOL | enable | ||
) |