Files
asterisk/res
Alexei Gradinari 5bdc661745 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 dfe25fbc8a)
2025-09-17 11:40:37 -06:00
..
2023-04-03 07:58:23 -05:00
2025-03-20 18:34:07 +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-05-01 12:44:58 +00:00
2025-03-20 18:34:07 +00:00
2021-11-18 16:25:51 -06:00
2025-05-01 12:44:58 +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-09-17 11:40:15 -06:00
2025-03-20 18:34:07 +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:34:07 +00:00
2025-03-20 18:34:07 +00:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:34:07 +00:00
2021-12-03 10:38:39 -06:00
2025-03-20 18:34:07 +00:00
2025-03-20 18:34:07 +00:00
2025-03-20 18:34:07 +00:00
2025-03-20 18:34:07 +00:00
2025-03-20 18:34:07 +00:00
2025-03-20 18:34:07 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:34:07 +00:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:54 +00:00
2025-03-20 18:34:07 +00:00