]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
allow ;; seperated commands in fs_cli -x
authorMichael Jerris <mike@jerris.com>
Wed, 26 Oct 2011 19:35:03 +0000 (15:35 -0400)
committerMichael Jerris <mike@jerris.com>
Wed, 26 Oct 2011 19:35:03 +0000 (15:35 -0400)
libs/esl/fs_cli.c

index 7c2f67dc4921c42e206dc238ba1b8ba9bf586fc9..84047c62cfac4a430fe2018c3c00b2412d01d614 100644 (file)
@@ -1320,7 +1320,7 @@ int main(int argc, char *argv[])
        }
        if (argv_exec) {
                const char *err = NULL;
-               snprintf(cmd_str, sizeof(cmd_str), "api %s\n\n", argv_command);
+               snprintf(cmd_str, sizeof(cmd_str), "api %s\nconsole_execute: true\n\n", argv_command);
                if (timeout) {
                        esl_status_t status = esl_send_recv_timed(&handle, cmd_str, timeout);
                        if (status != ESL_SUCCESS) {