|
Yate
|
ITU-T SS7 TCAP implementation. More...
#include <yatesig.h>
Public Types | |
| enum | TCAPTags { OriginatingIDTag = 0x48 , DestinationIDTag = 0x49 , PCauseTag = 0x4a } |
| enum | TCAPDialogTags { DialogPortionTag = 0x6b , ProtocolVersionTag = 0x80 , ApplicationContextTag = 0xa1 , UserInformationTag = 0xbe } |
| enum | UserInfoTags { DirectReferenceTag = 0x06 , DataDescriptorTag = 0x07 , ExternalTag = 0x28 , SingleASNTypePEncTag = 0x80 , SingleASNTypeCEncTag = 0xa0 , OctetAlignEncTag = 0x81 , ArbitraryEncTag = 0x82 } |
| enum | TCAPComponentTags { ComponentPortionTag = 0x6c , LocalTag = 0x02 , LinkedIDTag = 0x80 , GlobalTag = 0x06 , ParameterSeqTag = 0x30 , ParameterSetTag = 0x31 } |
Public Types inherited from SS7TCAP | |
| enum | TCAPType { UnknownTCAP , ITUTCAP , ANSITCAP } |
| enum | TCAPUserCompActions { TC_Invoke = 1 , TC_ResultLast = 2 , TC_U_Error = 3 , TC_U_Reject = 4 , TC_R_Reject = 5 , TC_L_Reject = 6 , TC_InvokeNotLast = 7 , TC_ResultNotLast = 8 , TC_L_Cancel = 9 , TC_U_Cancel = 10 , TC_TimerReset = 11 } |
| enum | TCAPUserTransActions { TC_Unknown = 0 , TC_Unidirectional = 1 , TC_Begin , TC_QueryWithPerm , TC_QueryWithoutPerm , TC_Continue , TC_ConversationWithPerm , TC_ConversationWithoutPerm , TC_End , TC_Response , TC_U_Abort , TC_P_Abort , TC_Notice } |
| enum | TCAPComponentOperationClass { SuccessOrFailureReport = 1 , FailureOnlyReport = 2 , SuccessOnlyReport = 3 , NoReport = 4 } |
| enum | TCAPCounter { IncomingMsgs , OutgoingMsgs , DiscardedMsgs , NormalMsgs , AbnormalMsgs } |
Public Member Functions | |
| SS7TCAPITU (const NamedList ¶ms) | |
| ~SS7TCAPITU () | |
| virtual SS7TCAPTransaction * | buildTransaction (SS7TCAP::TCAPUserTransActions type, const String &transactID, NamedList ¶ms, bool initLocal=true) |
Public Member Functions inherited from SS7TCAP | |
| SS7TCAP (const NamedList ¶ms) | |
| virtual | ~SS7TCAP () |
| virtual bool | initialize (const NamedList *config) |
| virtual bool | sendData (DataBlock &data, NamedList ¶ms) |
| virtual HandledMSU | receivedData (DataBlock &data, NamedList ¶ms) |
| virtual HandledMSU | notifyData (DataBlock &data, NamedList ¶ms) |
| bool | managementNotify (SCCP::Type type, NamedList ¶ms) |
| void | attach (TCAPUser *user) |
| void | detach (TCAPUser *user) |
| virtual SS7TCAPError | userRequest (NamedList &requestParams) |
| virtual HandledMSU | processSCCPData (SS7TCAPMessage *sccpData) |
| TCAPType | tcapType () |
| void | setTCAPType (TCAPType type) |
| virtual void | enqueue (SS7TCAPMessage *msg) |
| virtual SS7TCAPMessage * | dequeue () |
| virtual const String | allocTransactionID () |
| void | allocTransactionID (String &str) |
| SS7TCAPTransaction * | getTransaction (const String &tid) |
| void | removeTransaction (SS7TCAPTransaction *tr) |
| virtual void | timerTick (const Time &when) |
| virtual bool | sendToUser (NamedList ¶ms) |
| virtual void | buildSCCPData (NamedList ¶ms, SS7TCAPTransaction *tr) |
| virtual void | status (NamedList &status) |
| virtual void | userStatus (NamedList &status) |
| virtual HandledMSU | handleError (SS7TCAPError &error, NamedList ¶ms, DataBlock &data, SS7TCAPTransaction *tr=0) |
| virtual void | updateUserStatus (TCAPUser *user, SCCPManagement::LocalBroadcast status, NamedList ¶ms) |
| void | incCounter (TCAPCounter counterType) |
| unsigned int | count (TCAPCounter counterType) |
Public Member Functions inherited from SCCPUser | |
| SCCPUser (const NamedList ¶ms) | |
| virtual | ~SCCPUser () |
| virtual bool | sccpNotify (SCCP::Type type, NamedList ¶ms) |
| virtual void | attach (SCCP *sccp) |
| SCCP * | sccp () const |
Public Member Functions inherited from SignallingComponent | |
| virtual | ~SignallingComponent () |
| virtual const String & | toString () const |
| virtual bool | control (NamedList ¶ms) |
| virtual NamedList * | controlCreate (const char *oper=0) |
| virtual bool | controlExecute (NamedList *params) |
| virtual void | engine (SignallingEngine *eng) |
| SignallingEngine * | engine () const |
| int | debugLevel (int level) |
| const String & | componentType () const |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| virtual bool | alive () const |
| bool | ref () |
| bool | deref () |
| int | refcount () const |
| virtual void | destruct () |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const |
| int | debugLevel (int level) |
| bool | debugEnabled () const |
| void | debugEnabled (bool enable) |
| const char * | debugName () const |
| bool | debugAt (int level) const |
| bool | debugChained () const |
| void | debugChain (const DebugEnabler *chain=0) |
| void | debugCopy (const DebugEnabler *original=0) |
Additional Inherited Members | |
Static Public Member Functions inherited from SS7TCAP | |
| static const char * | lookupTransaction (int tr) |
| static int | lookupTransaction (const char *tr) |
| static const char * | lookupComponent (int comp) |
| static int | lookupComponent (const char *comp) |
Static Public Member Functions inherited from SignallingComponent | |
| static bool | resolveConfig (const String &cmpName, NamedList ¶ms, const NamedList *config) |
Static Public Member Functions inherited from RefObject | |
| static bool | alive (const RefObject *obj) |
| static bool | efficientIncDec () |
Static Public Member Functions inherited from GenObject | |
| static void * | getObject (const String &name, const GenObject *obj) |
| static bool | getObjCounting () |
| static void | setObjCounting (bool enable) |
| static NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
Static Public Attributes inherited from SS7TCAP | |
| static const TokenDict | s_tcapVersion [] |
| static const TokenDict | s_compPrimitives [] |
| static const TokenDict | s_transPrimitives [] |
| static const TokenDict | s_compOperClasses [] |
Protected Member Functions inherited from SS7TCAP | |
| bool | sendSCCPNotify (NamedList ¶ms) |
Protected Member Functions inherited from SCCPUser | |
| virtual void | destroyed () |
Protected Member Functions inherited from SignallingComponent | |
| SignallingComponent (const char *name=0, const NamedList *params=0, const char *type="unknown") | |
| void | insert (SignallingComponent *component) |
| virtual void | detach () |
| void | setName (const char *name) |
| void | setCompType (const char *type) |
| unsigned long | tickSleep (unsigned long usec=1000000) const |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
Protected Member Functions inherited from DebugEnabler | |
| void | debugName (const char *name) |
Protected Attributes inherited from SS7TCAP | |
| ObjList | m_users |
| Mutex | m_usersMtx |
| ObjList | m_inQueue |
| Mutex | m_inQueueMtx |
| unsigned int | m_SSN |
| unsigned int | m_defaultRemoteSSN |
| unsigned int | m_defaultHopCounter |
| SS7PointCode | m_defaultRemotePC |
| SS7PointCode::Type | m_remoteTypePC |
| u_int64_t | m_trTimeout |
| Mutex | m_transactionsMtx |
| ObjList | m_transactions |
| TCAPType | m_tcapType |
| u_int32_t | m_idsPool |
| unsigned int | m_recvMsgs |
| unsigned int | m_sentMsgs |
| unsigned int | m_discardMsgs |
| unsigned int | m_normalMsgs |
| unsigned int | m_abnormalMsgs |
| SCCPManagement::LocalBroadcast | m_ssnStatus |
ITU-T SS7 TCAP implementation.
Implementation of SS7 Transactional Capabilities Application Part - specification ITU-T
| SS7TCAPITU | ( | const NamedList & | params | ) |
Constructor
| params | Parameters to build ITU TCAP |
| ~SS7TCAPITU | ( | ) |
Destructor
|
virtual |
Build a transaction
| type | Type with which to build the transactions |
| transactID | ID for the transaction |
| params | Parameters for building the transaction |
| initLocal | True if built by user, false if by remote end |
Implements SS7TCAP.