]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix for MODAPP-51
authorMichael Jerris <mike@jerris.com>
Sat, 17 Nov 2007 04:10:35 +0000 (04:10 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 17 Nov 2007 04:10:35 +0000 (04:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6318 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c
src/mod/endpoints/mod_sofia/sofia_reg.c

index 94a7b94ba9caf68bbbcd88191946b168cb955452..f914c39cc77538097371ad42c4f160e5b4a228dd 100644 (file)
@@ -809,7 +809,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                                                         from_user,
                                                         from_host,
                                                         to_user,
-                                                        to_host, event, proto
+                                                        to_host, event
                                                         );
 
                assert(sql != NULL);
@@ -846,7 +846,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
 
                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 @@ void sofia_presence_set_chat_hash(private_object_t *tech_pvt, sip_t const *sip)
        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:
+ */
index 706cb7cbbc00ffb09bf7719bf655af414759ef09..e7f742591784665ba1fe5e05f4560a876e31b6bb 100644 (file)
@@ -542,7 +542,7 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han
                                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 @@ switch_status_t sofia_reg_add_gateway(char *key, sofia_gateway_t *gateway)
 
 
 
+