]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: fix autocompletion
authorMathieu Parent <math.parent@gmail.com>
Tue, 24 Aug 2010 21:53:10 +0000 (23:53 +0200)
committerMathieu Parent <math.parent@gmail.com>
Tue, 24 Aug 2010 21:53:10 +0000 (23:53 +0200)
"skinny profile internal device <tab>" now works

src/mod/endpoints/mod_skinny/skinny_api.c

index cf54deb8b8d811e511354d06a9b0c0f6fd459e2c..0ef0beb2d55507acd87fc0535757afc17cbefb28 100644 (file)
@@ -93,7 +93,7 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
            status = SWITCH_STATUS_MEMERR;
            return status;
     }
-    if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc != 5) {
+    if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
            return status;
     }