mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 12:28:27 +00:00
Cleanup frame on exit.
* Cleanup CLI commands on exit.
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
frame-cleanup-1_8-only.patch (license #5909) patch uploaded by Corey Farrell
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@377712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -987,9 +987,15 @@ static struct ast_cli_entry my_clis[] = {
|
||||
AST_CLI_DEFINE(show_codec_n, "Shows a specific codec"),
|
||||
};
|
||||
|
||||
static void framer_shutdown(void)
|
||||
{
|
||||
ast_cli_unregister_multiple(my_clis, ARRAY_LEN(my_clis));
|
||||
}
|
||||
|
||||
int init_framer(void)
|
||||
{
|
||||
ast_cli_register_multiple(my_clis, ARRAY_LEN(my_clis));
|
||||
ast_register_atexit(framer_shutdown);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user