FS-4650 --resolve

This commit is contained in:
Anthony Minessale 2012-10-08 16:34:39 -05:00
parent bcfc2dbeb1
commit a20c556fb7
1 changed files with 6 additions and 2 deletions

View File

@ -285,7 +285,7 @@ SWITCH_STANDARD_API(list_users_function)
int32_t arg = 0;
switch_xml_t xml_root, x_domains, x_domain_tag;
switch_xml_t gts, gt, uts, ut;
char *_user = NULL, *_domain = NULL, *_group = NULL;
char *_user = NULL, *_domain = NULL, *_search_context = NULL, *_group = NULL;
if ((pdata = strdup(cmd))) {
@ -300,10 +300,12 @@ SWITCH_STANDARD_API(list_users_function)
if (!strcasecmp(argv[arg], "user")) {
_user = argv[arg + 1];
}
if (!strcasecmp(argv[arg], "context")) {
_search_context = argv[arg + 1];
}
if (!strcasecmp(argv[arg], "domain")) {
_domain = argv[arg + 1];
}
if (!strcasecmp(argv[arg], "group")) {
_group = argv[arg + 1];
}
@ -370,6 +372,7 @@ SWITCH_STANDARD_API(list_users_function)
us.x_user_tag = ut;
us.x_domain_tag = x_domain_tag;
us.stream = stream;
us.search_context = _search_context;
dump_user(&us);
}
}
@ -383,6 +386,7 @@ SWITCH_STANDARD_API(list_users_function)
us.x_user_tag = ut;
us.x_domain_tag = x_domain_tag;
us.stream = stream;
us.search_context = _search_context;
dump_user(&us);
}
}