提交 a20c556f authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-4650 --resolve

上级 bcfc2dbe
...@@ -285,7 +285,7 @@ SWITCH_STANDARD_API(list_users_function) ...@@ -285,7 +285,7 @@ SWITCH_STANDARD_API(list_users_function)
int32_t arg = 0; int32_t arg = 0;
switch_xml_t xml_root, x_domains, x_domain_tag; switch_xml_t xml_root, x_domains, x_domain_tag;
switch_xml_t gts, gt, uts, ut; 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))) { if ((pdata = strdup(cmd))) {
...@@ -300,10 +300,12 @@ SWITCH_STANDARD_API(list_users_function) ...@@ -300,10 +300,12 @@ SWITCH_STANDARD_API(list_users_function)
if (!strcasecmp(argv[arg], "user")) { if (!strcasecmp(argv[arg], "user")) {
_user = argv[arg + 1]; _user = argv[arg + 1];
} }
if (!strcasecmp(argv[arg], "context")) {
_search_context = argv[arg + 1];
}
if (!strcasecmp(argv[arg], "domain")) { if (!strcasecmp(argv[arg], "domain")) {
_domain = argv[arg + 1]; _domain = argv[arg + 1];
} }
if (!strcasecmp(argv[arg], "group")) { if (!strcasecmp(argv[arg], "group")) {
_group = argv[arg + 1]; _group = argv[arg + 1];
} }
...@@ -370,6 +372,7 @@ SWITCH_STANDARD_API(list_users_function) ...@@ -370,6 +372,7 @@ SWITCH_STANDARD_API(list_users_function)
us.x_user_tag = ut; us.x_user_tag = ut;
us.x_domain_tag = x_domain_tag; us.x_domain_tag = x_domain_tag;
us.stream = stream; us.stream = stream;
us.search_context = _search_context;
dump_user(&us); dump_user(&us);
} }
} }
...@@ -383,6 +386,7 @@ SWITCH_STANDARD_API(list_users_function) ...@@ -383,6 +386,7 @@ SWITCH_STANDARD_API(list_users_function)
us.x_user_tag = ut; us.x_user_tag = ut;
us.x_domain_tag = x_domain_tag; us.x_domain_tag = x_domain_tag;
us.stream = stream; us.stream = stream;
us.search_context = _search_context;
dump_user(&us); dump_user(&us);
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论