[Freeswitch-svn] [commit] r4282 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN mikej at freeswitch.org
Wed Feb 14 23:37:58 EST 2007


Author: mikej
Date: Wed Feb 14 23:37:57 2007
New Revision: 4282

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c

Log:
don't pass NUTAG_URL a display name.

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Wed Feb 14 23:37:57 2007
@@ -1029,12 +1029,14 @@
 		}
 
 		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 @@
 					display = "\"user\"";
 				}
 			}
-		} else {
-			display = "\"user\"";
 		}
 		
 		if (!port) {



More information about the Freeswitch-svn mailing list