Files
asterisk/include/asterisk
Alexei Gradinari 9e3ea1c8ac 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:25 +00:00
..
2021-11-16 05:59:44 -06:00
2023-08-09 15:10:39 +00:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2025-06-02 16:35:27 +00:00
2024-02-28 18:38:58 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2024-08-12 15:21:31 +00:00
2024-08-12 15:21:31 +00:00
2025-05-07 16:48:16 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-31 12:59:16 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-09-10 11:08:11 -05:00
2023-04-10 14:39:05 -05:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 16:13:18 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-04-21 13:29:27 +00:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2025-04-02 12:16:35 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-04-21 13:29:27 +00:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 16:59:26 -06:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2021-11-16 05:59:44 -06:00
2021-11-16 05:59:44 -06:00
2023-01-31 12:59:16 -06:00
2023-01-31 12:59:16 -06:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00
2021-11-19 02:50:36 -06:00
2021-12-03 10:38:39 -06:00
2021-12-03 10:38:39 -06:00
2021-11-16 05:59:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-11-18 14:46:42 -06:00
2021-12-03 10:38:39 -06:00
2021-12-02 15:02:09 -06:00
2022-05-09 08:21:45 -05:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-13 08:57:26 -06:00
2021-12-02 15:02:09 -06:00
2023-01-31 12:59:16 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2018-06-23 08:26:19 +02:00
2025-06-02 16:35:27 +00:00
2023-01-31 12:59:16 -06:00