[OpenSIPS-Devel] [OpenSIPS/opensips] 35a614: fraud_detection: Improve accuracy for 'concurrent ...

Liviu Chircu noreply at github.com
Mon Aug 3 14:46:13 EST 2020


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 35a6146754f955a1650328fc32d98f42255619c8
      https://github.com/OpenSIPS/opensips/commit/35a6146754f955a1650328fc32d98f42255619c8
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-08-03 (Mon, 03 Aug 2020)

  Changed paths:
    M modules/dialog/dlg_cb.h
    M modules/fraud_detection/fraud_detection.c

  Log Message:
  -----------
  fraud_detection: Improve accuracy for 'concurrent calls'

Avoid using the DLGCB_FAILED callback, since it has no protection
against the "408 Request Timeout / 200 OK" race condition, and simply
use DLGCB_DESTROY in order to decrement the concurrent calls counter.

This fixes a bug where a "408 Timeout / 200 OK" call would cause a
concurrent calls value of 4294967295, due to an extra decrement.

Fixes #2079





More information about the Devel mailing list