[Asterisk-code-review] cdr: submit: fix logic of test for batch mode (asterisk[15])
Tzafrir Cohen
asteriskteam at digium.com
Tue Jan 2 09:18:39 CST 2018
Tzafrir Cohen has uploaded this change for review. ( https://gerrit.asterisk.org/7787
Change subject: cdr: submit: fix logic of test for batch mode
......................................................................
cdr: submit: fix logic of test for batch mode
ASTERISK-27539 #close
Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7
---
M main/cdr.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/7787/1
diff --git a/main/cdr.c b/main/cdr.c
index 0ec6ada..8acae60 100644
--- a/main/cdr.c
+++ b/main/cdr.c
@@ -4211,7 +4211,7 @@
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();
--
To view, visit https://gerrit.asterisk.org/7787
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7
Gerrit-Change-Number: 7787
Gerrit-PatchSet: 1
Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180102/767fa2b3/attachment-0001.html>
More information about the asterisk-code-review
mailing list