| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
Applications connected with CDR engine. More...
#include "asterisk.h"#include "asterisk/channel.h"#include "asterisk/module.h"#include "asterisk/app.h"#include "asterisk/stasis.h"#include "asterisk/stasis_message_router.h"
Go to the source code of this file.
| Data Structures | |
| struct | app_cdr_message_payload | 
| Enumerations | |
| enum | reset_cdr_options { OPT_DISABLE_DISPATCH = (1 << 0) , OPT_KEEP_VARS = (1 << 1) , OPT_ENABLE = (1 << 2) } | 
| Functions | |
| static void | __reg_module (void) | 
| static void | __unreg_module (void) | 
| static void | appcdr_callback (void *data, struct stasis_subscription *sub, struct stasis_message *message) | 
| struct ast_module * | AST_MODULE_SELF_SYM (void) | 
| static int | load_module (void) | 
| static int | publish_app_cdr_message (struct ast_channel *chan, struct app_cdr_message_payload *payload) | 
| static int | resetcdr_exec (struct ast_channel *chan, const char *data) | 
| STASIS_MESSAGE_TYPE_DEFN_LOCAL (appcdr_message_type) | |
| static int | unload_module (void) | 
| Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Tell Asterisk to not maintain a CDR for the current call" , .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 struct ast_module_info * | ast_module_info = &__mod_info | 
| static const char | resetcdr_app [] = "ResetCDR" | 
| static const struct ast_app_option | resetcdr_opts [128] = { [ 'v' ] = { .flag = AST_CDR_FLAG_KEEP_VARS }, } | 
Applications connected with CDR engine.
Definition in file app_cdr.c.
| enum reset_cdr_options | 
| Enumerator | |
|---|---|
| OPT_DISABLE_DISPATCH | |
| OPT_KEEP_VARS | |
| OPT_ENABLE | |
Definition at line 76 of file app_cdr.c.
| 
 | static | 
Definition at line 98 of file app_cdr.c.
References ast_cdr_reset(), ast_log, AST_LOG_WARNING, app_cdr_message_payload::channel_name, app_cdr_message_payload::keep_variables, app_cdr_message_payload::reset, and stasis_message_data().
Referenced by load_module().
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
| 
 | static | 
Definition at line 178 of file app_cdr.c.
References ao2_cleanup, appcdr_callback(), ast_cdr_message_router(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, NULL, RAII_VAR, resetcdr_app, resetcdr_exec(), router, stasis_message_router_add(), STASIS_MESSAGE_TYPE_INIT, and unload_module().
| 
 | static | 
Definition at line 118 of file app_cdr.c.
References ao2_cleanup, ast_cdr_message_router(), ast_channel_name(), ast_log, AST_LOG_WARNING, app_cdr_message_payload::channel_name, NULL, RAII_VAR, router, stasis_message_create(), and stasis_message_router_publish_sync().
Referenced by resetcdr_exec().
| 
 | static | 
Definition at line 140 of file app_cdr.c.
References ao2_alloc, ao2_cleanup, args, ast_app_parse_options(), AST_CDR_FLAG_KEEP_VARS, ast_channel_name(), ast_strdupa, ast_strlen_zero(), ast_test_flag, ast_flags::flags, NULL, publish_app_cdr_message(), RAII_VAR, and resetcdr_opts.
Referenced by load_module().
| STASIS_MESSAGE_TYPE_DEFN_LOCAL | ( | appcdr_message_type | ) | 
| 
 | static | 
Definition at line 166 of file app_cdr.c.
References ao2_cleanup, ast_cdr_message_router(), ast_unregister_application(), RAII_VAR, resetcdr_app, router, stasis_message_router_remove(), and STASIS_MESSAGE_TYPE_CLEANUP.
Referenced by load_module().
| 
 | static | 
| 
 | static | 
| 
 | static | 
Definition at line 74 of file app_cdr.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 84 of file app_cdr.c.
Referenced by resetcdr_exec().