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

Freeswitch SVN mikej at freeswitch.org
Fri Nov 16 23:10:36 EST 2007


Author: mikej
Date: Fri Nov 16 23:10:35 2007
New Revision: 6318

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

Log:
fix for MODAPP-51

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	Fri Nov 16 23:10:35 2007
@@ -809,7 +809,7 @@
 							 from_user,
 							 from_host,
 							 to_user,
-							 to_host, event, proto
+							 to_host, event
 							 );
 
 		assert(sql != NULL);
@@ -846,7 +846,7 @@
 
 		switch_safe_free(sstr);
 
-		if ((sql = switch_mprintf("select * from sip_subscriptions where sip_user='%q' and sip_host='%q'", to_user, to_host, to_user, to_host))) {
+		if ((sql = switch_mprintf("select * from sip_subscriptions where sip_user='%q' and sip_host='%q'", to_user, to_host))) {
 			sofia_glue_execute_sql_callback(profile,
 											SWITCH_FALSE,
 											profile->ireg_mutex,
@@ -1145,3 +1145,13 @@
 	switch_core_hash_insert(tech_pvt->profile->chat_hash, tech_pvt->hash_key, tech_pvt);
 
 }
+/* For Emacs:
+ * Local Variables:
+ * mode:c
+ * indent-tabs-mode:t
+ * tab-width:4
+ * c-basic-offset:4
+ * End:
+ * For VIM:
+ * vim:set softtabstop=4 shiftwidth=4 tabstop=4 expandtab:
+ */

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c	Fri Nov 16 23:10:35 2007
@@ -542,7 +542,7 @@
 				sql = NULL;
 			}
 			
-			if ((sql = switch_mprintf("delete from sip_registrations where call_id='%q'", to_user, to_host, call_id))) {
+			if ((sql = switch_mprintf("delete from sip_registrations where call_id='%q'", call_id))) {
 				sofia_glue_execute_sql(profile, SWITCH_FALSE, sql, profile->ireg_mutex);
 				switch_safe_free(sql);
 				sql = NULL;
@@ -1112,3 +1112,4 @@
 
 
 
+



More information about the Freeswitch-trunk mailing list