From 9bf19ec74d2565ce749c9cca63879f62c7d907da Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 23 Apr 2013 14:27:09 -0500 Subject: [PATCH] FS-5331 --- src/switch_core_media.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 0a0d0f9956..c762206c68 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -2625,7 +2625,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s if ((ptime && codec_ms && codec_ms * 1000 != imp->microseconds_per_packet) || map->rm_rate != codec_rate) { near_rate = map->rm_rate; near_match = imp; - near_map = map; + near_map = mmap = map; match = 0; continue; } @@ -2661,8 +2661,10 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s if (num) { mimp = search[0]; + mmap = map; } else { mimp = near_match; + mmap = map; } if (!maxptime || mimp->microseconds_per_packet / 1000 <= maxptime) { @@ -2676,9 +2678,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s match = 0; } } - printf("WTF %p %p\n", (void *) mimp, (void *) mmap); - - + if (mimp && mmap) { char tmp[50]; const char *mirror = switch_channel_get_variable(session->channel, "rtp_mirror_remote_audio_codec_payload");