68 static int acf_cc_read(
struct ast_channel *chan,
const char *
name,
char *data,
69 char *buf,
size_t buf_len)
75 ast_log(LOG_WARNING,
"No channel was provided to %s function.\n", name);
79 ast_channel_lock(chan);
81 ast_channel_unlock(chan);
86 ast_channel_unlock(chan);
90 static int acf_cc_write(
struct ast_channel *chan,
const char *cmd,
char *data,
97 ast_log(LOG_WARNING,
"No channel was provided to %s function.\n", cmd);
101 ast_channel_lock(chan);
103 ast_channel_unlock(chan);
108 ast_channel_unlock(chan);
113 .
name =
"CALLCOMPLETION",
115 .write = acf_cc_write,
118 static int unload_module(
void)
123 static int load_module(
void)
128 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT,
"Call Control Configuration Function",
129 .support_level = AST_MODULE_SUPPORT_CORE,
131 .unload = unload_module,
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.
struct ast_cc_config_params * ast_channel_get_cc_config_params(struct ast_channel *chan)
Get the CCSS parameters from a channel.
General Asterisk PBX channel definitions.
Data structure associated with a custom dialplan function.
int ast_cc_get_param(struct ast_cc_config_params *params, const char *const name, char *buf, size_t buf_len)
get a CCSS configuration parameter, given its name
int ast_cc_set_param(struct ast_cc_config_params *params, const char *const name, const char *value)
set a CCSS configuration parameter, given its name
Core PBX routines and definitions.
Call Completion Supplementary Services API.
Module has failed to load, may be in an inconsistent state.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define ast_custom_function_register(acf)
Register a custom function.