]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
re-mark cur_payload as negotiated when detected as such by parser or the rtp could...
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 12 Dec 2014 00:54:31 +0000 (18:54 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 12 Dec 2014 06:54:52 +0000 (00:54 -0600)
src/switch_core_media.c

index 29d150463eabaf958908f2b99865a16a45168eb7..8e00b72e2b996b80d17f6cc36b99a80fc9331e49 100644 (file)
@@ -5106,6 +5106,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
                        remote_port == a_engine->cur_payload_map->remote_sdp_port) {
                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Audio params are unchanged for %s.\n",
                                                          switch_channel_get_name(session->channel));
+                       a_engine->cur_payload_map->negotiated = 1;
                        //XX
                        goto video;
                } else {
@@ -5495,6 +5496,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_activate_rtp(switch_core_sessi
                                if (remote_host && remote_port && !strcmp(remote_host, v_engine->cur_payload_map->remote_sdp_ip) && remote_port == v_engine->cur_payload_map->remote_sdp_port) {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Video params are unchanged for %s.\n",
                                                                          switch_channel_get_name(session->channel));
+                                       v_engine->cur_payload_map->negotiated = 1;
                                        goto video_up;
                                } else {
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Video params changed for %s from %s:%d to %s:%d\n",