From 62b7a692a696c3d313e65a67fbec1bb4bf773304 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 29 May 2007 15:16:42 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5229 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 511dbcc97d..29b4ff2856 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1844,11 +1844,11 @@ 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->reply_contact = tech_pvt->profile->url; + tech_pvt->to_uri = switch_core_session_strdup(session, profile->url); } } else { - tech_pvt->to_uri = tech_pvt->profile->url; - tech_pvt->reply_contact = tech_pvt->profile->url; + tech_pvt->to_uri = switch_core_session_strdup(session, profile->url); + tech_pvt->reply_contact = tech_pvt->to_uri; } }