]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
SFSIP-120
authorMathieu Rene <mrene@avgs.ca>
Tue, 10 Feb 2009 01:48:21 +0000 (01:48 +0000)
committerMathieu Rene <mrene@avgs.ca>
Tue, 10 Feb 2009 01:48:21 +0000 (01:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11724 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 06617d1399eb8fb0f30da1b8d37036ea265d1750..0c9908ab1119bd87177472b6db72d610b5e1d87e 100644 (file)
@@ -523,7 +523,8 @@ switch_status_t sofia_glue_ext_address_lookup(sofia_profile_t *profile, private_
                char *p;
 
                if (!sofia_test_pflag(profile, PFLAG_STUN_ENABLED)) {
-                       *ip = switch_core_strdup(pool, tech_pvt->profile->rtpip);
+                       *ip = switch_core_strdup(pool, profile->rtpip);
+                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Trying to use STUN but its disabled!\n");
                        return SWITCH_STATUS_SUCCESS;
                }