From: Anthony Minessale Date: Mon, 23 Oct 2006 17:40:26 +0000 (+0000) Subject: let log and event work X-Git-Tag: v1.0-beta1~1841 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1965b701cc0581d022d907edd784c94e734f6d9;p=thirdparty%2Ffreeswitch.git let log and event work git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3165 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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); } } }