mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
FS-11919: [core] add api compatibility for switch_rtp_new
This commit is contained in:
1 parent
4926eac49d
commit
7906a2054a
10 files changed
+24
-16
No files matched your search
@@ -1266,7 +1266,7 @@ static int activate_audio_rtp(struct private_object *tech_pvt)
|
||||
tech_pvt->transports[LDL_TPORT_RTP].codec_num,
|
||||
tech_pvt->transports[LDL_TPORT_RTP].read_codec.implementation->samples_per_packet,
|
||||
tech_pvt->transports[LDL_TPORT_RTP].read_codec.implementation->microseconds_per_packet,
|
||||
flags, tech_pvt->profile->timer_name, &err, switch_core_session_get_pool(tech_pvt->session)))) {
|
||||
flags, tech_pvt->profile->timer_name, &err, switch_core_session_get_pool(tech_pvt->session), 0, 0))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "RTP ERROR %s\n", err);
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
r = 0;
|
||||
@@ -1459,7 +1459,7 @@ static int activate_video_rtp(struct private_object *tech_pvt)
|
||||
tech_pvt->transports[LDL_TPORT_VIDEO_RTP].codec_num,
|
||||
1,
|
||||
90000,
|
||||
flags, NULL, &err, switch_core_session_get_pool(tech_pvt->session)))) {
|
||||
flags, NULL, &err, switch_core_session_get_pool(tech_pvt->session), 0, 0))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG, "RTP ERROR %s\n", err);
|
||||
switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
r = 0; goto end;
|
||||
|
||||
@@ -2200,7 +2200,7 @@ PBoolean FSH323_ExternalRTPChannel::Start()
|
||||
codec->implementation->samples_per_packet,
|
||||
codec->implementation->microseconds_per_packet,
|
||||
flags, timer_name, &err,
|
||||
switch_core_session_get_pool(m_fsSession));
|
||||
switch_core_session_get_pool(m_fsSession), 0, 0);
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"------------------------->tech_pvt->rtp_session = %p\n",tech_pvt->rtp_session);
|
||||
m_conn->m_startRTP = true;
|
||||
|
||||
@@ -2064,7 +2064,7 @@ switch_status_t skinny_handle_open_receive_channel_ack_message(listener_t *liste
|
||||
tech_pvt->read_impl.samples_per_packet,
|
||||
tech_pvt->codec_ms * 1000,
|
||||
flags, "soft", &err,
|
||||
switch_core_session_get_pool(session));
|
||||
switch_core_session_get_pool(session), 0, 0);
|
||||
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(tech_pvt->session), SWITCH_LOG_DEBUG,
|
||||
"AUDIO RTP [%s] %s:%d->%s:%d codec: %u ms: %d [%s]\n",
|
||||
switch_channel_get_name(channel),
|
||||
|
||||
@@ -266,7 +266,7 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
|
||||
|
||||
if (!(tech_pvt->rtp_session = switch_rtp_new(local_addr, local_port, remote_addr, remote_port, tech_pvt->agreed_pt,
|
||||
tech_pvt->read_codec.implementation->samples_per_packet, ptime * 1000,
|
||||
rtp_flags, "soft", &err, switch_core_session_get_pool(*new_session)))) {
|
||||
rtp_flags, "soft", &err, switch_core_session_get_pool(*new_session), 0, 0))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't setup RTP session: [%s]\n", err);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user