Naveen Albert
0a46be95cb
res_tonedetect: Add option for TONE_DETECT detection to auto stop.
...
One of the problems with TONE_DETECT as it was originally written
is that if a tone is detected multiple times, it can trigger
the redirect logic multiple times as well. For example, if we
do an async goto in the dialplan after detecting a tone, because
the detector is still active until explicitly disabled, if we
detect the tone again, we will branch again and start executing
that dialplan a second time. This is rarely ever desired behavior,
and can happen if the detector is not removed quickly enough.
Add a new option, 'e', which automatically disables the detector
once the desired number of matches have been heard. This eliminates
the potential race condition where previously the detector would
need to be disabled immediately, but doing so quickly enough
was not guaranteed. This also allows match criteria to be retained
longer if needed, so the detector does not need to be destroyed
prematurely.
Resolves : #1390
UserNote: The 'e' option for TONE_DETECT now allows detection to
be disabled automatically once the desired number of matches have
been fulfilled, which can help prevent race conditions in the
dialplan, since TONE_DETECT does not need to be disabled after
a hit.
2025-09-03 14:23:45 +00:00
..
2023-04-03 07:58:23 -05:00
2025-08-18 16:29:53 +00:00
2025-01-29 14:18:25 +00:00
2024-03-21 18:55:23 +00:00
2023-01-31 11:23:11 -06:00
2025-01-29 14:18:25 +00:00
2025-07-30 16:04:01 +00:00
2024-02-28 18:39:03 +00:00
2025-07-31 08:39:06 -06:00
2023-01-10 14:07:44 -06:00
2025-08-18 16:29:53 +00:00
2022-03-23 18:08:17 -05:00
2025-08-06 15:40:02 +00:00
2022-12-08 11:19:07 -06:00
2025-01-29 14:18:25 +00:00
2022-04-26 14:26:48 -05:00
2025-07-22 17:39:43 +00:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2025-02-20 18:34:33 +00:00
2025-08-18 16:29:53 +00:00
2021-11-18 16:25:51 -06:00
2023-08-09 15:10:46 +00: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-05-20 13:23:01 +00:00
2020-01-14 09:36:44 -06:00
2024-06-07 16:24:30 +00:00
2019-10-24 09:18:38 -05:00
2019-10-24 09:18:38 -05:00
2024-01-23 18:18:56 +00:00
2025-01-29 14:18:25 +00:00
2021-12-03 10:38:39 -06:00
2024-02-12 18:46:32 +00:00
2022-07-08 09:28:23 -05:00
2025-03-18 14:28:02 +00:00
2021-12-03 10:38:39 -06:00
2025-07-30 15:38:31 +00:00
2025-02-11 23:34:45 +00:00
2022-08-01 11:06:37 -05:00
2021-11-15 16:37:34 -06:00
2023-06-12 17:20:31 +00:00
2023-06-12 17:19:28 +00:00
2025-01-29 14:18:25 +00:00
2021-03-10 04:22:36 -06:00
2021-03-10 04:22:36 -06:00
2021-06-10 16:30:28 -05:00
2021-03-10 04:22:36 -06:00
2021-03-10 04:22:36 -06:00
2021-03-10 04:22:36 -06:00
2021-03-10 04:22:36 -06:00
2021-03-10 04:22:36 -06:00
2022-07-12 07:52:12 -05:00
2022-07-12 07:52:12 -05:00
2020-11-20 13:51:02 -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-07-09 17:42:22 +00:00
2025-01-29 14:18:25 +00:00
2025-01-29 14:18:25 +00:00
2025-08-11 13:52:30 +00:00
2025-01-29 14:18:25 +00:00
2019-04-23 17:40:15 -05: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-06-11 13:00:44 +00:00
2025-01-29 14:18:25 +00:00
2025-07-10 14:47:38 +00:00
2025-04-21 14:46:02 +00:00
2025-01-29 14:18:25 +00:00
2022-12-13 10:52:10 -06:00
2025-08-28 14:19:49 +00:00
2025-04-30 12:47:39 +00:00
2024-07-24 19:21:14 +00:00
2022-09-13 04:51:10 -05:00
2025-08-11 13:58:11 +00:00
2023-01-03 09:00:42 -06:00
2023-10-27 15:52:44 +00:00
2020-04-20 11:03:26 -05:00
2022-09-13 04:51:10 -05:00
2025-01-29 14:18:25 +00:00
2023-10-20 12:18:59 +00:00
2023-10-20 12:39:09 +00:00
2022-09-26 15:04:44 -05:00
2025-01-29 14:18:25 +00:00
2022-03-24 12:00:58 -05:00
2024-08-20 13:35:12 +00:00
2025-05-22 14:24:35 +00:00
2025-07-30 16:04:01 +00:00
2025-05-13 16:48:07 +00:00
2025-01-29 14:18:25 +00:00
2020-04-20 11:03:26 -05:00
2025-01-10 16:21:24 +00:00
2025-01-29 14:18:25 +00:00
2025-03-07 16:53:19 +00:00
2024-07-10 17:02:12 +00:00
2025-01-29 14:18:25 +00:00
2020-12-16 08:01:11 -06:00
2025-01-29 14:18:25 +00:00
2025-07-30 16:04:01 +00:00
2025-02-11 22:05:28 +00:00
2025-03-07 16:53:19 +00:00
2023-06-21 13:25:00 +00:00
2023-05-02 09:18:42 -06:00
2024-11-13 16:06:55 +00:00
2024-03-19 20:20:39 +00:00
2024-02-28 18:39:03 +00:00
2025-06-18 15:26:47 +00:00
2024-01-30 19:06:40 +00:00
2023-09-21 14:47:58 +00:00
2024-11-13 14:18:31 +00:00
2022-01-17 08:25:58 -06:00
2025-01-29 14:18:25 +00:00
2019-05-20 20:33:58 -05:00
2020-01-14 10:07:20 -06:00
2021-03-16 10:30:43 -05:00
2025-01-29 14:18:25 +00:00
2025-08-14 15:22:26 +00:00
2025-01-29 14:18:25 +00:00
2025-08-27 16:56:19 +00:00
2021-11-15 16:37:34 -06:00
2025-01-13 17:08:24 +00:00
2025-08-27 16:56:19 +00:00
2025-08-27 16:56:19 +00:00
2023-10-05 10:42:18 -06:00
2024-02-12 18:46:32 +00:00
2025-08-06 15:40:02 +00:00
2025-08-18 14:53:23 +00:00
2021-11-15 16:37:34 -06:00
2023-09-13 17:34:37 +00:00
2023-01-30 08:28:33 -06:00
2025-04-21 13:29:33 +00:00
2025-01-29 14:18:25 +00:00
2024-09-17 16:15:30 +00:00
2020-06-08 10:50:16 -05:00
2021-12-03 10:38:39 -06:00
2023-12-08 13:11:54 +00:00
2024-10-01 14:22:53 +00:00
2025-09-03 14:23:45 +00:00
2025-08-20 15:33:44 +00:00
2025-06-02 15:15:15 +00:00
2025-01-29 14:18:25 +00:00
2024-11-04 15:12:42 +00:00