提交 b899c073 authored 作者: Michael Jerris's avatar Michael Jerris

fix /log

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10951 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 feaa9ced
...@@ -121,6 +121,8 @@ static void *msg_thread_run(esl_thread_t *me, void *obj) ...@@ -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) static int process_command(esl_handle_t *handle, const char *cmd)
{ {
char cmd_str[1024];
if ( if (
!strcasecmp(cmd, "exit") || !strcasecmp(cmd, "exit") ||
!strcasecmp(cmd, "quit") || !strcasecmp(cmd, "quit") ||
...@@ -138,7 +140,9 @@ static int process_command(esl_handle_t *handle, const char *cmd) ...@@ -138,7 +140,9 @@ static int process_command(esl_handle_t *handle, const char *cmd)
!strncasecmp(cmd, "filter", 6) !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); printf("%s\n", handle->last_sr_reply);
goto end; goto end;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论