From abc230ed50d1e3b1ff645b07815057114c831519 Mon Sep 17 00:00:00 2001 From: Brian West Date: Tue, 29 Oct 2013 12:58:53 -0500 Subject: [PATCH] FS-5909 use correct ip in patched sdp --- src/switch_core_media.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 5370919774..3ab77c565b 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6511,11 +6511,11 @@ SWITCH_DECLARE(void) switch_core_media_patch_sdp(switch_core_session_t *session) strncpy(q, p, 7); p += 7; q += 7; - strncpy(q, strchr(a_engine->codec_params.local_sdp_ip, ':') ? "6 " : "4 ", 2); + strncpy(q, strchr(a_engine->codec_params.adv_sdp_ip, ':') ? "6 " : "4 ", 2); p +=2; q +=2; - strncpy(q, a_engine->codec_params.local_sdp_ip, strlen(a_engine->codec_params.local_sdp_ip)); - q += strlen(a_engine->codec_params.local_sdp_ip); + strncpy(q, a_engine->codec_params.adv_sdp_ip, strlen(a_engine->codec_params.adv_sdp_ip)); + q += strlen(a_engine->codec_params.adv_sdp_ip); while (p && *p && ((*p >= '0' && *p <= '9') || *p == '.' || *p == ':' || (*p >= 'A' && *p <= 'F') || (*p >= 'a' && *p <= 'f'))) { if (p >= pe) {