From 38d031c510d361355b066f33509b4b057ea519ce Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 1 Feb 2016 09:59:57 -0500 Subject: [PATCH] fix support for AF switching on the fly Change-Id: Id7c582db4ab10afe4341030bde872eee0cb8d973 --- daemon/call.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/daemon/call.c b/daemon/call.c index d760c676c..c90a53696 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1355,9 +1355,10 @@ static void __tos_change(struct call *call, const struct sdp_ng_flags *flags) { static void __init_interface(struct call_media *media, const str *ifname, int num_ports) { /* we're holding master_lock in W mode here, so we can safely ignore the * atomic ops */ - //struct local_intf *ifa = (void *) media->local_intf; - if (!media->logical_intf /* || !ifa */) + if (!media->logical_intf) + goto get; + if (media->logical_intf->preferred_family != media->desired_family) goto get; if (!ifname || !ifname->s) return;