]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak on last commit
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Aug 2010 19:17:59 +0000 (14:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 20 Aug 2010 19:18:08 +0000 (14:18 -0500)
src/switch_core_sqldb.c

index 856cc668b30fd912e5ab18a88392206cff4eef76..feb92b3c803de50eb66ac3f90e17dcb4e5c86d80 100644 (file)
@@ -1060,8 +1060,8 @@ static void core_event_handler(switch_event_t *event)
                                new_sql() = switch_mprintf("delete from channels where uuid='%q' and hostname='%q'",
                                                                                   uuid, switch_core_get_variable("hostname"));
                                if (switch_true(sig)) {
-                                       new_sql() = switch_mprintf("delete from calls where caller_uuid='%q' and hostname='%q'",
-                                                                                          uuid, switch_core_get_variable("hostname"));
+                                       new_sql() = switch_mprintf("delete from calls where (caller_uuid='%q' || callee_uuid='%q') and hostname='%q'",
+                                                                                          uuid, uuid, switch_core_get_variable("hostname"));
                                }
                        }
                }