mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 16:39:14 +00:00
fixrtp
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2773 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b88b16e00f
commit
33ba8c434c
@ -475,15 +475,15 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session
|
||||
}
|
||||
}
|
||||
|
||||
if (timer_name) {
|
||||
if (!switch_strlen_zero(timer_name)) {
|
||||
switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_USE_TIMER);
|
||||
}
|
||||
|
||||
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) && !timer_name) {
|
||||
if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) && switch_strlen_zero(timer_name)) {
|
||||
timer_name = "soft";
|
||||
}
|
||||
|
||||
if (timer_name) {
|
||||
if (!switch_strlen_zero(timer_name)) {
|
||||
if (switch_core_timer_init(&rtp_session->timer, timer_name, ms_per_packet / 1000, packet_size, rtp_session->pool) == SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Starting timer [%s] %d bytes per %dms\n", timer_name, packet_size, ms_per_packet);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user