]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
let log and event work
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Oct 2006 17:40:26 +0000 (17:40 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 23 Oct 2006 17:40:26 +0000 (17:40 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3165 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/socket/fsconsole.pl

index cf406f43dc14993de568f85603a29131bf58a79a..d494e44f6febdb774d64fb520f8d377a7de3dd1e 100644 (file)
@@ -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);
                }
        }
 }