summaryrefslogtreecommitdiff
path: root/funcs/func_version.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-07-16 18:24:29 +0000
committerJoshua Colp <jcolp@digium.com>2007-07-16 18:24:29 +0000
commite498488bde119a98ecfc27880a2a9c9e9adfb223 (patch)
tree421e0b496d4bd2074e436c513a30b752557e35c7 /funcs/func_version.c
parentce8f95d750a4afce1867fac11d04cc66cc8e0880 (diff)
For my next trick I will make it so dialplan functions no longer need to call ast_module_user_add and ast_module_user_remove. These are now called in the ast_func_read and ast_func_write functions outside of the module.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@75255 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_version.c')
-rw-r--r--funcs/func_version.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/funcs/func_version.c b/funcs/func_version.c
index 88ad138e7..7c7ed3802 100644
--- a/funcs/func_version.c
+++ b/funcs/func_version.c
@@ -47,14 +47,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
static int acf_version_exec(struct ast_channel *chan, const char *cmd,
char *parse, char *buffer, size_t buflen)
{
- struct ast_module_user *u;
char *response_char = ASTERISK_VERSION;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(info);
);
- u = ast_module_user_add(chan);
-
AST_STANDARD_APP_ARGS(args, parse);
if (!ast_strlen_zero(args.info) ) {
@@ -79,8 +76,6 @@ static int acf_version_exec(struct ast_channel *chan, const char *cmd,
ast_debug(1, "VERSION returns %s result, given %s argument\n", response_char, args.info);
snprintf(buffer, buflen, "%s", response_char);
- ast_module_user_remove(u);
-
return 0;
}