Asterisk - The Open Source Telephony Project GIT-master-b023714
|
Functions related to retreiving per-channel hangupcause information. More...
#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
#include "asterisk/app.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static int | hangupcause_clear_exec (struct ast_channel *chan, const char *data) |
static int | hangupcause_keys_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | hangupcause_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "HANGUPCAUSE related functions and applications" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, .support_level = AST_MODULE_SUPPORT_CORE, } |
static const char | app [] = "HangupCauseClear" |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_custom_function | hangupcause_function |
static struct ast_custom_function | hangupcause_keys_function |
Functions related to retreiving per-channel hangupcause information.
See Also:
Definition in file func_hangupcause.c.
|
static |
Definition at line 291 of file func_hangupcause.c.
|
static |
Definition at line 291 of file func_hangupcause.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 291 of file func_hangupcause.c.
|
static |
Definition at line 237 of file func_hangupcause.c.
References ast_channel_dialed_causes_clear(), ast_channel_lock, and ast_channel_unlock.
Referenced by load_module().
|
static |
Definition at line 204 of file func_hangupcause.c.
References ast_channel_dialed_causes_channels(), ast_channel_lock, ast_channel_unlock, ast_copy_string(), ast_free, ast_str_buffer(), ast_str_strlen(), buf, and len().
|
static |
< Channel name
< Type of information requested (ast, tech or tech_extended)
Definition at line 118 of file func_hangupcause.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_next, ao2_ref, args, AST_APP_ARG, ast_control_pvt_cause_code::ast_cause, ast_cause2str(), ast_channel_dialed_causes_find(), ast_channel_dialed_causes_find_multiple(), ast_channel_lock, ast_channel_unlock, ast_copy_string(), AST_DECLARE_APP_ARGS, ast_log, AST_STANDARD_APP_ARGS, ast_str_append(), ast_str_buffer(), ast_str_create, ast_str_strlen(), ast_strdupa, buf, ast_control_pvt_cause_code::cause_extended, ast_control_pvt_cause_code::code, len(), LOG_ERROR, LOG_WARNING, and type.
|
static |
Definition at line 280 of file func_hangupcause.c.
References app, ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, hangupcause_clear_exec(), hangupcause_function, and hangupcause_keys_function.
|
static |
Definition at line 263 of file func_hangupcause.c.
References app, ast_custom_function_unregister(), ast_unregister_application(), hangupcause_function, and hangupcause_keys_function.
|
static |
Definition at line 291 of file func_hangupcause.c.
|
static |
Definition at line 254 of file func_hangupcause.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 291 of file func_hangupcause.c.
|
static |
Definition at line 244 of file func_hangupcause.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 249 of file func_hangupcause.c.
Referenced by load_module(), and unload_module().