mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Prevent CDR backends from unregistering while billing data is in flight
This patch makes it so that CDR backends cannot be unregistered while active CDR records exist. This helps to prevent billing data from being lost during restarts and shutdowns. Review: https://reviewboard.asterisk.org/r/2880/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@402081 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -503,8 +503,27 @@ int ast_cdr_register(const char *name, const char *desc, ast_cdrbe be);
|
||||
* \brief Unregister a CDR handling engine
|
||||
* \param name name of CDR handler to unregister
|
||||
* Unregisters a CDR by it's name
|
||||
*
|
||||
* \retval 0 The backend unregistered successfully
|
||||
* \retval -1 The backend could not be unregistered at this time
|
||||
*/
|
||||
void ast_cdr_unregister(const char *name);
|
||||
int ast_cdr_unregister(const char *name);
|
||||
|
||||
/*!
|
||||
* \brief Suspend a CDR backend temporarily
|
||||
*
|
||||
* \retval 0 The backend is suspdended
|
||||
* \retval -1 The backend could not be suspended
|
||||
*/
|
||||
int ast_cdr_backend_suspend(const char *name);
|
||||
|
||||
/*!
|
||||
* \brief Unsuspend a CDR backend
|
||||
*
|
||||
* \retval 0 The backend was unsuspended
|
||||
* \retval -1 The back could not be unsuspended
|
||||
*/
|
||||
int ast_cdr_backend_unsuspend(const char *name);
|
||||
|
||||
/*!
|
||||
* \brief Disposition to a string
|
||||
|
Reference in New Issue
Block a user