Files
asterisk/res
Alexei Gradinari d676259dbb 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
(cherry picked from commit df7fa2d1fd)
2025-09-10 19:55:23 +00:00
..
2023-04-03 07:58:23 -05:00
2025-03-20 18:29:20 +00:00
2023-01-31 11:23:11 -06:00
2024-03-07 14:18:41 +00:00
2023-01-10 14:07:44 -06:00
2025-05-01 12:41:16 +00:00
2025-03-20 18:29:20 +00:00
2021-11-18 16:25:51 -06:00
2025-05-01 12:41:16 +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-26 12:15:05 -06:00
2025-03-20 18:29:20 +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-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:29:20 +00:00
2021-12-03 10:38:39 -06:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2025-03-20 18:29:20 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:29:20 +00:00
2021-12-03 10:38:39 -06:00
2024-01-12 18:32:13 +00:00
2025-03-20 18:29:20 +00:00