mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
remove autocorrect thing from jb
This commit is contained in:
parent
5c5b53a453
commit
28e0dcdc85
@ -944,44 +944,25 @@ stfu_frame_t *stfu_n_read_a_frame(stfu_instance_t *i)
|
|||||||
i->plc_pt = rframe->pt;
|
i->plc_pt = rframe->pt;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
int force = 0;
|
|
||||||
|
|
||||||
if (i->consecutive_bad_count > (i->max_qlen / 2)) {
|
if (i->consecutive_bad_count > (i->max_qlen / 2)) {
|
||||||
force = 1;
|
if (stfu_log != null_logger && i->debug) {
|
||||||
}
|
stfu_log(STFU_LOG_EMERG, "%s NO PACKETS HARD RESETTING\n", i->name);
|
||||||
|
}
|
||||||
|
stfu_n_reset(i);
|
||||||
|
} else {
|
||||||
|
i->last_wr_ts = i->cur_ts;
|
||||||
|
rframe = &i->out_queue->int_frame;
|
||||||
|
rframe->dlen = i->plc_len;
|
||||||
|
rframe->pt = i->plc_pt;
|
||||||
|
rframe->ts = i->cur_ts;
|
||||||
|
rframe->seq = i->cur_seq;
|
||||||
|
i->miss_count++;
|
||||||
|
|
||||||
if (stfu_n_find_any_frame(i, i->out_queue, &rframe, force)) {
|
if (stfu_log != null_logger && i->debug) {
|
||||||
i->cur_ts = rframe->ts;
|
stfu_log(STFU_LOG_EMERG, "%s PLC %d/%d %d %ld %u:%u\n", i->name,
|
||||||
i->cur_seq = rframe->seq;
|
i->miss_count, i->max_qlen, rframe->plc, rframe->dlen, rframe->ts, rframe->ts / i->samples_per_packet);
|
||||||
i->last_wr_ts = i->cur_ts;
|
}
|
||||||
i->miss_count = 0;
|
}
|
||||||
|
|
||||||
if (stfu_log != null_logger && i->debug) {
|
|
||||||
stfu_log(STFU_LOG_EMERG, "%s AUTOCORRECT %d %d %ld %u:%u\n", i->name,
|
|
||||||
i->miss_count, rframe->plc, rframe->dlen, rframe->ts, rframe->ts / i->samples_per_packet);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if (force) {
|
|
||||||
if (stfu_log != null_logger && i->debug) {
|
|
||||||
stfu_log(STFU_LOG_EMERG, "%s NO PACKETS HARD RESETTING\n", i->name);
|
|
||||||
}
|
|
||||||
stfu_n_reset(i);
|
|
||||||
} else {
|
|
||||||
i->last_wr_ts = i->cur_ts;
|
|
||||||
rframe = &i->out_queue->int_frame;
|
|
||||||
rframe->dlen = i->plc_len;
|
|
||||||
rframe->pt = i->plc_pt;
|
|
||||||
rframe->ts = i->cur_ts;
|
|
||||||
rframe->seq = i->cur_seq;
|
|
||||||
i->miss_count++;
|
|
||||||
|
|
||||||
if (stfu_log != null_logger && i->debug) {
|
|
||||||
stfu_log(STFU_LOG_EMERG, "%s PLC %d/%d %d %ld %u:%u\n", i->name,
|
|
||||||
i->miss_count, i->max_qlen, rframe->plc, rframe->dlen, rframe->ts, rframe->ts / i->samples_per_packet);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i->miss_count > i->max_qlen) {
|
if (i->miss_count > i->max_qlen) {
|
||||||
if (stfu_log != null_logger && i->debug) {
|
if (stfu_log != null_logger && i->debug) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user