From 604f7a0ed5ed8be66225bbf459941c3a63112e8b Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Thu, 15 Feb 2007 04:37:57 +0000 Subject: [PATCH] don't pass NUTAG_URL a display name. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4282 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/mod_sofia.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c7e71248a4..d1e79babbd 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1029,12 +1029,14 @@ static void do_invite(switch_core_session_t *session) } if (!tech_pvt->nh) { + char *url = get_url_from_contact(tech_pvt->dest, 1); tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL, - NUTAG_URL(tech_pvt->dest), + NUTAG_URL(url), SIPTAG_TO_STR(tech_pvt->dest_to), SIPTAG_FROM_STR(tech_pvt->from_str), SIPTAG_CONTACT_STR(tech_pvt->profile->url), TAG_END()); + switch_safe_free(url); if (!(tech_pvt->sofia_private = malloc(sizeof(*tech_pvt->sofia_private)))) { abort(); @@ -3181,8 +3183,6 @@ static uint8_t handle_register(nua_t *nua, display = "\"user\""; } } - } else { - display = "\"user\""; } if (!port) {