* 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
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;
}