|
Yate
|
A Q.931 ISDN call monitor. More...
#include <yatesig.h>
Public Member Functions | |
| virtual | ~ISDNQ931CallMonitor () |
| bool | netInit () const |
| virtual SignallingEvent * | getEvent (const Time &when) |
| void | setTerminate (const char *reason) |
| virtual void * | getObject (const String &name) const |
Public Member Functions inherited from ISDNQ931State | |
| ISDNQ931State () | |
| State | state () const |
Public Member Functions inherited from SignallingCall | |
| SignallingCall (SignallingCallControl *controller, bool outgoing, bool signalOnly=false) | |
| virtual | ~SignallingCall () |
| bool | outgoing () const |
| SignallingCallControl * | controller () const |
| void | userdata (void *data) |
| void * | userdata () const |
| bool | signalOnly () const |
| bool | overlapDialing () const |
| virtual bool | sendEvent (SignallingEvent *event) |
| virtual void | eventTerminated (SignallingEvent *event) |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| 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 & | toString () const |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
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 | |
| ISDNQ931CallMonitor (ISDNQ931Monitor *controller, u_int32_t callRef, bool netInit) | |
| SignallingEvent * | releaseComplete (const char *reason=0) |
Protected Member Functions inherited from ISDNQ931State | |
| bool | checkStateRecv (int type, bool *retrans) |
| bool | checkStateSend (int type) |
Protected Member Functions inherited from SignallingCall | |
| void | enqueue (SignallingMessage *msg) |
| SignallingMessage * | dequeue (bool remove=true) |
| void | clearQueue () |
Protected Member Functions inherited from RefObject | |
| virtual void | zeroRefs () |
| bool | resurrect () |
| virtual void | destroyed () |
Friends | |
| class | ISDNQ931Monitor |
Additional Inherited Members | |
Public Types inherited from ISDNQ931State | |
| 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 Public Member Functions inherited from ISDNQ931State | |
| static const char * | stateName (u_int8_t s) |
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 () |
Static Public Attributes inherited from ISDNQ931State | |
| static const TokenDict | s_states [] |
Protected Attributes inherited from ISDNQ931State | |
| State | m_state |
Protected Attributes inherited from SignallingCall | |
| SignallingEvent * | m_lastEvent |
| bool | m_overlap |
A Q.931 ISDN call monitor.
Q.931 ISDN call monitor
|
virtual |
Destructor
|
protected |
Constructor
| controller | The call controller |
| callRef | The call reference |
| netInit | True if the initiator is from the network side of the link |
References SignallingCall::controller(), and netInit().
|
virtual |
Get an event from this call This method is thread safe
| when | The current time |
Implements SignallingCall.
|
virtual |
Get a pointer to a data member or this call
| name | Object name |
Reimplemented from RefObject.
|
inline |
Check if the initiator is from the network side of the data link
Referenced by ISDNQ931CallMonitor().
|
protected |
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 |
| void setTerminate | ( | const char * | reason | ) |
Set termination flag This method is thread safe
| reason | Terminate reason |