Asterisk - The Open Source Telephony Project
21.4.1
|
AGI Extension interfaces - Asterisk Gateway Interface. More...
Go to the source code of this file.
Data Structures | |
struct | agi_command |
struct | agi_state |
Typedefs | |
typedef struct agi_state | AGI |
typedef struct agi_command | agi_command |
Functions | |
static void | __dtor__ast_agi_register (void) |
static void | __dtor__ast_agi_register_multiple (void) |
static void | __dtor__ast_agi_send (void) |
static void | __dtor__ast_agi_unregister (void) |
static void | __dtor__ast_agi_unregister_multiple (void) |
static void | __init__ast_agi_register (void) |
static void | __init__ast_agi_register_multiple (void) |
static void | __init__ast_agi_send (void) |
static void | __init__ast_agi_unregister (void) |
static void | __init__ast_agi_unregister_multiple (void) |
static int | __stub__ast_agi_register (struct ast_module *mod, agi_command *cmd) |
Registers an AGI command. More... | |
static int | __stub__ast_agi_register_multiple (struct ast_module *mod, struct agi_command *cmd, unsigned int len) |
Registers a group of AGI commands, provided as an array of struct agi_command entries. More... | |
static int | __stub__ast_agi_send (int fd, struct ast_channel *chan, char *fmt,...) |
Sends a string of text to an application connected via AGI. More... | |
static int | __stub__ast_agi_unregister (agi_command *cmd) |
Unregisters an AGI command. More... | |
static int | __stub__ast_agi_unregister_multiple (struct agi_command *cmd, unsigned int len) |
Unregisters a group of AGI commands, provided as an array of struct agi_command entries. More... | |
static | typeof (__stub__ast_agi_register)*ast_agi_register |
static | typeof (__stub__ast_agi_unregister)*ast_agi_unregister |
static | typeof (__stub__ast_agi_register_multiple)*ast_agi_register_multiple |
static | typeof (__stub__ast_agi_unregister_multiple)*ast_agi_unregister_multiple |
static | typeof (__stub__ast_agi_send)*ast_agi_send |
AGI Extension interfaces - Asterisk Gateway Interface.
Definition in file agi.h.
|
static |
Registers an AGI command.
mod | Pointer to the module_info structure for the module that is registering the command |
cmd | Pointer to the descriptor for the command |
1 | on success |
0 | the command is already registered |
AST_OPTIONAL_API_UNAVAILABLE | the module is not loaded. |
Definition at line 78 of file agi.h.
References AST_OPTIONAL_API_UNAVAILABLE.
|
static |
Registers a group of AGI commands, provided as an array of struct agi_command entries.
mod | Pointer to the module_info structure for the module that is registering the commands |
cmd | Pointer to the first entry in the array of command descriptors |
len | Length of the array (use the ARRAY_LEN macro to determine this easily) |
Definition at line 110 of file agi.h.
References AST_OPTIONAL_API_UNAVAILABLE.
|
static |
Sends a string of text to an application connected via AGI.
fd | The file descriptor for the AGI session (from struct agi_state) |
chan | Pointer to an associated Asterisk channel, if any |
fmt | printf-style format string |
Definition at line 142 of file agi.h.
References AST_OPTIONAL_API_UNAVAILABLE.
|
static |
Unregisters an AGI command.
cmd | Pointer to the descriptor for the command |
Definition at line 91 of file agi.h.
References AST_OPTIONAL_API_UNAVAILABLE.
|
static |
Unregisters a group of AGI commands, provided as an array of struct agi_command entries.
cmd | Pointer to the first entry in the array of command descriptors |
len | Length of the array (use the ARRAY_LEN macro to determine this easily) |
Definition at line 127 of file agi.h.
References AST_OPTIONAL_API_UNAVAILABLE.