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

Răzvan Crainea noreply at github.com
Wed Jun 17 09:16:42 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d105f2007bae37dde077feab9c804900d9ea0f7a
      https://github.com/OpenSIPS/opensips/commit/d105f2007bae37dde077feab9c804900d9ea0f7a
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2020-06-17 (Wed, 17 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.





More information about the Devel mailing list