[Freeswitch-svn] [commit] r10951 - freeswitch/trunk/libs/esl

FreeSWITCH SVN mikej at freeswitch.org
Fri Dec 26 10:07:36 PST 2008


Author: mikej
Date: Fri Dec 26 13:07:36 2008
New Revision: 10951

Log:
fix /log

Modified:
   freeswitch/trunk/libs/esl/fs_cli.c

Modified: freeswitch/trunk/libs/esl/fs_cli.c
==============================================================================
--- freeswitch/trunk/libs/esl/fs_cli.c	(original)
+++ freeswitch/trunk/libs/esl/fs_cli.c	Fri Dec 26 13:07:36 2008
@@ -121,6 +121,8 @@
 
 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 @@
 		!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;



More information about the Freeswitch-svn mailing list