[OpenSIPS-Devel] [OpenSIPS/opensips] 6128df: fraud_detection: Fix the 'call duration' events
    Liviu Chircu 
    noreply at github.com
       
    Thu Feb 10 13:42:01 UTC 2022
    
    
  
  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 6128df70d334fa1fd4e808f8fcef1fc549d040bd
      https://github.com/OpenSIPS/opensips/commit/6128df70d334fa1fd4e808f8fcef1fc549d040bd
  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