From 08a66cdf6f526b3452fc08155083a337791bc7fd Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 13 Mar 2018 20:12:10 +0100 Subject: [PATCH] Fix commit 3fd706a702eb43f0de36ebeca60bb72ca36b65aa - it was incomplete. --- coreapi/linphonecall.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/coreapi/linphonecall.c b/coreapi/linphonecall.c index a7187cc93..98aef4e54 100644 --- a/coreapi/linphonecall.c +++ b/coreapi/linphonecall.c @@ -1284,8 +1284,13 @@ static void linphone_call_get_local_ip(LinphoneCall *call, const LinphoneAddress * from the socket that connect to this proxy */ if (call->dest_proxy && call->dest_proxy->op){ if ((ip = sal_op_get_local_address(call->dest_proxy->op, NULL)) != NULL){ - ms_message("Found media local-ip from signaling."); - goto found; + if (strchr(ip, ':') != NULL && af == AF_INET){ + /*case where we've decided to use IPv4 in select_outgoing_ip_version(), but the signaling local ip address is IPv6*/ + /*we'll use the default media localip*/ + }else{ + ms_message("Found media local-ip from signaling."); + goto found; + } } }