mirror of https://github.com/sipwise/mediator.git
The `cdr_index` variable already tracks the number of created CDRs, as
it points to the slot for the next CDR record to be inserted. It's
increased by one at the start of the processing loop, so if we end up
skipping over an entry after it's been increased, it must be decreased
again, which keeps the count intact and prevents empty CDR records from
being created.
Fix-up for Ia7e8446fe4953d1391f99ea1530990e3d385c056
Change-Id: Ibb650a4b00978a272ef8f60751f6efda0491a912
(cherry picked from commit 4ffa758826)
mr10.4.1
parent
683c99171c
commit
2d2cdd0b42
Loading…
Reference in new issue