diff --git a/coreapi/misc.c b/coreapi/misc.c
index 62fa0b1f0b5e69cd9cfc013ac8352d2ce848733f..894c3fc2278ef8d784f6f5592dbb6d7f92899eab 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);
 	}