Files
asterisk/main
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
..
2025-02-20 21:46:35 +00:00
2021-11-15 17:33:27 -06:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2023-12-08 13:11:54 +00:00
2025-02-20 21:46:35 +00:00
2023-12-08 13:11:54 +00:00
2025-02-20 21:46:35 +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
2025-02-20 21:46:35 +00:00
2025-01-16 15:32:54 +00:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2025-01-29 14:18:25 +00:00
2025-07-09 17:42:22 +00:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2021-12-02 15:02:09 -06:00
2022-07-07 08:19:14 -05:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2023-01-10 14:07:44 -06:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2024-08-12 15:21:35 +00:00
2025-01-29 14:18:25 +00:00
2021-12-02 15:02:09 -06:00
2021-11-15 17:33:27 -06:00
2021-11-15 17:33:27 -06:00
2025-04-21 13:29:33 +00:00
2021-12-02 15:02:09 -06:00
2025-04-02 12:16:41 +00:00
2025-02-20 21:46:35 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-05-07 16:47:06 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-04-21 13:29:33 +00:00
2021-12-02 15:02:09 -06:00
2025-02-20 21:46:35 +00:00
2021-12-02 15:02:09 -06:00
2025-01-29 14:18:25 +00:00
2025-02-20 21:46:35 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2025-01-29 14:18:25 +00:00
2025-02-20 21:46:35 +00:00
2025-01-29 14:18:25 +00:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2025-01-29 14:18:25 +00:00
2021-12-02 15:02:09 -06:00
2021-11-15 17:33:27 -06:00
2021-12-02 15:02:09 -06:00
2021-11-18 14:46:42 -06:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-02-20 21:46:35 +00:00
2025-06-02 16:35:34 +00:00
2025-02-20 21:46:35 +00:00
2021-12-02 15:02:09 -06:00
2021-12-02 15:02:09 -06:00
2022-03-24 12:00:58 -05:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00
2021-12-02 15:02:09 -06:00
2025-02-20 21:46:35 +00:00
2025-02-20 21:46:35 +00:00