fix issue reported from mailing list and not JIRA =/

This commit is contained in:
Anthony Minessale committed 2011-03-01 13:42:14 -06:00
1 parent 2044a749cf
commit f398dc1f3a
3 files changed
+26 -8

No files matched your search

+3 -1
View File
@@ -360,10 +360,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi
}
if (session->plc) {
if (switch_test_flag(read_frame, SFF_PLC)) {
if (switch_test_flag(read_frame, SFF_PLC) || 1) {
plc_fillin(session->plc, session->raw_read_frame.data, session->raw_read_frame.datalen / 2);
switch_clear_flag(read_frame, SFF_PLC);
printf("SHIT %d %s\n", switch_test_flag(read_frame, SFF_CNG), switch_core_session_get_name(session));
} else {
printf("ASS\n");
plc_rx(session->plc, session->raw_read_frame.data, session->raw_read_frame.datalen / 2);
}
}