From d1965b701cc0581d022d907edd784c94e734f6d9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 23 Oct 2006 17:40:26 +0000 Subject: [PATCH] let log and event work git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3165 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- scripts/socket/fsconsole.pl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/socket/fsconsole.pl b/scripts/socket/fsconsole.pl index cf406f43dc..d494e44f6f 100644 --- a/scripts/socket/fsconsole.pl +++ b/scripts/socket/fsconsole.pl @@ -224,8 +224,14 @@ sub handle_curses_input { } else { #see if we got connected at some point if(defined($sockets{'localhost'})) { - #send the command - $sockets{'localhost'}->put("api $input"); + my $cmd; + if ($input =~ /^log|^event/) { + $cmd = $input; + } else { + $cmd = "api $input"; + } + #send the command + $sockets{'localhost'}->put($cmd); } } }