From 4732204314c60fa78a0456b23e32c33062971387 Mon Sep 17 00:00:00 2001
From: Simon Morlat <simon.morlat@linphone.org>
Date: Thu, 29 Apr 2010 15:57:58 +0200
Subject: [PATCH] use mapped address in c=

---
 coreapi/misc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/coreapi/misc.c b/coreapi/misc.c
index 62fa0b1f0b..894c3fc227 100644
--- a/coreapi/misc.c
+++ b/coreapi/misc.c
@@ -567,6 +567,9 @@ void linphone_core_run_stun_tests(LinphoneCore *lc, LinphoneCall *call){
 				}
 			}
 		}
+		if (ac->addr[0]!='\0' && vc->addr[0]!='\0' && strcmp(ac->addr,vc->addr)==0){
+			strcpy(call->localdesc->addr,ac->addr);
+		}
 		close_socket(sock1);
 		if (sock2>=0) close_socket(sock2);
 	}
-- 
GitLab