|
Yate
|
A Channel driver module. More...
#include <yatephone.h>
Public Member Functions | |
| virtual void * | getObject (const String &name) const |
| const String & | prefix () const |
| bool | varchan () const |
| ObjList & | channels () |
| virtual Channel * | find (const String &id) const |
| virtual bool | isBusy () const |
| virtual void | dropAll (Message &msg) |
| virtual bool | canAccept (bool routers=true) |
| virtual bool | canRoute () |
| unsigned int | nextid () |
| unsigned int | lastid () const |
| int | timeout () const |
| int | routing () const |
| int | routed () const |
| int | total () const |
| int | chanCount () const |
| int | maxChans () const |
Public Member Functions inherited from Module | |
| const String & | type () const |
| void | changed () |
| bool | filterInstalled () const |
| bool | filterDebug (const String &item) const |
Public Member Functions inherited from Plugin | |
| Plugin (const char *name, bool earlyInit=false) | |
| virtual | ~Plugin () |
| virtual const String & | toString () const |
| const String & | name () const |
| NamedCounter * | objectsCounter () const |
| bool | earlyInit () const |
Public Member Functions inherited from GenObject | |
| GenObject () | |
| virtual | ~GenObject () |
| virtual bool | alive () const |
| virtual void | destruct () |
| virtual const String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (NamedCounter *counter) |
Public Member Functions inherited from DebugEnabler | |
| DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true) | |
| int | debugLevel () const |
| int | debugLevel (int level) |
| bool | debugEnabled () const |
| void | debugEnabled (bool enable) |
| const char * | debugName () const |
| bool | debugAt (int level) const |
| bool | debugChained () const |
| void | debugChain (const DebugEnabler *chain=0) |
| void | debugCopy (const DebugEnabler *original=0) |
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 () |
Friends | |
| class | Router |
| class | Channel |
Additional Inherited Members | |
Static Public Member Functions inherited from Module | |
| static unsigned int | updateDelay () |
| static void | updateDelay (unsigned int delay) |
| static bool | itemComplete (String &itemList, const String &item, const String &partWord) |
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 () |
Protected Types inherited from Module | |
| enum | { Status = 0x00000001 , Timer = 0x00000002 , Level = 0x00000004 , Command = 0x00000008 , Help = 0x00000010 , Halt = 0x00000020 , Route = 0x00000040 , Stop = 0x00000080 , Execute = 0x00000100 , Drop = 0x00000200 , Locate = 0x00000400 , Masquerade = 0x00000800 , Ringing = 0x00001000 , Answered = 0x00002000 , Tone = 0x00004000 , Text = 0x00008000 , Progress = 0x00010000 , Update = 0x00020000 , Transfer = 0x00040000 , Control = 0x00080000 , MsgExecute = 0x00100000 , PubLast = 0x00ffffff , Private = 0x01000000 } |
Static Protected Member Functions inherited from Module | |
| static const char * | messageName (int id) |
| static int | relayId (const char *name) |
Protected Attributes inherited from Module | |
| enum TelEngine::Module:: { ... } | RelayID |
Constructor
| name | Plugin name of this driver |
| type | Type of the driver: "fixchans", "varchans", etc. |
Check if new connections can be accepted
| routers | Set to true to check routing threads for incoming connections |
Check if new incoming connections can be routed
Module is able to simulate a call without generating anything at protocol layer
|
inline |
Get the number of running channels
|
inline |
Get the list of channels of this driver
Drop all current channels
| msg | Notification message |
Set the DTMF duplicates allowed flag
| duplicates | True to allow DTMF duplicate messages |
Find a channel by id
| id | Unique identifier of the channel to find |
Opportunity to modify the update message
| msg | Status update message |
Reimplemented from Module.
Get a pointer to a derived class given that class name
| name | Name of the class we are asking for |
Reimplemented from Module.
Check if driver owns a client line (registered to an external server)
| line | Name of the line to check |
This method is called to initialize the loaded module
Reimplemented from Module.
Reimplemented in ClientDriver.
Check if the driver is actively used.
Reimplemented from Plugin.
Get the current (last used) unique numeric id from a sequence
|
inline |
Get the maximum number of running channels for this driver
Set the maximum number of running channels for this driver
| ncalls | Number of calls to run simultaneously, zero to accept all |
Set the maximum number of routing messages for this driver
| ncalls | Number of calls to route simultaneously, zero to accept all |
Create an outgoing calling channel
| msg | Call execute message |
| dest | Destination of the new call |
Implemented in ClientDriver.
Routing message handler. The default implementation routes to this driver if it owns a line named in the "account" or "line" parameter.
| msg | Call routing message |
Reimplemented from Module.
Reimplemented in ClientDriver.
Get the next unique numeric id from a sequence
Retrieve the prefix that is used as base for all channels
Message receiver handler
| msg | The received message |
| id | The identifier with which the relay was created |
Reimplemented from Module.
Reimplemented in ClientDriver.
|
inline |
Get the number of calls successfully routed
|
inline |
Get the number of calls currently in the routing stage
Install standard message relays and set up the prefix
| prefix | Prefix to use with channels of this driver |
| minimal | Install just a minimal set of message relays |
|
inline |
Get the default driver timeout
Set the default driver timeout
| tout | New timeout in milliseconds or zero to disable |
|
inline |
Get the total number of calls ever created
|
inline |
Check if this driver is for dynamic (variable number) channels
Set if this driver is for dynamic (variable number) channels
| variable | True if the channels are dynamic, false for fixed |