#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"
#include "asterisk/ccss.h"
#include "asterisk/pbx.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | acf_cc_read (struct ast_channel *chan, const char *name, char *data, char *buf, size_t buf_len) |
static int | acf_cc_write (struct ast_channel *chan, const char *cmd, char *data, const char *value) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Call Control Configuration Function" , .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 = "8586c2a7d357cb591cc3a6607a8f62d1" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } |
static struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_custom_function | cc_function |
Definition in file func_callcompletion.c.
static void __reg_module | ( | void | ) | [static] |
Definition at line 117 of file func_callcompletion.c.
static void __unreg_module | ( | void | ) | [static] |
Definition at line 117 of file func_callcompletion.c.
static int acf_cc_read | ( | struct ast_channel * | chan, | |
const char * | name, | |||
char * | data, | |||
char * | buf, | |||
size_t | buf_len | |||
) | [static] |
Definition at line 67 of file func_callcompletion.c.
References ast_cc_get_param(), ast_channel_get_cc_config_params(), ast_channel_lock, and ast_channel_unlock.
00069 { 00070 struct ast_cc_config_params *cc_params; 00071 int res; 00072 00073 ast_channel_lock(chan); 00074 if (!(cc_params = ast_channel_get_cc_config_params(chan))) { 00075 ast_channel_unlock(chan); 00076 return -1; 00077 } 00078 00079 res = ast_cc_get_param(cc_params, data, buf, buf_len); 00080 ast_channel_unlock(chan); 00081 return res; 00082 }
static int acf_cc_write | ( | struct ast_channel * | chan, | |
const char * | cmd, | |||
char * | data, | |||
const char * | value | |||
) | [static] |
Definition at line 84 of file func_callcompletion.c.
References ast_cc_set_param(), ast_channel_get_cc_config_params(), ast_channel_lock, and ast_channel_unlock.
00086 { 00087 struct ast_cc_config_params *cc_params; 00088 int res; 00089 00090 ast_channel_lock(chan); 00091 if (!(cc_params = ast_channel_get_cc_config_params(chan))) { 00092 ast_channel_unlock(chan); 00093 return -1; 00094 } 00095 00096 res = ast_cc_set_param(cc_params, data, value); 00097 ast_channel_unlock(chan); 00098 return res; 00099 }
static int load_module | ( | void | ) | [static] |
Definition at line 112 of file func_callcompletion.c.
References ast_custom_function_register, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and cc_function.
00113 { 00114 return ast_custom_function_register(&cc_function) == 0 ? AST_MODULE_LOAD_SUCCESS : AST_MODULE_LOAD_DECLINE; 00115 }
static int unload_module | ( | void | ) | [static] |
Definition at line 107 of file func_callcompletion.c.
References ast_custom_function_unregister(), and cc_function.
00108 { 00109 return ast_custom_function_unregister(&cc_function); 00110 }
struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Call Control Configuration Function" , .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 = "8586c2a7d357cb591cc3a6607a8f62d1" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } [static] |
Definition at line 117 of file func_callcompletion.c.
struct ast_module_info* ast_module_info = &__mod_info [static] |
Definition at line 117 of file func_callcompletion.c.
struct ast_custom_function cc_function [static] |
Initial value:
{ .name = "CALLCOMPLETION", .read = acf_cc_read, .write = acf_cc_write, }
Definition at line 101 of file func_callcompletion.c.
Referenced by load_module(), and unload_module().