]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4650 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 8 Oct 2012 21:34:39 +0000 (16:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 8 Oct 2012 21:34:39 +0000 (16:34 -0500)
src/mod/applications/mod_commands/mod_commands.c

index 5923860507ce29f97b016c755dbb1d834bdca04d..7287d95acc134ffc6bb0ea2b2d07dbff452be26a 100644 (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);
                                        }
                                }