[OpenSIPS-Devel] [OpenSIPS/opensips] 4f4143: fraud_detection: Fix a bug causing negative CC/CPM

Liviu Chircu noreply at github.com
Tue Aug 18 06:46:22 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4f414366ee0fcc52fa2d18c59be0c5d753047934
      https://github.com/OpenSIPS/opensips/commit/4f414366ee0fcc52fa2d18c59be0c5d753047934
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M modules/fraud_detection/fraud_detection.c
    M modules/fraud_detection/frd_events.c
    M modules/fraud_detection/frd_events.h
    M modules/fraud_detection/frd_stats.c
    M modules/fraud_detection/frd_stats.h

  Log Message:
  -----------
  fraud_detection: Fix a bug causing negative CC/CPM

Following a reset of the statistics for a (user, dialed_number) pair,
skip any pending subtraction operations scheduled during a previous
interval (e.g. a dialog which started during fraud detection interval A
and ended in interval B should not decrement CC anymore if it has
already been reset to 0 in the meantime during a more recent
check_fraud() call).

Many thanks to Inderjeet Sharma (@inderjeetsharma) for reporting and
helping track down this bug.

Fixes #2079





More information about the Devel mailing list