]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
declinatio mortuus obfirmo!
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Nov 2010 16:49:02 +0000 (10:49 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Nov 2010 16:49:02 +0000 (10:49 -0600)
src/mod/endpoints/mod_sofia/sofia_reg.c

index 67641ae616e6d384f9244891bf073ecabe280cc2..571c1673ebb626d703e7ea79d02ea365e3b902f6 100644 (file)
@@ -1490,6 +1490,7 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
        int network_port = 0;
        char *is_nat = NULL;
 
+#if 0 /* This seems to cause undesirable effects so nevermind */
        if (sip->sip_to && sip->sip_to->a_url && sip->sip_to->a_url->url_host) {
                const char *to_host = sip->sip_to->a_url->url_host;
                if (profile->reg_db_domain) {
@@ -1500,6 +1501,7 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
                        }
                }
        }
+#endif
 
        sofia_glue_get_addr(nua_current_request(nua), network_ip, sizeof(network_ip), &network_port);