[Freeswitch-svn] [commit] r3165 - freeswitch/trunk/scripts/socket

Freeswitch SVN anthm at freeswitch.org
Mon Oct 23 13:40:26 EDT 2006


Author: anthm
Date: Mon Oct 23 13:40:26 2006
New Revision: 3165

Modified:
   freeswitch/trunk/scripts/socket/fsconsole.pl

Log:
let log and event work

Modified: freeswitch/trunk/scripts/socket/fsconsole.pl
==============================================================================
--- freeswitch/trunk/scripts/socket/fsconsole.pl	(original)
+++ freeswitch/trunk/scripts/socket/fsconsole.pl	Mon Oct 23 13:40:26 2006
@@ -224,8 +224,14 @@
 	} 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);
 		}
 	}
 }



More information about the Freeswitch-svn mailing list