[OpenSIPS-Devel] [OpenSIPS/opensips] de9875: cgrates: properly parse multiple jsons in buffer

Răzvan Crainea noreply at github.com
Tue Jun 23 07:43:38 EST 2020


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: de98752e8aa9243492843f77495b7645a80d0e3c
      https://github.com/OpenSIPS/opensips/commit/de98752e8aa9243492843f77495b7645a80d0e3c
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2020-06-23 (Tue, 23 Jun 2020)

  Changed paths:
    M modules/cgrates/cgrates_common.c

  Log Message:
  -----------
  cgrates: properly parse multiple jsons in buffer

When CGRateS has issues multiple SessionSv1.GetActiveSessionIDs requests
to OpenSIPS in parallel, some of them get merged in a single buffer -
thus we need to treat this case by advancing the json buffer properly.

Credits go to @vtzan for reporting this and for offering detailed
explanations in ticket #2103.

(cherry picked from commit d105f2007bae37dde077feab9c804900d9ea0f7a)





More information about the Devel mailing list