]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix to not unintentionally use to in 200 contact
authorMichael Jerris <mike@jerris.com>
Tue, 5 Jun 2007 18:22:16 +0000 (18:22 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 5 Jun 2007 18:22:16 +0000 (18:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5271 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index a8646a0c5e0dcabb3dd5b03d94fcd7f9d38c8db6..e90b7c7d24d9162cfcbe78bef7c4b355b542f7fa 100644 (file)
@@ -1844,11 +1844,10 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
                        if (profile->ndlb & PFLAG_NDLB_TO_IN_200_CONTACT) {
                                tech_pvt->reply_contact = tech_pvt->to_uri;
                        } else {
-                               tech_pvt->to_uri = switch_core_session_strdup(session, profile->url);
+                               tech_pvt->reply_contact = switch_core_session_strdup(session, profile->url);
                        }
                } else {
-                       tech_pvt->to_uri = switch_core_session_strdup(session, profile->url);
-                       tech_pvt->reply_contact = tech_pvt->to_uri;
+                       tech_pvt->reply_contact = switch_core_session_strdup(session, profile->url);
                }
        }