From 0094149e541aa3694bcc13dd0ab94c58275e6623 Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 2 Feb 2008 02:50:26 +0000 Subject: [PATCH] cleanup git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7492 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_esf/mod_esf.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mod/applications/mod_esf/mod_esf.c b/src/mod/applications/mod_esf/mod_esf.c index 4eaba71971..fb4b3c9e71 100644 --- a/src/mod/applications/mod_esf/mod_esf.c +++ b/src/mod/applications/mod_esf/mod_esf.c @@ -204,12 +204,8 @@ SWITCH_STANDARD_APP(bcast_function) 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 @@ SWITCH_STANDARD_APP(bcast_function) } } - - control_packet.unique_id = htonl((u_long)switch_timestamp(NULL)); control_packet.command = htonl(LS_STOP_BCAST); bytes = 8;