]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6094 --resolve amendment
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Jan 2014 21:19:03 +0000 (02:19 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 28 Jan 2014 21:19:03 +0000 (02:19 +0500)
src/switch_core_media.c

index 9c42a03a46788c905ab5b241b094a3e3c565bea2..1954aeb600d136b1fa9b0d89e17d47e68caac13d 100644 (file)
@@ -1712,7 +1712,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_read_frame(switch_core_session
                                        /* search for payload type */
                                        switch_mutex_lock(smh->sdp_mutex);
                                        for (pmap = engine->payload_map; pmap; pmap = pmap->next) {
-                                               if (engine->read_frame.payload == pmap->recv_pt) {
+                                               if (engine->read_frame.payload == pmap->recv_pt && pmap->negotiated) {
                                                        engine->cur_payload_map = pmap;
 
                                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING,