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

Freeswitch SVN anthm at freeswitch.org
Mon May 26 12:09:08 EDT 2008


Author: anthm
Date: Mon May 26 12:09:08 2008
New Revision: 8662

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

Log:
fix mwi

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Mon May 26 12:09:08 2008
@@ -274,23 +274,21 @@
 	switch_safe_free(sql);
 
 	
-	if (h.total) {
-		sql = switch_mprintf("select sip_user,sip_host,contact,'%q' from sip_registrations where sip_user='%q' and sip_host='%q'", 
-							 stream.data, user, host);
+
+	sql = switch_mprintf("select sip_user,sip_host,contact,'%q' from sip_registrations where sip_user='%q' and sip_host='%q'", 
+						 stream.data, user, host);
 	
 
 		
-		switch_assert (sql != NULL);
-		sofia_glue_execute_sql_callback(profile,
-										SWITCH_FALSE,
-										profile->ireg_mutex,
-										sql,
-										sofia_presence_mwi_callback2,
-										&h);
-		
-		switch_safe_free(sql);
-	}
-
+	switch_assert (sql != NULL);
+	sofia_glue_execute_sql_callback(profile,
+									SWITCH_FALSE,
+									profile->ireg_mutex,
+									sql,
+									sofia_presence_mwi_callback2,
+									&h);
+	
+	switch_safe_free(sql);
 
 	switch_safe_free(stream.data);
 



More information about the Freeswitch-svn mailing list