[OpenSIPS-Devel] [OpenSIPS/opensips] f1a412: acc: use the time in the message instead of gettin...

Răzvan Crainea noreply at github.com
Thu Mar 18 08:12:00 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f1a41269865061c201cbee14dab8e0bc34a06eca
      https://github.com/OpenSIPS/opensips/commit/f1a41269865061c201cbee14dab8e0bc34a06eca
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M modules/acc/acc.c
    M modules/acc/acc_logic.c

  Log Message:
  -----------
  acc: use the time in the message instead of getting it

This improves the accuracy of the CDRs, as the time of the message is
only fetched once and used by all the logic to compute different
durations


  Commit: d3d955fed105b549a064760bc52d6eca9455bdac
      https://github.com/OpenSIPS/opensips/commit/d3d955fed105b549a064760bc52d6eca9455bdac
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M modules/acc/Makefile
    M modules/acc/acc.c

  Log Message:
  -----------
  acc: improve the accuracy of CDRs duration in secs

Up until this commit, if a call's duration would have been T.56 ms, the
duration of the CDR might have been computed as Ts. This commit makes
sure that the number of seconds is always higher than the duration in ms
by ceil-ing the number of ms.


Compare: https://github.com/OpenSIPS/opensips/compare/a74ed14012b3...d3d955fed105



More information about the Devel mailing list