[OpenSIPS-Devel] [OpenSIPS/opensips] d38c9d: [call_center] fix overflowing the per-agent array ...

Bogdan Andrei IANCU noreply at github.com
Thu May 4 10:31:48 UTC 2023

  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: d38c9dfe3dfc4354a9049edf6e6e96b2ed07b2b6
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M modules/call_center/call_center.c
    M modules/call_center/cc_data.c
    M modules/call_center/cc_data.h

  Log Message:
  [call_center] fix overflowing the per-agent array of skills

As the array of skills is pre-allocated inside the agent struct, be sure you do not overflow it when populating the agent's skills (from DB).
Also, the logstate/logged_in value for an agent is read from DB or MI and it must be forced to 0/1 values, as it is later used as index. Yet another overflow fixed here.

(cherry picked from commit 6617ecc805520961642c16ac1e6c5a49787af2ab)

More information about the Devel mailing list