提交 83dea0ee authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3024

上级 10d696eb
...@@ -1409,9 +1409,13 @@ static void core_event_handler(switch_event_t *event) ...@@ -1409,9 +1409,13 @@ static void core_event_handler(switch_event_t *event)
} }
break; break;
case SWITCH_EVENT_CHANNEL_UNBRIDGE: case SWITCH_EVENT_CHANNEL_UNBRIDGE:
new_sql() = switch_mprintf("delete from calls where (caller_uuid='%s' or callee_uuid='%q') and hostname='%q'", {
switch_event_get_header_nil(event, "caller-unique-id"), switch_core_get_variable("hostname")); char *uuid = switch_event_get_header_nil(event, "caller-unique-id");
break;
new_sql() = switch_mprintf("delete from calls where (caller_uuid='%q' or callee_uuid='%q') and hostname='%q'",
uuid, uuid, switch_core_get_variable("hostname"));
break;
}
case SWITCH_EVENT_SHUTDOWN: case SWITCH_EVENT_SHUTDOWN:
new_sql() = switch_mprintf("delete from channels where hostname='%q';" new_sql() = switch_mprintf("delete from channels where hostname='%q';"
"delete from interfaces where hostname='%q';" "delete from interfaces where hostname='%q';"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论