[OpenSIPS-Devel] [OpenSIPS/opensips] 6617ec: [call_center] fix overflowing the per-agent array ...
Bogdan Andrei IANCU
noreply at github.com
Thu May 4 10:29:15 UTC 2023
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 6617ecc805520961642c16ac1e6c5a49787af2ab
https://github.com/OpenSIPS/opensips/commit/6617ecc805520961642c16ac1e6c5a49787af2ab
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.
More information about the Devel
mailing list