mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-20 12:20:12 +00:00
Fix setting CDR variables in the hangup extension
A previous CDR fix for setting CDR variables during a bridge via custom dialplan features broke setting CDR variables in the hangup extension. This patch fixes the issue. Review: https://reviewboard.asterisk.org/r/1794/ ........ Merged revisions 358978 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 358989 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -462,6 +462,7 @@ static int my_load_module(int reload)
|
||||
if (reload) {
|
||||
AST_RWLIST_UNLOCK(&columns);
|
||||
}
|
||||
ast_config_destroy(cfg);
|
||||
return AST_MODULE_LOAD_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -502,6 +503,7 @@ static int my_load_module(int reload)
|
||||
if (reload) {
|
||||
AST_RWLIST_UNLOCK(&columns);
|
||||
}
|
||||
ast_config_destroy(cfg);
|
||||
return AST_MODULE_LOAD_FAILURE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user