#include "Q931.h"
#include "memory.h"
Go to the source code of this file.
L3INT Q931AckConnect | ( | struct Q931_Call * | call | ) |
Definition at line 655 of file Q931api.c.
References Q931mes_Generic::CRVFlag, L3UCHAR, Q931mes_Generic::MesType, Q931CallGetTrunk(), Q931CallIsOutgoing(), Q931InitMesGeneric(), Q931L4BUF, Q931mes_CONNECT_ACKNOWLEDGE, and Q931Send().
Referenced by Q931ProcConnectTE().
L3INT Q931AckRestart | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3UCHAR * | buf | |||
) |
Definition at line 613 of file Q931api.c.
References Q931ie_RestartInd::Class, Q931mes_Generic::CRVFlag, Q931ie_RestartInd::IEId, L3INT, L3UCHAR, Q931mes_Generic::MesType, Q931AppendIE(), Q931ie_RESTART_INDICATOR, Q931L4HeaderSpace, Q931mes_RESTART_ACKNOWLEDGE, Q931Proc(), and Q931mes_Generic::RestartInd.
Referenced by Q931ProcRestartNT(), and Q931ProcRestartTE().
L3INT Q931AckService | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3UCHAR * | buf | |||
) |
Definition at line 670 of file Q931api.c.
References Q931mes_Header::CRV, Q931mes_Header::CRVFlag, L3INT, Q931mes_Header::MesType, Q931L4HeaderSpace, Q931mes_SERVICE_ACKNOWLEDGE, and Q931Proc().
L3INT Q931AckSetup | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3UCHAR * | buf | |||
) |
Definition at line 635 of file Q931api.c.
References L3INT, Q931mes_Header::MesType, Q931L4HeaderSpace, Q931mes_SETUP_ACKNOWLEDGE, and Q931Proc().
Referenced by Q931ProcSetupNT(), and Q931ProcSetupTE().
ie Q931AppendIE | ( | L3UCHAR * | pm, | |
L3UCHAR * | pi | |||
) |
Definition at line 169 of file Q931api.c.
References Q931mes_Generic::buf, L3INT, 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 576 of file Q931api.c.
References Q931ie_CallState::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, Q931L4HeaderSpace, Q931mes_STATUS, Q931Tx32Data(), Q931ie_Cause::Recom, Q931ie_CallState::Size, Q931ie_Cause::Size, and Q931ie_Cause::Value.
L3INT Q931Disconnect | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3INT | iTo, | |||
L3INT | iCRV, | |||
L3INT | iCause | |||
) |
Definition at line 470 of file Q931api.c.
Referenced by Q931ProcSetupNT(), Q931ProcSetupTE(), and Q931Rx23().
L3INT Q931GetMesSize | ( | Q931mes_Generic * | pMes | ) |
Definition at line 152 of file Q931api.c.
References Q931mes_Generic::buf, L3INT, and L3UCHAR.
Referenced by Q931InitMesGeneric(), Q931InitMesRestartAck(), and Q931InitMesResume().
L3INT Q931GetUniqueCRV | ( | Q931_TrunkInfo_t * | pTrunk | ) |
Definition at line 184 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 Q931InitIEBearerCap | ( | Q931ie_BearerCap * | pIE | ) |
Definition at line 232 of file Q931api.c.
References Q931ie_BearerCap::AL3Info1, Q931ie_BearerCap::AL3Info2, Q931ie_BearerCap::Assignor, Q931ie_BearerCap::CodStand, Q931ie_BearerCap::DuplexMode, Q931ie_BearerCap::FlowCtlRx, Q931ie_BearerCap::FlowCtlTx, Q931ie_BearerCap::HDR, Q931ie_BearerCap::IEId, Q931ie_BearerCap::InBandNeg, Q931ie_BearerCap::InterRate, Q931ie_BearerCap::ITC, Q931ie_BearerCap::ITR, Q931ie_BearerCap::Layer1Ident, Q931ie_BearerCap::Layer2Ident, Q931ie_BearerCap::Layer3Ident, Q931ie_BearerCap::LLInegot, Q931ie_BearerCap::Mode, Q931ie_BearerCap::ModemType, Q931ie_BearerCap::MultiFrame, Q931ie_BearerCap::Negot, Q931ie_BearerCap::NIConRx, Q931ie_BearerCap::NIConTx, Q931ie_BearerCap::NumDataBits, Q931ie_BearerCap::NumStopBits, Q931ie_BearerCap::Parity, Q931ie_BEARER_CAPABILITY, Q931ie_BearerCap::RateMul, Q931ie_BearerCap::Size, Q931ie_BearerCap::SyncAsync, Q931ie_BearerCap::TransMode, Q931ie_BearerCap::UIL1Prot, Q931ie_BearerCap::UIL2Prot, Q931ie_BearerCap::UIL3Prot, and Q931ie_BearerCap::UserRate.
L3INT Q931InitIECalledNum | ( | Q931ie_CalledNum * | pIE | ) |
Definition at line 379 of file Q931api.c.
References Q931ie_CalledNum::Digit, Q931ie_CalledNum::IEId, Q931ie_CalledNum::NumPlanID, Q931ie_CALLED_PARTY_NUMBER, Q931ie_CalledNum::Size, and Q931ie_CalledNum::TypNum.
L3INT Q931InitIECalledSub | ( | Q931ie_CalledSub * | pIE | ) |
Definition at line 390 of file Q931api.c.
References Q931ie_CalledSub::Digit, Q931ie_CalledSub::IEId, Q931ie_CalledSub::OddEvenInd, Q931ie_CALLED_PARTY_SUBADDRESS, Q931ie_CalledSub::Size, and Q931ie_CalledSub::TypNum.
L3INT Q931InitIECallingNum | ( | Q931ie_CallingNum * | pIE | ) |
Definition at line 355 of file Q931api.c.
References Q931ie_CallingNum::Digit, Q931ie_CallingNum::IEId, Q931ie_CallingNum::NumPlanID, Q931ie_CallingNum::PresInd, Q931ie_CALLING_PARTY_NUMBER, Q931ie_CallingNum::ScreenInd, Q931ie_CallingNum::Size, and Q931ie_CallingNum::TypNum.
L3INT Q931InitIECallingSub | ( | Q931ie_CallingSub * | pIE | ) |
Definition at line 368 of file Q931api.c.
References Q931ie_CallingSub::Digit, Q931ie_CallingSub::IEId, Q931ie_CallingSub::OddEvenInd, Q931ie_CALLING_PARTY_SUBADDRESS, Q931ie_CallingSub::Size, and Q931ie_CallingSub::TypNum.
L3INT Q931InitIEChanID | ( | Q931ie_ChanID * | pIE | ) |
Definition at line 272 of file Q931api.c.
References Q931ie_ChanID::ChanMapType, Q931ie_ChanID::ChanSlot, Q931ie_ChanID::CodStand, Q931ie_ChanID::DChanInd, Q931ie_ChanID::IEId, Q931ie_ChanID::InfoChanSel, Q931ie_ChanID::InterfaceID, Q931ie_ChanID::IntIDPresent, Q931ie_ChanID::IntType, Q931ie_ChanID::NumMap, Q931ie_ChanID::PrefExcl, Q931ie_CHANNEL_IDENTIFICATION, and Q931ie_ChanID::Size.
L3INT Q931InitIEDateTime | ( | Q931ie_DateTime * | pIE | ) |
Definition at line 323 of file Q931api.c.
References Q931ie_DateTime::Day, Q931ie_DateTime::Hour, Q931ie_DateTime::IEId, Q931ie_DateTime::Minute, Q931ie_DateTime::Month, Q931ie_DATETIME, Q931ie_DateTime::Second, Q931ie_DateTime::Size, and Q931ie_DateTime::Year.
L3INT Q931InitIEDisplay | ( | Q931ie_Display * | pIE | ) |
Definition at line 314 of file Q931api.c.
References Q931ie_Display::Display, Q931ie_Display::IEId, Q931ie_DISPLAY, and Q931ie_Display::Size.
L3INT Q931InitIEHLComp | ( | Q931ie_HLComp * | pIE | ) |
Definition at line 462 of file Q931api.c.
References Q931ie_HLComp::IEId, Q931ie_HIGH_LAYER_COMPATIBILITY, and Q931ie_HLComp::Size.
L3INT Q931InitIEKeypadFac | ( | Q931ie_KeypadFac * | pIE | ) |
Definition at line 337 of file Q931api.c.
References Q931ie_KeypadFac::IEId, Q931ie_KeypadFac::KeypadFac, Q931ie_KEYPAD_FACILITY, and Q931ie_KeypadFac::Size.
L3INT Q931InitIELLComp | ( | Q931ie_LLComp * | pIE | ) |
Definition at line 412 of file Q931api.c.
References Q931ie_LLComp::AddL3Info, Q931ie_LLComp::Assignor, Q931ie_LLComp::CodStand, Q931ie_LLComp::DefPackSize, Q931ie_LLComp::DuplexMode, Q931ie_LLComp::FlowCtlRx, Q931ie_LLComp::FlowCtlTx, Q931ie_LLComp::HDR, Q931ie_LLComp::IEId, Q931ie_LLComp::InBandNeg, Q931ie_LLComp::InfoRate, Q931ie_LLComp::InterRate, Q931ie_LLComp::ITransCap, Q931ie_LLComp::Layer1Ident, Q931ie_LLComp::Layer2Ident, Q931ie_LLComp::Layer3Ident, Q931ie_LLComp::ModeL1, Q931ie_LLComp::ModeL2, Q931ie_LLComp::ModeL3, Q931ie_LLComp::ModemType, Q931ie_LLComp::MultiFrame, Q931ie_LLComp::Negot, Q931ie_LLComp::NegotInd, Q931ie_LLComp::NegotLLI, Q931ie_LLComp::NIConRx, Q931ie_LLComp::NIConTx, Q931ie_LLComp::NumDataBits, Q931ie_LLComp::NumStopBits, Q931ie_LLComp::OptL3Info, Q931ie_LLComp::PackWinSize, Q931ie_LLComp::Parity, Q931ie_LOW_LAYER_COMPATIBILITY, Q931ie_LLComp::Q933use, Q931ie_LLComp::RateMul, Q931ie_LLComp::Size, Q931ie_LLComp::SyncAsync, Q931ie_LLComp::TransMode, Q931ie_LLComp::UIL1Prot, Q931ie_LLComp::UIL2Prot, Q931ie_LLComp::UserRate, Q931ie_LLComp::UsrSpcL2Prot, and Q931ie_LLComp::WindowSize.
L3INT Q931InitIENetFac | ( | Q931ie_NetFac * | pIE | ) |
Definition at line 301 of file Q931api.c.
References Q931ie_NetFac::IEId, Q931ie_NetFac::LenNetID, Q931ie_NetFac::NetFac, Q931ie_NetFac::NetID, Q931ie_NetFac::NetIDPlan, Q931ie_NETWORK_SPECIFIC_FACILITIES, Q931ie_NetFac::Size, and Q931ie_NetFac::TypeNetID.
L3INT Q931InitIEProgInd | ( | Q931ie_ProgInd * | pIE | ) |
Definition at line 290 of file Q931api.c.
References Q931ie_ProgInd::CodStand, Q931ie_ProgInd::IEId, Q931ie_ProgInd::Location, Q931ie_ProgInd::ProgDesc, Q931ie_PROGRESS_INDICATOR, and Q931ie_ProgInd::Size.
L3INT Q931InitIESignal | ( | Q931ie_Signal * | pIE | ) |
Definition at line 346 of file Q931api.c.
References Q931ie_Signal::IEId, Q931ie_SIGNAL, Q931ie_Signal::Signal, and Q931ie_Signal::Size.
L3INT Q931InitIETransNetSel | ( | Q931ie_TransNetSel * | pIE | ) |
Definition at line 401 of file Q931api.c.
References Q931ie_TransNetSel::IEId, Q931ie_TransNetSel::NetID, Q931ie_TransNetSel::NetIDPlan, Q931ie_TRANSIT_NETWORK_SELECTION, Q931ie_TransNetSel::Size, and Q931ie_TransNetSel::Type.
L3INT Q931InitMesGeneric | ( | Q931mes_Generic * | pMes | ) |
Definition at line 198 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().
L3INT Q931InitMesRestartAck | ( | Q931mes_Generic * | pMes | ) |
Definition at line 218 of file Q931api.c.
References Q931mes_Generic::ChanID, Q931mes_Generic::CRV, Q931mes_Generic::Display, Q931mes_Generic::MesType, Q931mes_Generic::ProtDisc, Q931GetMesSize(), Q931mes_RESTART_ACKNOWLEDGE, Q931mes_Generic::RestartInd, Q931mes_Generic::RestartWin, and Q931mes_Generic::Size.
L3INT Q931InitMesResume | ( | Q931mes_Generic * | pMes | ) |
Definition at line 207 of file Q931api.c.
References Q931mes_Generic::CallID, Q931mes_Generic::CRV, Q931mes_Generic::MesType, Q931mes_Generic::ProtDisc, Q931GetMesSize(), Q931mes_RESUME, and Q931mes_Generic::Size.
L3INT Q931InitTrunk | ( | Q931_TrunkInfo_t * | pTrunk, | |
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 44 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 * | pTrunk, | |
L3UCHAR * | buf, | |||
struct Q931_Call * | call, | |||
L3UCHAR | causeval | |||
) |
Definition at line 481 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(), Q931L4HeaderSpace, Q931mes_RELEASE, Q931Tx32Data(), Q931ie_Cause::Recom, Q931mes_Generic::Size, Q931ie_Cause::Size, and Q931ie_Cause::Value.
L3INT Q931ReleaseComplete | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3UCHAR * | buf, | |||
struct Q931_Call * | call, | |||
L3UCHAR | causeval | |||
) |
Definition at line 507 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(), Q931L4HeaderSpace, Q931mes_RELEASE_COMPLETE, Q931Tx32Data(), Q931ie_Cause::Recom, Q931mes_Generic::Size, Q931ie_Cause::Size, and Q931ie_Cause::Value.
Referenced by Q931ProcReleaseCompleteTE(), Q931ProcReleaseNT(), and Q931ProcReleaseTE().
L3INT Q931Send | ( | struct Q931_Call * | call, | |
Q931mes_Generic * | mes, | |||
L3INT | bcast | |||
) |
Definition at line 647 of file Q931api.c.
References L3UCHAR, Q931CallGetTrunk(), Q931Tx32Data(), and Q931mes_Generic::Size.
Referenced by Q931AckConnect().
L3INT Q931Start | ( | Q931_TrunkInfo_t * | trunk | ) |
Start Q.931 Trunk (Send RESTART).
Definition at line 130 of file Q931api.c.
References Q931ie_RestartInd::Class, Q931mes_Generic::CRV, Q931ie_RestartInd::IEId, L3UCHAR, Q931mes_Generic::MesType, Q931_LOG_NOTICE, Q931AppendIE(), Q931ie_RESTART_INDICATOR, Q931InitMesGeneric(), Q931L4BUF, Q931L4HeaderSpace, Q931Log(), Q931mes_RESTART, Q931Proc(), Q931mes_Generic::RestartInd, and Q931ie_RestartInd::Size.
L3INT Q931StatusEnquiryResponse | ( | Q931_TrunkInfo_t * | pTrunk, | |
L3UCHAR * | buf, | |||
struct Q931_Call * | call, | |||
L3UCHAR | causeval | |||
) |
Definition at line 533 of file Q931api.c.
References Q931ie_CallState::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(), Q931L4HeaderSpace, Q931mes_STATUS, Q931Tx32Data(), Q931ie_Cause::Recom, Q931ie_CallState::Size, Q931ie_Cause::Size, and Q931ie_Cause::Value.
Referenced by Q931ProcStatusEnquiryNT(), Q931ProcStatusEnquiryTE(), and Q931Rx23().
L3INT Q931L4HeaderSpace |