mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 10:33:13 +00:00
use the zone and options set by the arg parsing macros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9719 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -67,8 +67,6 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data,
|
|||||||
int res = 0;
|
int res = 0;
|
||||||
char tech[80];
|
char tech[80];
|
||||||
char dest[80] = "";
|
char dest[80] = "";
|
||||||
char *zone;
|
|
||||||
char *options;
|
|
||||||
struct localuser *u;
|
struct localuser *u;
|
||||||
char *s, *p;
|
char *s, *p;
|
||||||
|
|
||||||
@@ -103,8 +101,8 @@ static int function_enum(struct ast_channel *chan, char *cmd, char *data,
|
|||||||
|
|
||||||
LOCAL_USER_ACF_ADD(u);
|
LOCAL_USER_ACF_ADD(u);
|
||||||
|
|
||||||
res = ast_get_enum(chan, p, dest, sizeof(dest), tech, sizeof(tech), zone,
|
res = ast_get_enum(chan, p, dest, sizeof(dest), tech, sizeof(tech), args.zone,
|
||||||
options);
|
args.options);
|
||||||
|
|
||||||
LOCAL_USER_REMOVE(u);
|
LOCAL_USER_REMOVE(u);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user