diff options
author | Olle Johansson <oej@edvina.net> | 2006-10-31 11:01:06 +0000 |
---|---|---|
committer | Olle Johansson <oej@edvina.net> | 2006-10-31 11:01:06 +0000 |
commit | f003df1315d5c0cc48b8bdc1df3acd8f7562e82c (patch) | |
tree | cde144371bacfa8fce7a966f6774f0730939c2ab /funcs/func_enum.c | |
parent | 1aa8c2cffc1e9c9403b94d22c0f44ca70c40c555 (diff) |
Issue #80898 - Restoring func_enum (otmar)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46635 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_enum.c')
-rw-r--r-- | funcs/func_enum.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/funcs/func_enum.c b/funcs/func_enum.c index f37a15fd1..43e953c3b 100644 --- a/funcs/func_enum.c +++ b/funcs/func_enum.c @@ -65,6 +65,7 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data, char dest[256] = "", tmp[2] = "", num[AST_MAX_EXTENSION] = ""; struct ast_module_user *u; char *s, *p; + unsigned int record = 1; buf[0] = '\0'; @@ -88,7 +89,10 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data, args.zone = "e164.arpa"; if (!args.options) - args.options = "1"; + args.options = ""; + + if (args.record) + record = atoi(args.record); /* strip any '-' signs from number */ for (s = p = args.number; *s; s++) { @@ -100,7 +104,7 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data, } res = ast_get_enum(chan, num, dest, sizeof(dest), tech, sizeof(tech), args.zone, - args.options); + args.options, record); p = strchr(dest, ':'); if (p && strcasecmp(tech, "ALL")) |