Files
asterisk/res
Alexei Gradinari 3e178dcfd6 res_config_odbc: Prevent Realtime fallback on record-not-found (SQL_NO_DATA)
This patch fixes an issue in the ODBC Realtime engine where Asterisk incorrectly
falls back to the next configured backend when the current one returns
SQL_NO_DATA (i.e., no record found).
This is a logical error and performance risk in multi-backend configurations.

Solution:
Introduced CONFIG_RT_NOT_FOUND ((void *)-1) as a special return marker.
ODBC Realtime backend now return CONFIG_RT_NOT_FOUND when no data is found.
Core engine stops iterating on this marker, avoiding unnecessary fallback.

Notes:
Other Realtime backends (PostgreSQL, LDAP, etc.) can be updated similarly.
This patch only covers ODBC.

Fixes: #1305
2025-07-30 15:38:31 +00:00
..
2023-04-03 07:58:23 -05:00
2025-01-29 14:18:25 +00:00
2023-01-31 11:23:11 -06:00
2024-02-28 18:39:03 +00:00
2023-01-10 14:07:44 -06:00
2025-04-02 12:16:41 +00:00
2025-01-29 14:18:25 +00:00
2021-11-18 16:25:51 -06:00
2025-04-02 12:16:41 +00:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2025-06-02 16:35:34 +00:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:54 +00:00
2025-01-29 14:18:25 +00:00