<p>Tzafrir Cohen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7787">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cdr: submit: fix logic of test for batch mode<br><br>ASTERISK-27539 #close<br><br>Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7<br>---<br>M main/cdr.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/87/7787/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/cdr.c b/main/cdr.c<br>index 0ec6ada..8acae60 100644<br>--- a/main/cdr.c<br>+++ b/main/cdr.c<br>@@ -4211,7 +4211,7 @@<br> <br> if (!ast_test_flag(&mod_cfg->general->settings, CDR_ENABLED)) {<br> ast_cli(a->fd, "Cannot submit CDR batch: CDR engine disabled.\n");<br>- } else if (ast_test_flag(&mod_cfg->general->settings, CDR_BATCHMODE)) {<br>+ } else if (!ast_test_flag(&mod_cfg->general->settings, CDR_BATCHMODE)) {<br> ast_cli(a->fd, "Cannot submit CDR batch: batch mode not enabled.\n");<br> } else {<br> submit_unscheduled_batch();<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7787">change 7787</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/7787"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I33cdf329d2bb4486dcae975c450f6aae94c515f7 </div>
<div style="display:none"> Gerrit-Change-Number: 7787 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen@xorcom.com> </div>