mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
cdr: submit: fix logic of test for batch mode
ASTERISK-27539 #close Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7
This commit is contained in:
@@ -4211,7 +4211,7 @@ static char *handle_cli_submit(struct ast_cli_entry *e, int cmd, struct ast_cli_
|
||||
|
||||
if (!ast_test_flag(&mod_cfg->general->settings, CDR_ENABLED)) {
|
||||
ast_cli(a->fd, "Cannot submit CDR batch: CDR engine disabled.\n");
|
||||
} else if (ast_test_flag(&mod_cfg->general->settings, CDR_BATCHMODE)) {
|
||||
} else if (!ast_test_flag(&mod_cfg->general->settings, CDR_BATCHMODE)) {
|
||||
ast_cli(a->fd, "Cannot submit CDR batch: batch mode not enabled.\n");
|
||||
} else {
|
||||
submit_unscheduled_batch();
|
||||
|
Reference in New Issue
Block a user