From 8db31f976fdb7c8dec0d1d0793527f8b597af38e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 2 Oct 2014 18:33:56 -0500 Subject: [PATCH] fix some recovery issues with dynamic payloads --- src/switch_core_media.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 9163fb1a2b..0f38cff75b 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -8761,7 +8761,7 @@ SWITCH_DECLARE (void) switch_core_media_recover_session(switch_core_session_t *s } if ((tmp = switch_channel_get_variable(session->channel, "rtp_use_pt"))) { - a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = (switch_payload_t)atoi(tmp); + a_engine->cur_payload_map->pt = a_engine->cur_payload_map->agreed_pt = smh->payload_space = (switch_payload_t)atoi(tmp); } if ((tmp = switch_channel_get_variable(session->channel, "rtp_audio_recv_pt"))) { @@ -8769,9 +8769,10 @@ SWITCH_DECLARE (void) switch_core_media_recover_session(switch_core_session_t *s } switch_core_media_set_codec(session, 0, smh->mparams->codec_flags); - + a_engine->adv_sdp_ip = smh->mparams->extrtpip = (char *) ip; a_engine->adv_sdp_port = a_engine->local_sdp_port = (switch_port_t)atoi(port); + a_engine->codec_negotiated = 1; if (!zstr(ip)) { a_engine->local_sdp_ip = switch_core_session_strdup(session, ip);