]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix /log
authorMichael Jerris <mike@jerris.com>
Fri, 26 Dec 2008 18:07:36 +0000 (18:07 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 26 Dec 2008 18:07:36 +0000 (18:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10951 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/fs_cli.c

index 49c1458180689983e4bf59b1388c7d51632acef9..a4941a7e3399194c69dc3c5e4b39ab5fd191522e 100644 (file)
@@ -121,6 +121,8 @@ static void *msg_thread_run(esl_thread_t *me, void *obj)
 
 static int process_command(esl_handle_t *handle, const char *cmd) 
 {
+       char cmd_str[1024];
+
        if (
                !strcasecmp(cmd, "exit") ||
                !strcasecmp(cmd, "quit") ||
@@ -138,7 +140,9 @@ static int process_command(esl_handle_t *handle, const char *cmd)
                !strncasecmp(cmd, "filter", 6)
                ) {
 
-               esl_send_recv(handle, cmd);                     
+               snprintf(cmd_str, sizeof(cmd_str), "%s\n\n", cmd);
+               esl_send_recv(handle, cmd_str); 
+
                printf("%s\n", handle->last_sr_reply);
 
                goto end;