cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7492 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
480df2636d
commit
0094149e54
|
@ -204,12 +204,8 @@ SWITCH_STANDARD_APP(bcast_function)
|
||||||
bytes = 16;
|
bytes = 16;
|
||||||
switch_socket_sendto(socket, control_packet_addr, 0, (void *)&control_packet, &bytes);
|
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(;;) {
|
for(;;) {
|
||||||
if (write(fd, read_frame->data, read_frame->datalen));
|
|
||||||
|
|
||||||
status = switch_core_session_read_frame(session, &read_frame, -1, 0);
|
status = switch_core_session_read_frame(session, &read_frame, -1, 0);
|
||||||
|
|
||||||
if (!SWITCH_READ_ACCEPTABLE(status)) {
|
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.unique_id = htonl((u_long)switch_timestamp(NULL));
|
||||||
control_packet.command = htonl(LS_STOP_BCAST);
|
control_packet.command = htonl(LS_STOP_BCAST);
|
||||||
bytes = 8;
|
bytes = 8;
|
||||||
|
|
Loading…
Reference in New Issue