|
Yate
|
Base Driver with client specific functions. More...
#include <yatecbase.h>
Static Public Attributes | |
| static String | s_confName |
| static bool | s_dropConfPeer |
Protected Attributes | |
| String | m_activeId |
Protected Attributes inherited from Module | |
| enum TelEngine::Module:: { ... } | RelayID |
Static Protected Attributes | |
| static ClientDriver * | s_driver |
| static String | s_device |
Friends | |
| class | ClientChannel |
Additional Inherited Members | |
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) |
Base Driver with client specific functions.
Abstract client Driver that implements some of the specific functionality
Get the active channel's id
Referenced by ClientDriver::findActiveChan().
Get the current audio device's name
Drop all calls belonging to the active driver
| reason | Optional drop reason |
Drop a channel
| chan | Channel id |
| reason | Optional reason |
| peer | Set it to true to drop a client channel peer used to reconnect |
|
inlinestatic |
Get the active channel
References ClientDriver::activeId(), ClientDriver::findChan(), and ClientDriver::self().
|
static |
Get a referenced channel found by its id
| id | The id of the channel to find |
Referenced by ClientDriver::findActiveChan().
|
static |
Get a referenced channel whose stored peer is the given one
| peer | Peer id to check |
| ClientChannel * findLine | ( | int | line | ) |
This method is called to initialize the loaded module
Reimplemented from Driver.
Create an outgoing calling channel
| msg | Call execute message |
| dest | Destination of the new call |
Implements Driver.
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 Driver.
|
inlinestatic |
Get the global client driver object's address
Referenced by ClientDriver::findActiveChan().
| bool setActive | ( | const String & | id = String::empty() | ) |
Set/reset the active channel. Does nothing if the selected channel is the active one. Put the active channel on hold before trying to set the active channel
| id | The new active channel's id. Set to empty if don't want to set a new active channel |
Attach/detach client channels peers' source/consumer
| id | The id of the channel to tranfer |
| target | The transfer target. Leave blank to reset the channel's transfer id |
|
static |
Attach/detach a client channel to/from a conference room
| id | The id of the channel to process |
| in | True to enter the conference room, false to exit from it |
| confName | Optional id of the conference. Set to 0 to use the default one Ignored if 'in' is false |
| buildFromChan | Build conference name from channel id if true |
|
static |
The name to use when the client is in conference
|
static |
Indicates wether a channel should drop its former peer when terminated while in conference