From: Anthony Minessale Date: Fri, 20 Aug 2010 19:17:59 +0000 (-0500) Subject: tweak on last commit X-Git-Tag: v1.2-rc1~496 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84c2d80964a8d5a80877d0030176cc7c8a573856;p=thirdparty%2Ffreeswitch.git tweak on last commit --- diff --git a/src/switch_core_sqldb.c b/src/switch_core_sqldb.c index 856cc668b3..feb92b3c80 100644 --- a/src/switch_core_sqldb.c +++ b/src/switch_core_sqldb.c @@ -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")); } } }