[OpenSIPS-Devel] [OpenSIPS/opensips] 977b92: fraud_detection: Fix the 'call duration' events

Liviu Chircu noreply at github.com
Thu Feb 10 13:42:35 UTC 2022


  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 977b921a7f66c6c56fb9c438b6bc29d9034391be
      https://github.com/OpenSIPS/opensips/commit/977b921a7f66c6c56fb9c438b6bc29d9034391be
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

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

  Log Message:
  -----------
  fraud_detection: Fix the 'call duration' events

The 'call duration' events were not being raised anymore since commit
a0fcf857ddb, due to the mismatching callback type check in
dialog_terminate_CB().

Also rework commit a0fcf857ddb, where instead of switching the
decrement operation on the DLGCB_DESTROY callback (to guarantee it only
gets called one time), we just store and use a boolean marker, thus
achieving the same effect but while using the optimal callbacks!

(cherry picked from commit 7aa272aec749702627404c0d518b4b4fada5ec93)





More information about the Devel mailing list