[Freeswitch-svn] [commit] r9139 -	freeswitch/trunk/src/mod/endpoints/mod_sofia
    Freeswitch SVN 
    brian at freeswitch.org
       
    Wed Jul 23 09:11:46 EDT 2008
    
    
  
Author: brian
Date: Wed Jul 23 09:11:45 2008
New Revision: 9139
Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
Log:
small tweak to make sure we don't make any devices mad
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 Jul 23 09:11:45 2008
@@ -2071,7 +2071,7 @@
 
 			if (profile_name && ct && es && body && user && host && (profile = sofia_glue_find_profile(profile_name))) {
 				char *id = NULL;
-				char *contact;
+				char *contact, *p;
 				char buf[512] = "";
 
 				if (!sofia_reg_find_reg_url(profile, user, host, buf, sizeof(buf))) {
@@ -2084,6 +2084,10 @@
 				switch_assert(id);
 				contact = sofia_glue_get_url_from_contact(buf, 0);
 				
+				if ((p = strstr(contact, ";fs_"))) {
+					*p = '\0';
+				}
+
 				nh = nua_handle(profile->nua, 
 								NULL, 
 								NUTAG_URL(contact), 
@@ -2118,7 +2122,7 @@
 
 			if (profile_name && ct && body && user && host && (profile = sofia_glue_find_profile(profile_name))) {
 				char *id = NULL;
-				char *contact;
+				char *contact, *p;
 				char buf[512] = "";
 
 				if (!sofia_reg_find_reg_url(profile, user, host, buf, sizeof(buf))) {
@@ -2130,6 +2134,10 @@
 
 				switch_assert(id);
 				contact = sofia_glue_get_url_from_contact(buf, 0);
+
+				if ((p = strstr(contact, ";fs_"))) {
+					*p = '\0';
+				}
 				
 				nh = nua_handle(profile->nua, 
 								NULL, 
    
    
More information about the Freeswitch-svn
mailing list