提交 5708d0b6 authored 作者: Anthony Minessale's avatar Anthony Minessale

remove stuff from the db on unload

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9351 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 adcd836b
......@@ -355,6 +355,15 @@ static void core_event_handler(switch_event_t *event)
}
break;
}
case SWITCH_EVENT_MODULE_UNLOAD:
{
const char *type = switch_event_get_header_nil(event, "type");
const char *name = switch_event_get_header_nil(event, "name");
if (!switch_strlen_zero(type) && !switch_strlen_zero(name)) {
sql = switch_mprintf("delete from interfaces where type='%q' and name='%q'", type, name);
}
break;
}
default:
break;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论