[Freeswitch-svn] [commit] r12206 - freeswitch/trunk/libs/esl/python

FreeSWITCH SVN brian at freeswitch.org
Fri Feb 20 14:36:10 PST 2009


Author: brian
Date: Fri Feb 20 16:36:10 2009
New Revision: 12206

Log:
 oops remove the perl example inside here

Modified:
   freeswitch/trunk/libs/esl/python/server.py

Modified: freeswitch/trunk/libs/esl/python/server.py
==============================================================================
--- freeswitch/trunk/libs/esl/python/server.py	(original)
+++ freeswitch/trunk/libs/esl/python/server.py	Fri Feb 20 16:36:10 2009
@@ -4,8 +4,6 @@
 import pickle
 from ESL import *
 
-#eslSetLogLevel(7)
-
 class ESLRequestHandler(SocketServer.BaseRequestHandler ):
 	def setup(self):
 		print self.client_address, 'connected!'
@@ -30,37 +28,3 @@
 server.serve_forever()
 
 
-
-
-#require ESL;
-#use IO::Socket::INET;
-#
-#my $ip = "127.0.0.1";
-#my $sock = new IO::Socket::INET ( LocalHost => $ip,  LocalPort => '8040',  Proto => 'tcp',  Listen => 1,  Reuse => 1 );
-#die "Could not create socket: $!\n" unless $sock;
-#
-#for(;;) {
-#  my $new_sock = $sock->accept();
-#  my $pid = fork();
-#  if ($pid) {
-#    close($new_sock);
-#    next;
-#  }
-#
-#  my $host = $new_sock->sockhost();
-#  my $fd = fileno($new_sock);
-#  
-#  my $con = new ESL::ESLconnection($fd);
-#  my $info = $con->getInfo();
-#
-#  print $info->serialize();
-#
-#  my $uuid = $info->getHeader("unique-id");
-#
-#  $con->execute("answer", "", $uuid);
-#  $con->execute("playback", "/ram/swimp.raw", $uuid);
-#
-#  close($new_sock);
-#}
-
-



More information about the Freeswitch-svn mailing list