rtp and signal parsing adjustments
This commit is contained in:
parent
d56e8d60fb
commit
a939dee96e
|
@ -1582,7 +1582,6 @@ void sofia_process_dispatch_event(sofia_dispatch_event_t **dep)
|
|||
nua_t *nua = de->nua;
|
||||
sofia_profile_t *profile = de->profile;
|
||||
sofia_private_t *sofia_private = nua_handle_magic(de->nh);
|
||||
switch_core_session_t *session = de->session;
|
||||
*dep = NULL;
|
||||
|
||||
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_stack_unref(nua);
|
||||
|
||||
if (session) {
|
||||
switch_ivr_parse_all_signal_data(session);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
} 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",
|
||||
switch_core_session_get_name(session),
|
||||
rtp_session->sync_packets, (rtp_session->ms_per_packet * rtp_session->sync_packets) / 1000);
|
||||
switch_core_timer_sync(&rtp_session->timer);
|
||||
} else {
|
||||
|
||||
switch_core_timer_next(&rtp_session->timer);
|
||||
|
|
Loading…
Reference in New Issue