Main router for SS7 message transfer and applications. More...
#include <yatesig.h>
Public Member Functions | |
SS7Router (const NamedList ¶ms) | |
virtual bool | initialize (const NamedList *config) |
virtual int | transmitMSU (const SS7MSU &msu, const SS7Label &label, int sls=-1) |
virtual bool | operational (int sls=-1) const |
virtual void | attach (SS7Layer3 *network) |
virtual void | detach (SS7Layer3 *network) |
void | attach (SS7Layer4 *service) |
void | detach (SS7Layer4 *service) |
Protected Member Functions | |
virtual bool | receivedMSU (const SS7MSU &msu, const SS7Label &label, SS7Layer3 *network, int sls) |
virtual void | notify (SS7Layer3 *network, int sls) |
Protected Attributes | |
ObjList | m_layer3 |
ObjList | m_layer4 |
int | m_changes |
Main router for SS7 message transfer and applications.
A message router between Transfer and Application layers. Messages are distributed according to the service type.
Default constructor
params | The list with the parameters |
void attach | ( | SS7Layer4 * | service | ) |
Attach a SS7 Layer 4 (service) to the router. Attach itself to the service
service | Pointer to service to attach |
virtual void attach | ( | SS7Layer3 * | network | ) | [virtual] |
Attach a SS7 Layer 3 (network) to the router. Attach the router to the given network
network | Pointer to network to attach |
Implements SS7L3User.
void detach | ( | SS7Layer4 * | service | ) |
Detach a SS7 Layer 4 (service) from the router. Detach itself from the service
service | Pointer to service to detach |
virtual void detach | ( | SS7Layer3 * | network | ) | [virtual] |
Detach a SS7 Layer 3 (network) from the router. Detach the router from the given network
network | Pointer to network to detach |
virtual bool initialize | ( | const NamedList * | config | ) | [virtual] |
Configure and initialize the router, maintenance and management
config | Optional configuration parameters override |
Reimplemented from SignallingComponent.
virtual void notify | ( | SS7Layer3 * | network, | |
int | sls | |||
) | [protected, virtual] |
Process a notification generated by the attached network layer
network | Network or linkset that generated the notification | |
sls | Signallink Link that generated the notification, negative if none |
Reimplemented from SS7L3User.
virtual bool operational | ( | int | sls = -1 |
) | const [virtual] |
Check if the router is fully operational
sls | Signalling Link to check, negative to check if any is operational |
Implements SS7Layer3.
virtual bool receivedMSU | ( | const SS7MSU & | msu, | |
const SS7Label & | label, | |||
SS7Layer3 * | network, | |||
int | sls | |||
) | [protected, virtual] |
Process a MSU received from the Layer 3 component
msu | Message data, starting with Service Indicator Octet | |
label | Routing label of the received MSU | |
network | Network layer that delivered the MSU | |
sls | Signalling Link the MSU was received from |
Implements SS7L3User.
Push a Message Signal Unit down the protocol stack
msu | Message data, starting with Service Indicator Octet | |
label | Routing label of the MSU to use in routing | |
sls | Signalling Link Selection, negative to choose best |
Implements SS7Layer3.
int m_changes [protected] |
Counter used to spot changes in the lists of L3 or L4