提交 84c2d809 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak on last commit

上级 072bf5ad
......@@ -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"));
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论