]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't pass NUTAG_URL a display name.
authorMichael Jerris <mike@jerris.com>
Thu, 15 Feb 2007 04:37:57 +0000 (04:37 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 15 Feb 2007 04:37:57 +0000 (04:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4282 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index c7e71248a42be2a173972b469ec05015dd90223d..d1e79babbd8e9016c9268e37c72cc0a3563432f7 100644 (file)
@@ -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) {