Yate
|
A Q.931 ISDN call. More...
#include <yatesig.h>
Public Member Functions | |
virtual | ~ISDNQ931Call () |
u_int32_t | callRef () const |
u_int32_t | callRefLen () const |
u_int8_t | callTei () const |
SignallingCircuit * | circuit () |
void | setTerminate (bool destroy, const char *reason) |
virtual bool | sendEvent (SignallingEvent *event) |
virtual SignallingEvent * | getEvent (const Time &when) |
void | dataLinkState (bool up) |
virtual void * | getObject (const String &name) const |
Protected Member Functions | |
ISDNQ931Call (ISDNQ931 *controller, bool outgoing, u_int32_t callRef, u_int8_t callRefLen, u_int8_t tei=0) | |
SignallingEvent * | releaseComplete (const char *reason=0, const char *diag=0) |
SignallingEvent * | getCircuitEvent (const Time &when) |
Friends | |
class | ISDNQ931 |
A Q.931 ISDN call.
Q.931 ISDN call
virtual ~ISDNQ931Call | ( | ) | [virtual] |
Destructor
ISDNQ931Call | ( | ISDNQ931 * | controller, |
bool | outgoing, | ||
u_int32_t | callRef, | ||
u_int8_t | callRefLen, | ||
u_int8_t | tei = 0 |
||
) | [protected] |
Constructor
controller | The call controller |
outgoing | The call direction |
callRef | The call reference |
callRefLen | The call reference length in bytes |
tei | The Terminal Equipment Identifier used in this call |
u_int32_t callRef | ( | ) | const [inline] |
Get the id of this call
Referenced by ISDNQ931::sendRelease(), and ISDNQ931::sendStatus().
u_int32_t callRefLen | ( | ) | const [inline] |
Get the length of the call reference
Referenced by ISDNQ931::sendRelease(), and ISDNQ931::sendStatus().
u_int8_t callTei | ( | ) | const [inline] |
Get the Terminal Equipment Indicator for this call
SignallingCircuit* circuit | ( | ) | [inline] |
Get the circuit this call had reserved
void dataLinkState | ( | bool | up | ) |
Data link (interface) state notification This method is thread safe
up | The data link state |
SignallingEvent* getCircuitEvent | ( | const Time & | when | ) | [protected] |
Get an event from the circuit reserved for this call
when | The current time |
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 a data member or this call
name | Object name |
Reimplemented from RefObject.
SignallingEvent* releaseComplete | ( | const char * | reason = 0 , |
const char * | diag = 0 |
||
) | [protected] |
Send RELEASE COMPLETE if not in Null state. Clear all call data. Remove from controller's queue. Decrease the object's refence count
reason | Optional release reason. If missing, the last reason is used |
diag | Optional hexified string for the cause diagnostic |
virtual bool sendEvent | ( | SignallingEvent * | event | ) | [virtual] |
Send an event to this call This method is thread safe
event | The sent event |
Reimplemented from SignallingCall.
void setTerminate | ( | bool | destroy, |
const char * | reason | ||
) |
Set termination (and destroy) flags This method is thread safe
destroy | The destroy flag. If true, the call will be destroyed |
reason | Terminate reason |