|
Yate
|
SS7 Layer 2 implementation on top of a hardware interface. More...
#include <yatesig.h>
Public Types | |
| enum | ErrorCorrection { Basic , Preventive , Adaptive } |
Public Types inherited from SS7Layer2 | |
| enum | LinkStatus { OutOfAlignment = 0 , NormalAlignment = 1 , EmergencyAlignment = 2 , OutOfService = 3 , ProcessorOutage = 4 , Busy = 5 , O = OutOfAlignment , N = NormalAlignment , E = EmergencyAlignment , OS = OutOfService , PO = ProcessorOutage , B = Busy } |
| enum | Operation { Pause = 0x100 , Resume = 0x200 , Align = 0x300 , Status = 0x400 } |
| enum | Inhibitions { Unchecked = 0x01 , Inactive = 0x02 , Local = 0x04 , Remote = 0x08 } |
Public Member Functions | |
| SS7MTP2 (const NamedList ¶ms, unsigned int status=OutOfService) | |
| virtual | ~SS7MTP2 () |
| virtual bool | initialize (const NamedList *config) |
| virtual bool | transmitMSU (const SS7MSU &msu) |
| virtual void | recoverMSU (int sequence) |
| virtual unsigned int | status () const |
| virtual bool | aligned () const |
| virtual bool | operational () const |
| virtual bool | control (Operation oper, NamedList *params=0) |
| virtual bool | notify (SignallingInterface::Notification event) |
Public Member Functions inherited from SS7Layer2 | |
| virtual const char * | statusName (unsigned int status, bool brief) const |
| const char * | statusName (bool brief=false) const |
| unsigned int | upTime () const |
| void | attach (SS7L2User *l2user) |
| SS7L2User * | user () const |
| int | sls () const |
| void | sls (int linkSel) |
| int | inhibited () const |
| bool | inhibited (int flags) const |
| virtual unsigned int | congestion () |
| virtual int | getSequence () |
Public Member Functions inherited from SignallingComponent | |
| virtual | ~SignallingComponent () |
| virtual const String & | toString () const |
| 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) |
Public Member Functions inherited from SignallingReceiver | |
| SignallingReceiver (const char *name=0) | |
| virtual | ~SignallingReceiver () |
| virtual SignallingInterface * | attach (SignallingInterface *iface) |
| SignallingInterface * | iface () const |
| bool | control (SignallingInterface::Operation oper, NamedList *params=0) |
Public Member Functions inherited from SignallingDumpable | |
| ~SignallingDumpable () | |
Public Member Functions inherited from Mutex | |
| Mutex (bool recursive=false, const char *name=0) | |
| Mutex (const Mutex &original) | |
| ~Mutex () | |
| Mutex & | operator= (const Mutex &original) |
| virtual bool | lock (long maxwait=-1) |
| virtual bool | unlock () |
| virtual bool | locked () const |
| const char * | owner () const |
| bool | recursive () const |
Public Member Functions inherited from Lockable | |
| virtual | ~Lockable () |
| virtual bool | check (long maxwait=-1) |
| virtual bool | unlockAll () |
Protected Member Functions | |
| virtual void | destroyed () |
| virtual void | timerTick (const Time &when) |
| virtual bool | receivedPacket (const DataBlock &packet) |
| virtual void | processFISU () |
| virtual void | processLSSU (unsigned int status) |
| bool | transmitLSSU (unsigned int status) |
| bool | transmitLSSU () |
| bool | transmitFISU () |
| void | startAlignment (bool emergency=false) |
| void | abortAlignment (bool retry=true) |
| bool | startProving () |
Protected Member Functions inherited from SS7Layer2 | |
| SS7Layer2 () | |
| bool | receivedMSU (const SS7MSU &msu) |
| bool | recoveredMSU (const SS7MSU &msu) |
| void | notify () |
| bool | inhibit (int setFlags, int clrFlags=0) |
| bool | getEmergency (NamedList *params=0, bool emg=false) const |
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 Member Functions inherited from SignallingReceiver | |
| bool | transmitPacket (const DataBlock &packet, bool repeat, SignallingInterface::PacketType type=SignallingInterface::Unknown) |
Protected Member Functions inherited from SignallingDumpable | |
| SignallingDumpable (SignallingDumper::Type type, bool network=false) | |
| bool | dump (void *buf, unsigned int len, bool sent=false, int link=0) |
| bool | dump (const DataBlock &data, bool sent=false, int link=0) |
| void | setDumpNetwork (bool network) |
| void | setDumper (SignallingDumper *dumper=0) |
| bool | setDumper (const String &name, bool create=true, bool append=false) |
| bool | control (NamedList ¶ms, SignallingComponent *owner=0) |
Additional Inherited Members | |
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 Member Functions inherited from Mutex | |
| static int | count () |
| static int | locks () |
| static bool | efficientTimedLock () |
Static Public Member Functions inherited from Lockable | |
| static void | wait (unsigned long maxwait) |
| static unsigned long | wait () |
| static void | startUsingNow () |
| static void | enableSafety (bool safe=true) |
| static bool | safety () |
Protected Attributes inherited from SS7Layer2 | |
| bool | m_autoEmergency |
| int | m_lastSeqRx |
| unsigned int | m_congestion |
SS7 Layer 2 implementation on top of a hardware interface.
Q.703 SS7 Layer 2 (Data Link) implementation on top of a hardware interface
| enum ErrorCorrection |
Types of error correction
|
virtual |
Destructor
|
protected |
Abort an alignment procedure if link errors occur
| retry | Keep trying to align |
|
virtual |
Check if the link is aligned. The link may not be operational, the other side may be still proving.
Execute a control operation. Operations can change the link status or can query the aligned status.
| oper | Operation to execute |
| params | Optional parameters for the operation |
Reimplemented from SS7Layer2.
Referenced by startProving().
|
inlineprotectedvirtual |
Remove all attachements. Disposes the memory
Reimplemented from SignallingComponent.
References SignallingReceiver::attach(), SS7Layer2::attach(), and SignallingComponent::destroyed().
|
virtual |
Configure and initialize MTP2 and its interface
| config | Optional configuration parameters override |
Reimplemented from SignallingComponent.
|
virtual |
Process a notification generated by the attached interface
| event | Notification event reported by the interface |
Reimplemented from SignallingReceiver.
|
virtual |
Check if the link is aligned and operational
Implements SS7Layer2.
|
protectedvirtual |
Process a received Fill-In Signal Unit
|
protectedvirtual |
Process a received Link Status Signal Unit
| status | Link status indications |
References status().
|
protectedvirtual |
Process a Signalling Packet received by the hardware interface
Implements SignallingReceiver.
|
virtual |
Remove the MSUs waiting in the transmit queue and return them
| sequence | First sequence number to recover, flush earlier packets |
Reimplemented from SS7Layer2.
|
protected |
Initiates alignment and proving procedure
| emergency | True if emergency alignment is desired |
|
protected |
|
virtual |
Retrieve the current link status indications
Reimplemented from SS7Layer2.
Referenced by processLSSU(), SS7MTP2(), and transmitLSSU().
|
protectedvirtual |
|
protected |
Push a Fill-In Signal Unit down the protocol stack
|
inlineprotected |
Push a Link Status Signal Unit with the current status down the protocol stack
References transmitLSSU().
|
protected |
Push a Link Status Signal Unit down the protocol stack
| status | Link status indications |
References status().
Referenced by transmitLSSU().
|
virtual |
Push a Message Signal Unit down the protocol stack
| msu | MSU data to transmit |
Implements SS7Layer2.