[Freeswitch-svn] [commit] r7492 - freeswitch/trunk/src/mod/applications/mod_esf

Freeswitch SVN brian at freeswitch.org
Fri Feb 1 21:50:26 EST 2008


Author: brian
Date: Fri Feb  1 21:50:26 2008
New Revision: 7492

Modified:
   freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c

Log:
cleanup

Modified: freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_esf/mod_esf.c	Fri Feb  1 21:50:26 2008
@@ -204,12 +204,8 @@
 	bytes = 16;
 	switch_socket_sendto(socket, control_packet_addr, 0, (void *)&control_packet, &bytes);
 
-    int fd;
-	fd = open("/tmp/wtf.ulaw", O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
-
 	for(;;) {
-        if (write(fd, read_frame->data, read_frame->datalen));
-        
+
 		status = switch_core_session_read_frame(session, &read_frame, -1, 0);
 
         if (!SWITCH_READ_ACCEPTABLE(status)) {
@@ -226,8 +222,6 @@
 		}
 	}
 
-
-
 	control_packet.unique_id = htonl((u_long)switch_timestamp(NULL));
 	control_packet.command = htonl(LS_STOP_BCAST);
 	bytes = 8;



More information about the Freeswitch-svn mailing list