mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Fix load of cdr_custom
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5314 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -126,10 +126,9 @@ int unload_module(void)
|
|||||||
|
|
||||||
int load_module(void)
|
int load_module(void)
|
||||||
{
|
{
|
||||||
int res;
|
int res = 0;
|
||||||
|
|
||||||
res = load_config(0);
|
if (!load_config(0)) {
|
||||||
if (!res) {
|
|
||||||
res = ast_cdr_register(name, desc, custom_log);
|
res = ast_cdr_register(name, desc, custom_log);
|
||||||
if (res)
|
if (res)
|
||||||
ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");
|
ast_log(LOG_ERROR, "Unable to register custom CDR handling\n");
|
||||||
|
Reference in New Issue
Block a user