Public Methods |
Module* | getNext (void) |
virtual char* | getName (void) = 0 |
| Get the "name" identifer of this module. More...
|
virtual char* | Dispatch (Trunk *trunk) |
| Execute the script request. More...
|
virtual unsigned | Sleep (Trunk *trunk) |
| This is used to determine if a timeout/sleep should occur or if script advance is immediate. More...
|
virtual void | Detach (Trunk *trunk) |
| Notify for detach. More...
|
virtual void | Attach (Trunk *trunk) |
| Notify for attach. More...
|
virtual AudioSample* | getPhrase (Trunk *trunk, const char *phrase) |
| Provide audio output sample from phrase using pure TTS. More...
|
virtual const char* | getSpeech (Trunk *trunk, char **domain, unsigned long mask, AudioSample *sample) |
| Provide ASR processing of an audio sample using a domain vocabulary. More...
|
virtual void | Reload (void) |
| reload provisioning interface for fifos.
|
virtual bool | Command (char **argv, ostream *out) |
| fifo command extension.
|
Protected Methods |
| Module () |
Module* | getFirst (void) |
virtual modtype_t | getType (void) = 0 |
| Get the "type" identifer of this module. More...
|
void | addSession (void) |
| Add as a session handling module.
|
void | addCommand (void) |
| Add fifo command handling module.
|
void | addPrompts (void) |
| Add module as url processing.
|
void | addNetwork (void) |
| Add module for net processing.
|
void | addRequest (void) |
| Add request handler back-end.
|
void | enableTTS (void) |
| Enable a TTS module.
|
void | enableASR (void) |
| Enable a ASR module.
|
virtual char* | getPrompt (const char *original) |
| Parse a url/prompt file into a fixed file path.
|
virtual void | Expires (Request *request) |
| Notify an expired request.
|
virtual void | Running (Request *request) |
| Notify a running request.
|
virtual void | Cancelled (Request *request) |
| Notify a cancelled request.
|
virtual int | Accept (char *buffer, socklen_t len, statnode_t *node) |
| Notify when a module network packet has been received and offer reply possibility. More...
|
virtual void | Failover (statnode_t *node) |
| Notify when a heartbeat dies... More...
|
virtual void | Broadcast (void) |
| Network synchronization to broadcast messages from a module thread.
|
Friends |
class | Fifo |
class | AudioService |
class | TrunkGroup |
class | Network |
void | broadcast (char *msgbuf, unsigned msglen) |
void | cancel (TrunkGroup *grp, const char *tag) |
Module* | getModule (modtype_t mod, const char *name = NULL) |
void | detachModules (Trunk *trunk) |
void | attachModules (Trunk *trunk) |
These are done as loadable modules and may be replaced with application specific interfaces.