#include <yatepbx.h>
|
| enum | { Startup = Private
, Hangup
, Disconnected
, AssistPrivate
} |
| |
Class keeping a list of ChanAssist objects. It also serves as base to implement channel assisting plugins.
◆ anonymous enum
◆ ~ChanAssistList()
◆ ChanAssistList()
Constructor
- Parameters
-
| name | Name of the module |
| earlyInit | True to attempt to initialize module before others |
◆ calls() [1/2]
Access to the assisted calls list
- Returns
- The HashList holding the calls
◆ calls() [2/2]
Access to the assisted calls list
- Returns
- The HashList holding the calls
◆ create()
Create a new channel assistant
- Parameters
-
| msg | Message that triggered the creation |
| id | Channel's identifier |
- Returns
- Pointer to new assistant object, NULL if unacceptable
◆ find()
Find a channel assistant by channel ID
- Parameters
-
| id | Identifier of the assisted channel |
- Returns
- Pointer to the assistant object
◆ init()
| virtual void init |
( |
int | priority = 15 | ) |
|
|
virtual |
Initialize the plugin for the first time
- Parameters
-
| priority | Priority used to install message handlers |
◆ initialize()
| virtual void initialize |
( |
| ) |
|
|
virtual |
Method to (re)initialize the plugin
◆ received() [1/2]
| virtual bool received |
( |
Message & | msg, |
|
|
int | id ) |
|
virtual |
Message handler called internally
- Parameters
-
| msg | Received nessage |
| id | Numeric identifier of the message type |
- Returns
- True if the message was handled and further processing should stop
◆ received() [2/2]
| virtual bool received |
( |
Message & | msg, |
|
|
int | id, |
|
|
ChanAssist * | assist ) |
|
virtual |
Message handler for an assistant object
- Parameters
-
| msg | Received nessage |
| id | Numeric identifier of the message type |
| assist | Pointer to the matching assistant object |
- Returns
- True if the message was handled and further processing should stop
◆ removeAssist()
Removes an assistant object from list
- Parameters
-
| assist | Object to remove from list |
The documentation for this class was generated from the following file: