|
Yate
|
An SS7 ISUP call. More...
#include <yatesig.h>
Public Types | |
| enum | State { Null = 0, Testing = 1, Setup = 2, Accepted = 3, Ringing = 4, Answered = 5, Releasing = 6, Released = 7 } |
Public Member Functions | |
| virtual | ~SS7ISUPCall () |
| State | state () const |
| bool | earlyState () const |
| const String & | cicRange () const |
| unsigned int | id () const |
| virtual SignallingEvent * | getEvent (const Time &when) |
| virtual bool | sendEvent (SignallingEvent *event) |
| void | setTerminate (bool gracefully, const char *reason=0, const char *diagnostic=0, const char *location=0) |
| virtual void * | getObject (const String &name) const |
Protected Member Functions | |
| SS7ISUPCall (SS7ISUP *controller, SignallingCircuit *cic, const SS7PointCode &local, const SS7PointCode &remote, bool outgoing, int sls=-1, const char *range=0, bool testCall=false) | |
| SignallingEvent * | releaseComplete (bool final, SS7MsgISUP *msg=0, const char *reason=0, bool timeout=false) |
| bool | replaceCircuit (SignallingCircuit *circuit, SS7MsgISUP *msg=0) |
| void | stopWaitSegment (bool discard) |
Friends | |
| class | SS7ISUP |
An SS7 ISUP call.
A signalling call using SS7 ISUP protocol
| enum State |
Call state enumerators
| virtual ~SS7ISUPCall | ( | ) | [virtual] |
Destructor. Complete call release. Releas circuit. Remove itself from controller's list
| SS7ISUPCall | ( | SS7ISUP * | controller, |
| SignallingCircuit * | cic, | ||
| const SS7PointCode & | local, | ||
| const SS7PointCode & | remote, | ||
| bool | outgoing, | ||
| int | sls = -1, |
||
| const char * | range = 0, |
||
| bool | testCall = false |
||
| ) | [protected] |
Constructor
| controller | The call controller |
| cic | The reserved circuit |
| local | The local point code used to create the routing label for sent messages |
| remote | The remote point code used to create the routing label for sent messages |
| outgoing | Call direction |
| sls | Optional link for the routing label |
| range | Optional range used to re-allocate a circuit for this call if necessary |
| testCall | True if this is a test call |
Get the call's circuit range
| bool earlyState | ( | ) | const [inline] |
Check if the call is a not test one in early state
| virtual SignallingEvent* getEvent | ( | const Time & | when | ) | [virtual] |
Get an event from this call This method is thread safe
| when | The current time |
Implements SignallingCall.
Get a pointer to this object or other data
| name | Object name |
Reimplemented from RefObject.
| unsigned int id | ( | ) | const [inline] |
Get the call id (the code of the circuit reserved for this call)
| SignallingEvent* releaseComplete | ( | bool | final, |
| SS7MsgISUP * | msg = 0, |
||
| const char * | reason = 0, |
||
| bool | timeout = false |
||
| ) | [protected] |
Release call. Stop timers. Send a RLC (Release Complete) message if it should terminate gracefully Decrease the object's referrence count and generate a Release event if not final This method is thread safe
| final | True if called from destructor |
| msg | Received message with parameters if any |
| reason | Optional release reason |
| timeout | True if this is method is called due to T5 timer expiry |
| bool replaceCircuit | ( | SignallingCircuit * | circuit, |
| SS7MsgISUP * | msg = 0 |
||
| ) | [protected] |
Replace the circuit reserved for this call. Release the already reserved circuit. Retransmit the initial IAM request on success. On failure set the termination flag and release the new circuit if valid. If false is returned, the call is prepared to return a Release event. This method is thread safe
| circuit | The new circuit reserved for this call |
| msg | Optional message to send before IAM (it will be consumed) |
| virtual bool sendEvent | ( | SignallingEvent * | event | ) | [virtual] |
Send an event to this call
| event | The event to send |
Reimplemented from SignallingCall.
| void setTerminate | ( | bool | gracefully, |
| const char * | reason = 0, |
||
| const char * | diagnostic = 0, |
||
| const char * | location = 0 |
||
| ) | [inline] |
Set termination flag. Set termination reason if not already set
| gracefully | True to send RLC on termination, false to destroy the call without notification |
| reason | Termination reason |
| diagnostic | Optional diagnostic data to be sent with termination reason |
| location | Optional release location |
| void stopWaitSegment | ( | bool | discard | ) | [protected] |
Stop waiting for a SGM (Segmentation) message when another message is received by the controller. This method is thread safe
| discard | True to discard (destruct) the segment waiting message if any |
1.7.6.1