63 static int func_export_write(
struct ast_channel *chan,
const char *
function,
char *data,
const char *value)
74 ast_log(LOG_WARNING,
"No channel was provided to %s function.\n",
function);
78 ast_log(LOG_WARNING,
"No variable name was provided to %s function.\n",
function);
83 ast_log(LOG_WARNING,
"Channel '%s' not found! '%s' not set.\n", args.channel, args.var);
94 .write = func_export_write,
97 static int unload_module(
void)
102 static int load_module(
void)
107 AST_MODULE_INFO_STANDARD_EXTENDED(
ASTERISK_GPL_KEY,
"Set variables and functions on other channels");
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
#define ast_channel_unref(c)
Decrease channel reference count.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
General Asterisk PBX channel definitions.
Data structure associated with a custom dialplan function.
Core PBX routines and definitions.
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name...
#define ASTERISK_GPL_KEY
The text the key() function should return.
struct ast_channel * ast_channel_get_by_name(const char *name)
Find a channel by name.
Asterisk module definitions.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
#define ast_custom_function_register(acf)
Register a custom function.
#define AST_APP_ARG(name)
Define an application argument.