* Update asterisk.h to reflect availability of ast_register_cleanup in 11.9.
* Use ast_register_cleanup for format_attr_shutdown.
(closes issue ASTERISK-23103)
Reported by: JoshE
........
Merged revisions 411310 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 411311 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@411312
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
int ast_register_atexit(void (*func)(void));
/*!
- * \since 12
+ * \since 11.9
* \brief Register a function to be executed before Asterisk gracefully exits.
*
* If Asterisk is immediately shutdown (core stop now, or sending the TERM
}
ast_cli_register_multiple(my_clis, ARRAY_LEN(my_clis));
- ast_register_atexit(format_attr_shutdown);
+ ast_register_cleanup(format_attr_shutdown);
return 0;
}