#include <yatephone.h>
Inheritance diagram for Channel:
Public Member Functions | |
virtual | ~Channel () |
virtual void * | getObject (const String &name) const |
virtual void | complete (Message &msg, bool minimal=false) const |
Message * | message (const char *name, bool minimal=false, bool data=false) |
virtual bool | msgProgress (Message &msg) |
virtual bool | msgRinging (Message &msg) |
virtual bool | msgAnswered (Message &msg) |
virtual bool | msgTone (Message &msg, const char *tone) |
virtual bool | msgText (Message &msg, const char *text) |
virtual bool | msgDrop (Message &msg, const char *reason) |
virtual bool | msgTransfer (Message &msg) |
virtual bool | msgUpdate (Message &msg) |
virtual void | msgStatus (Message &msg) |
virtual void | checkTimers (Message &msg, const Time &tmr) |
virtual bool | callPrerouted (Message &msg, bool handled) |
virtual bool | callRouted (Message &msg) |
virtual void | callAccept (Message &msg) |
virtual void | callRejected (const char *error, const char *reason=0, const Message *msg=0) |
virtual bool | setDebug (Message &msg) |
const String & | status () const |
const String & | address () const |
bool | isOutgoing () const |
bool | isIncoming () const |
bool | isAnswered () const |
const char * | direction () const |
Driver * | driver () const |
u_int64_t | timeout () const |
void | timeout (u_int64_t tout) |
u_int64_t | maxcall () const |
void | maxcall (u_int64_t tout) |
void | setMaxcall (const Message &msg) |
void | setMaxcall (const Message *msg) |
const String & | targetid () const |
const String & | billid () const |
bool | startRouter (Message *msg) |
void | filterDebug (const String &item) |
Static Public Member Functions | |
static unsigned int | allocId () |
Protected Member Functions | |
Channel (Driver *driver, const char *id=0, bool outgoing=false) | |
Channel (Driver &driver, const char *id=0, bool outgoing=false) | |
void | cleanup () |
void | dropChan () |
virtual void | zeroRefs () |
virtual void | connected (const char *reason) |
virtual void | disconnected (bool final, const char *reason) |
virtual void | setId (const char *newId) |
void | status (const char *newstat) |
virtual void | statusParams (String &str) |
void | setOutgoing (bool outgoing=true) |
bool | dtmfInband (const char *tone) |
Protected Attributes | |
String | m_status |
String | m_address |
String | m_targetid |
String | m_billid |
bool | m_answered |
Friends | |
class | Driver |
class | Router |
A class that holds common channel related features (a.k.a. call leg)
|
Destructor |
|
Constructor |
|
Alternate constructor provided for convenience |
|
Get the current link address of the channel
|
|
Allocate an unique (per engine run) call ID
|
|
Get the billing identifier.
|
|
Notification on success of incoming call
Reimplemented in ClientChannel. |
|
Notification on progress of prerouting incoming call
|
|
Notification on failure of incoming call
Reimplemented in ClientChannel. |
|
Notification on progress of routing incoming call
Reimplemented in ClientChannel. |
|
Timer check method, by default handles channel timeouts
|
|
Perform destruction time cleanup. You can call this method earlier if destruction is to be postponed. |
|
Put channel variables into a message
|
|
Connect notification method.
Reimplemented from CallEndpoint. |
|
Get the direction of the channel as string
|
|
Disconnect notification method.
Reimplemented from CallEndpoint. |
|
Get the driver of this channel
|
|
Remove the channel from the parent driver list |
|
Attempt to install an override data source to send DTMF inband. Needs a tone generator module capable to override with "tone/dtmfstr/xyz"
|
|
Enable or disable debugging according to driver's filter rules
|
|
Get a pointer to a derived class given that class name
Reimplemented from CallEndpoint. |
|
Check if the call was answered or not
|
|
Get the direction of the channel
|
|
Get the direction of the channel
|
|
Set the time this channel will time out on outgoing calls
|
|
Get the time this channel will time out on outgoing calls
|
|
Create a filled notification message
|
|
Notification on remote answered. Note that the answered flag will be set
Reimplemented in ClientChannel. |
|
Notification on current call drop request
|
|
Notification on remote call making some progress, not enabled by default
Reimplemented in ClientChannel. |
|
Notification on remote ringing
Reimplemented in ClientChannel. |
|
Status message handler that is invoked only for messages to this channel
|
|
Notification on remote text messaging (sms)
|
|
Notification on remote tone(s)
|
|
Notification on native transfer request
|
|
Notification on call parameters update request
|
|
Set the local debugging level
|
|
Set a new ID for this channel
Reimplemented from CallEndpoint. |
|
Set the time this channel will time out on outgoing calls
|
|
Set the time this channel will time out on outgoing calls
|
|
Set the current direction of the channel
|
|
Start a routing thread for this channel, dereference dynamic channels
|
|
Set the current status of the channel. Note that a value of "answered" will set the answered flag
|
|
Get the current status of the channel
|
|
Build the parameter reporting part of the status answer
|
|
Get the connected channel identifier.
|
|
Set the time this channel will time out
|
|
Get the time this channel will time out
|
|
This method is overriden to safely remove the channel from the parent driver list before actually destroying the channel. Reimplemented from RefObject. |