]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: don't compile with their built-in stun server as it is buggy
authorMathieu Rene <mrene@avgs.ca>
Mon, 15 Aug 2011 15:30:41 +0000 (17:30 +0200)
committerMathieu Rene <mrene@avgs.ca>
Mon, 15 Aug 2011 15:31:15 +0000 (17:31 +0200)
libs/sofia-sip/configure.gnu
src/mod/endpoints/mod_sofia/sofia.c

index e9cd89ac7c6f74eb78170cd520d699625d5f0927..4b64a47b7b3fc59e3c1983704170dd3aff1cfecf 100644 (file)
@@ -1,4 +1,4 @@
 #! /bin/sh
 srcpath=$(dirname $0 2>/dev/null )  || srcpath="." 
-$srcpath/configure "$@" --with-pic --with-glib=no --disable-shared  --without-doxygen
+$srcpath/configure "$@" --with-pic --with-glib=no --disable-shared  --without-doxygen --disable-stun
 
index c225b2bf35d4162df882a8691ffdc445fdb3c6d6..0f6486a361f5e4570773d24b6e1a58fc7d6410fd 100644 (file)
@@ -48,7 +48,9 @@ extern su_log_t nth_server_log[];
 extern su_log_t nua_log[];
 extern su_log_t soa_log[];
 extern su_log_t sresolv_log[];
+#ifdef HAVE_SOFIA_STUN
 extern su_log_t stun_log[];
+#endif
 extern su_log_t su_log_default[];
 
 static void config_sofia_profile_urls(sofia_profile_t * profile);
@@ -2077,8 +2079,10 @@ static su_log_t *sofia_get_logger(const char *name)
                return soa_log;
        } else if (!strcasecmp(name, "sresolv")) {
                return sresolv_log;
+#ifdef HAVE_SOFIA_STUN
        } else if (!strcasecmp(name, "stun")) {
                return stun_log;
+#endif
        } else if (!strcasecmp(name, "default")) {
                return su_log_default;
        } else {
@@ -2105,7 +2109,9 @@ switch_status_t sofia_set_loglevel(const char *name, int level)
                su_log_set_level(nua_log, level);
                su_log_set_level(soa_log, level);
                su_log_set_level(sresolv_log, level);
+#ifdef HAVE_SOFIA_STUN
                su_log_set_level(stun_log, level);
+#endif
                return SWITCH_STATUS_SUCCESS;
        }
 
@@ -3356,7 +3362,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
                su_log_redirect(nua_log, logger, NULL);
                su_log_redirect(soa_log, logger, NULL);
                su_log_redirect(sresolv_log, logger, NULL);
+#ifdef HAVE_SOFIA_STUN
                su_log_redirect(stun_log, logger, NULL);
+#endif
        }
        
        if (!zstr(profile_name) && (profile = sofia_glue_find_profile(profile_name))) {