A Q.931 ISDN call.
More...
#include <yatesig.h>
|
| enum | State {
Null = 0x00
, CallInitiated = 0x01
, OverlapSend = 0x02
, OutgoingProceeding = 0x03
,
CallDelivered = 0x04
, CallPresent = 0x06
, CallReceived = 0x07
, ConnectReq = 0x08
,
IncomingProceeding = 0x09
, Active = 0x0a
, DisconnectReq = 0x0b
, DisconnectIndication = 0x0c
,
SuspendReq = 0x0f
, ResumeReq = 0x11
, ReleaseReq = 0x13
, CallAbort = 0x16
,
OverlapRecv = 0x19
, RestartReq = 0x3d
, Restart = 0x3e
} |
| |
| static const char * | stateName (u_int8_t s) |
| |
| static bool | alive (const RefObject *obj) |
| |
| static bool | efficientIncDec () |
| |
| 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 int | count () |
| |
| static int | locks () |
| |
| static bool | efficientTimedLock () |
| |
| static void | wait (unsigned long maxwait) |
| |
| static unsigned long | wait () |
| |
| static void | startUsingNow () |
| |
| static void | enableSafety (bool safe=true) |
| |
| static bool | safety () |
| |
| static const TokenDict | s_states [] |
| |
| State | m_state |
| |
| SignallingEvent * | m_lastEvent |
| |
| bool | m_overlap |
| |
A Q.931 ISDN call.
Q.931 ISDN call
◆ ~ISDNQ931Call()
◆ ISDNQ931Call()
| ISDNQ931Call |
( |
ISDNQ931 * | controller, |
|
|
bool | outgoing, |
|
|
u_int32_t | callRef, |
|
|
u_int8_t | callRefLen, |
|
|
u_int8_t | tei = 0 ) |
|
protected |
◆ callRef()
| u_int32_t callRef |
( |
| ) |
const |
|
inline |
Get the id of this call
- Returns
- The call reference
Referenced by ISDNQ931Call().
◆ callRefLen()
| u_int32_t callRefLen |
( |
| ) |
const |
|
inline |
Get the length of the call reference
- Returns
- The length of the call reference
Referenced by ISDNQ931Call().
◆ callTei()
| u_int8_t callTei |
( |
| ) |
const |
|
inline |
Get the Terminal Equipment Indicator for this call
- Returns
- Value of TEI used in this call
◆ circuit()
Get the circuit this call had reserved
- Returns
- The circuit reserved by this call
◆ dataLinkState()
| void dataLinkState |
( |
bool | up | ) |
|
Data link (interface) state notification This method is thread safe
- Parameters
-
◆ getCircuitEvent()
Get an event from the circuit reserved for this call
- Parameters
-
- Returns
- SignallingEvent pointer or 0 if no events
◆ getEvent()
◆ getObject()
| virtual void * getObject |
( |
const String & | name | ) |
const |
|
virtual |
Get a pointer to a data member or this call
- Parameters
-
- Returns
- The requested pointer or 0 if not exists
Reimplemented from RefObject.
◆ releaseComplete()
| 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
- Parameters
-
| reason | Optional release reason. If missing, the last reason is used |
| diag | Optional hexified string for the cause diagnostic |
- Returns
- Pointer to an SignallingEvent of type Release, with no message
◆ sendEvent()
Send an event to this call This method is thread safe
- Parameters
-
- Returns
- True if the operation succedded
Reimplemented from SignallingCall.
◆ setTerminate()
| void setTerminate |
( |
bool | destroy, |
|
|
const char * | reason ) |
Set termination (and destroy) flags This method is thread safe
- Parameters
-
| destroy | The destroy flag. If true, the call will be destroyed |
| reason | Terminate reason |
The documentation for this class was generated from the following file: