37 #include "asterisk/file.h"
148 static char *
app =
"ForkCDR";
212 varval = strchr(varname,
'=');
241 char *argcopy = NULL;
249 if (!(cdr = chan->
cdr)) {
int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int recur)
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#define AST_APP_OPTION_ARG(option, flagno, argno)
Declares an application option that accepts an argument.
Asterisk main include file. File version handling, generic pbx functions.
#define AST_APP_OPTIONS(holder, options...)
Declares an array of options for an application.
char dstchannel[AST_MAX_EXTENSION]
void ast_cdr_reset(struct ast_cdr *cdr, struct ast_flags *flags)
Reset the detail record, optionally posting it first.
#define ast_set2_flag(p, value, flag)
#define ast_test_flag(p, flag)
void ast_cdr_end(struct ast_cdr *cdr)
End a call.
#define ast_set_flag(p, flag)
int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags *flags, char **args, char *optstr)
Parses a string containing application options and sets flags/arguments.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
int ast_tvzero(const struct timeval t)
Returns true if the argument is 0,0.
int ast_unregister_application(const char *app)
Unregister an application.
struct ast_cdr * ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr)
General Asterisk PBX channel definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Core PBX routines and definitions.
static struct ast_app_option forkcdr_exec_options[128]
#define ast_strdupa(s)
duplicate a string in memory from the stack
Responsible for call detail data.
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
static int unload_module(void)
static int load_module(void)
static void ast_cdr_fork(struct ast_channel *chan, struct ast_flags optflags, char *set)
Structure used to handle boolean flags.
struct ast_cdr * ast_cdr_dup_unique(struct ast_cdr *cdr)
Duplicate a record and increment the sequence number.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
static int set(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
#define AST_APP_ARG(name)
Define an application argument.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
void ast_cdr_free_vars(struct ast_cdr *cdr, int recur)
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.
#define AST_APP_OPTION(option, flagno)
Declares an application option that does not accept an argument.
static int forkcdr_exec(struct ast_channel *chan, const char *data)