rtp and signal parsing adjustments

This commit is contained in:
Anthony Minessale 2012-11-30 13:54:43 -06:00 committed by Ken Rice
parent d56e8d60fb
commit a939dee96e
2 changed files with 2 additions and 6 deletions

View File

@ -1582,7 +1582,6 @@ void sofia_process_dispatch_event(sofia_dispatch_event_t **dep)
nua_t *nua = de->nua; nua_t *nua = de->nua;
sofia_profile_t *profile = de->profile; sofia_profile_t *profile = de->profile;
sofia_private_t *sofia_private = nua_handle_magic(de->nh); sofia_private_t *sofia_private = nua_handle_magic(de->nh);
switch_core_session_t *session = de->session;
*dep = NULL; *dep = NULL;
our_sofia_event_callback(de->data->e_event, de->data->e_status, de->data->e_phrase, de->nua, de->profile, our_sofia_event_callback(de->data->e_event, de->data->e_status, de->data->e_phrase, de->nua, de->profile,
@ -1597,10 +1596,6 @@ void sofia_process_dispatch_event(sofia_dispatch_event_t **dep)
nua_handle_unref(nh); nua_handle_unref(nh);
nua_stack_unref(nua); nua_stack_unref(nua);
if (session) {
switch_ivr_parse_all_signal_data(session);
}
} }

View File

@ -3254,7 +3254,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
} }
} }
if (rtp_session->hot_hits > 1 && !rtp_session->sync_packets) {// >= (rtp_session->samples_per_second * 30)) { if (rtp_session->hot_hits > 10 && !rtp_session->sync_packets) {// >= (rtp_session->samples_per_second * 30)) {
hot_socket = 1; hot_socket = 1;
} }
} else { } else {
@ -3277,6 +3277,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
"%s Auto-Flush catching up %d packets (%d)ms.\n", "%s Auto-Flush catching up %d packets (%d)ms.\n",
switch_core_session_get_name(session), switch_core_session_get_name(session),
rtp_session->sync_packets, (rtp_session->ms_per_packet * rtp_session->sync_packets) / 1000); rtp_session->sync_packets, (rtp_session->ms_per_packet * rtp_session->sync_packets) / 1000);
switch_core_timer_sync(&rtp_session->timer);
} else { } else {
switch_core_timer_next(&rtp_session->timer); switch_core_timer_next(&rtp_session->timer);