|
Yate
|
Abstract single phone call. More...
#include <yatesig.h>
Public Member Functions | |
| 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 SignallingEvent * | getEvent (const Time &when)=0 |
| virtual void | eventTerminated (SignallingEvent *event) |
Public Member Functions inherited from RefObject | |
| RefObject () | |
| virtual | ~RefObject () |
| virtual void * | getObject (const String &name) const |
| 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 | |
| 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 () |
Protected Attributes | |
| SignallingEvent * | m_lastEvent |
| bool | m_overlap |
Additional Inherited Members | |
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 () |
Abstract single phone call.
Interface of protocol independent phone call
| SignallingCall | ( | SignallingCallControl * | controller, |
| bool | outgoing, | ||
| bool | signalOnly = false ) |
Constructor
| controller | The call controller owning this call |
| outgoing | Call direction (true for outgoing) |
| signalOnly | Just signalling (no voice) flag |
References controller(), outgoing(), and signalOnly().
|
virtual |
Destructor, notifies the controller
|
inlineprotected |
Clear incoming messages queue
References Mutex::lock().
|
inline |
Retreive the controller of this call
Referenced by ISDNQ931Call::ISDNQ931Call(), ISDNQ931CallMonitor::ISDNQ931CallMonitor(), SignallingCall(), and SS7ISUPCall::SS7ISUPCall().
|
protected |
Dequeue a received message. Just return it if remove is false This method is thread safe
| remove | True to remove the message from queue |
|
protected |
Enqueue a received message. This method is thread safe
| msg | The received message |
|
virtual |
Event terminated notification. No event will be generated until the current event is terminated This method is thread safe
| event | The terminated event |
|
pure virtual |
Get an event from this call if not already got one This method is thread safe
| when | The current time |
Implemented in ISDNQ931Call, ISDNQ931CallMonitor, and SS7ISUPCall.
|
inline |
Check if this is an outgoing call
Referenced by ISDNQ931Call::ISDNQ931Call(), SignallingCall(), SS7ISUPCall::SS7ISUPCall(), and SS7ISUPCall::stopWaitSegment().
|
inline |
Check if this call is in overlapped send/recv state
References m_overlap.
|
inlinevirtual |
Send an event to this call
| event | The event to send |
Reimplemented in ISDNQ931Call, and SS7ISUPCall.
|
inline |
Check if this call is just a signalling (no voice) one
Referenced by SignallingCall().
|
inline |
Retreive the private user data of this call
|
inline |
Set this call's private user data
| data | New user data |
|
protected |
Last event generated by this call. Used to serialize events
|
protected |
Call is in overlapped send/recv state
Referenced by overlapDialing().