[Core] Fix SDP parsing causing segfault.

This commit is contained in:
Andrey Volk 2020-08-12 21:53:06 +04:00
parent 785d92a5f5
commit 1fee1fc6ad
1 changed files with 4 additions and 0 deletions

View File

@ -9051,6 +9051,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
// goto video;
//}
if (!t_engine->cur_payload_map) {
goto text_up;
}
if (switch_channel_test_flag(session->channel, CF_TEXT_POSSIBLE) && t_engine->cur_payload_map->rm_encoding && t_engine->cur_payload_map->remote_sdp_port) {
/******************************************************************************************/
if (t_engine->rtp_session && is_reinvite) {