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

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


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d525ca899b5d612f5bfad5e0dbea4b36d135b5bf
      https://github.com/OpenSIPS/opensips/commit/d525ca899b5d612f5bfad5e0dbea4b36d135b5bf
  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