[ekiga/v4_0] Migrate the first port of UDP port ranges from 5060 to 5061



commit 676497344860f68a1548a3ce1d4d684bcb24ea15
Author: Eugen Dedu <Eugen Dedu pu-pm univ-fcomte fr>
Date:   Thu Dec 27 16:40:13 2012 +0100

    Migrate the first port of UDP port ranges from 5060 to 5061
    
    See bug #690621.

 src/gui/conf.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/conf.cpp b/src/gui/conf.cpp
index cea9fa0..a95cd9e 100644
--- a/src/gui/conf.cpp
+++ b/src/gui/conf.cpp
@@ -213,4 +213,14 @@ gnomemeeting_conf_upgrade ()
     g_slist_free (old_values);
     gm_conf_set_string_list (PERSONAL_DATA_KEY "dnd_custom_status", NULL);
   }
+
+  // migrate first port in UDP port ranges from 5060 to 5061, see bug #690621
+  if (version >= 0 && version <= 4000) {
+    gchar *ports = gm_conf_get_string (PORTS_KEY "udp_port_range");
+    if (ports && !strncmp (ports, "5060", 4)) {
+      ports[3] = '1';
+      gm_conf_set_string (PORTS_KEY "udp_port_range", ports);
+    }
+    g_free (ports);
+  }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]