Tue Aug 24 20:34:08 2010

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"
Include dependency graph for app_cdr.c:

Go to the source code of this file.

Functions

 AST_MODULE_INFO_STANDARD (ASTERISK_GPL_KEY,"Tell Asterisk to not maintain a CDR for the current call")
static int load_module (void)
static int nocdr_exec (struct ast_channel *chan, void *data)
static int unload_module (void)

Variables

static char * nocdr_app = "NoCDR"

Detailed Description

Applications connected with CDR engine.

Author:
Martin Pycko <martinp@digium.com>

Definition in file app_cdr.c.


Function Documentation

AST_MODULE_INFO_STANDARD ( ASTERISK_GPL_KEY  ,
"Tell Asterisk to not maintain a CDR for the current call"   
)
static int load_module ( void   )  [static]
static int nocdr_exec ( struct ast_channel *  chan,
void *  data 
) [static]

Definition at line 49 of file app_cdr.c.

References AST_CDR_FLAG_POST_DISABLED, ast_set_flag, and ast_channel::cdr.

Referenced by load_module().

00050 {
00051    if (chan->cdr)
00052       ast_set_flag(chan->cdr, AST_CDR_FLAG_POST_DISABLED);
00053 
00054    return 0;
00055 }

static int unload_module ( void   )  [static]

Definition at line 57 of file app_cdr.c.

References ast_unregister_application().

00058 {
00059    return ast_unregister_application(nocdr_app);
00060 }


Variable Documentation

char* nocdr_app = "NoCDR" [static]

Definition at line 47 of file app_cdr.c.


Generated on 24 Aug 2010 for Asterisk - the Open Source PBX by  doxygen 1.6.1