Wed Jan 8 2020 09:49:53

Asterisk developer's documentation


app_cdr.c File Reference

Applications connected with CDR engine. More...

#include "asterisk.h"
#include "asterisk/channel.h"
#include "asterisk/module.h"

Go to the source code of this file.

Functions

static void __reg_module (void)
 
static void __unreg_module (void)
 
static int load_module (void)
 
static int nocdr_exec (struct ast_channel *chan, const char *data)
 
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 = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, }
 
static struct ast_module_infoast_module_info = &__mod_info
 
static const char nocdr_app [] = "NoCDR"
 

Detailed Description

Applications connected with CDR engine.

Author
Martin Pycko marti.nosp@m.np@d.nosp@m.igium.nosp@m..com

Definition in file app_cdr.c.

Function Documentation

static void __reg_module ( void  )
static

Definition at line 73 of file app_cdr.c.

static void __unreg_module ( void  )
static

Definition at line 73 of file app_cdr.c.

static int load_module ( void  )
static

Definition at line 66 of file app_cdr.c.

References AST_MODULE_LOAD_FAILURE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, and nocdr_exec().

67 {
71 }
static const char nocdr_app[]
Definition: app_cdr.c:51
static int nocdr_exec(struct ast_channel *chan, const char *data)
Definition: app_cdr.c:53
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Definition: module.h:437
static int nocdr_exec ( struct ast_channel chan,
const char *  data 
)
static

Definition at line 53 of file app_cdr.c.

References AST_CDR_FLAG_POST_DISABLED, ast_set_flag, and ast_channel::cdr.

Referenced by load_module().

54 {
55  if (chan->cdr)
57 
58  return 0;
59 }
#define ast_set_flag(p, flag)
Definition: utils.h:70
struct ast_cdr * cdr
Definition: channel.h:766
static int unload_module ( void  )
static

Definition at line 61 of file app_cdr.c.

References ast_unregister_application().

62 {
64 }
int ast_unregister_application(const char *app)
Unregister an application.
Definition: pbx.c:7705
static const char nocdr_app[]
Definition: app_cdr.c:51

Variable Documentation

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 = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, }
static

Definition at line 73 of file app_cdr.c.

Definition at line 73 of file app_cdr.c.

const char nocdr_app[] = "NoCDR"
static

Definition at line 51 of file app_cdr.c.