Browse Source

fix support for AF switching on the fly

Change-Id: Id7c582db4ab10afe4341030bde872eee0cb8d973
pull/214/head
Richard Fuchs 10 years ago
parent
commit
38d031c510
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      daemon/call.c

+ 3
- 2
daemon/call.c View File

@ -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) { 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 /* we're holding master_lock in W mode here, so we can safely ignore the
* atomic ops */ * 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; goto get;
if (!ifname || !ifname->s) if (!ifname || !ifname->s)
return; return;


Loading…
Cancel
Save