diff -durN ekiga-3.3.0.orig/lib/engine/components/opal/opal-call-manager.cpp ekiga-3.3.0/lib/engine/components/opal/opal-call-manager.cpp
--- ekiga-3.3.0.orig/lib/engine/components/opal/opal-call-manager.cpp	2010-11-04 18:43:15.000000000 +0100
+++ ekiga-3.3.0/lib/engine/components/opal/opal-call-manager.cpp	2011-04-28 18:32:43.000000000 +0200
@@ -49,6 +49,8 @@
 #include "call-manager.h"
 #include "form-request-simple.h"
 
+#include <stdlib.h>
+
 static  bool same_codec_desc (Ekiga::CodecDescription a, Ekiga::CodecDescription b)
 {
   return (a.name == b.name && a.rate == b.rate);
@@ -100,7 +102,13 @@
   : core (_core)
 {
   /* Initialise the endpoint paramaters */
+#if P_HAS_IPV6
+  char * ekiga_ipv6 = getenv("EKIGA_IPV6");
+  if (ekiga_ipv6 && PIPSocket::IsIpAddressFamilyV6Supported()) PIPSocket::SetDefaultIpAddressFamilyV6();
+  else PIPSocket::SetDefaultIpAddressFamilyV4();
+#else
   PIPSocket::SetDefaultIpAddressFamilyV4();
+#endif
   SetAutoStartTransmitVideo (true);
   SetAutoStartReceiveVideo (true);
   SetUDPPorts (5000, 5100);
