[OpenSIPS-Devel] [OpenSIPS/opensips] ea7589: cgrates: fix timeout precision loss when MaxUsage ...

Răzvan Crainea noreply at github.com
Thu Mar 25 15:28:25 EST 2021


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

  Changed paths:
    M modules/cgrates/cgrates_acc.c

  Log Message:
  -----------
  cgrates: fix timeout precision loss when MaxUsage is in ns

Converting the MaxUsage from nanoseconds to int was causing an overflow,
setting the dialog timeout to 0, thus terminating the call immedately
after the 200 OK was received.

Reported by Adolphe Cher-Aime (@acheraime)

(cherry picked from commit 3f964878b0f9585934c769bfe3f3c184a186cde7)





More information about the Devel mailing list