]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
app_queue.c: Only announce to head caller if announce_to_first_user
authorKristian F. Høgh <kfh@uni-tel.dk>
Thu, 30 Oct 2025 13:43:37 +0000 (14:43 +0100)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 12 Nov 2025 21:58:04 +0000 (21:58 +0000)
Only make announcements to head caller if announce_to_first_user is true

Fixes: #1568
UserNote: When announce_to_first_user is false, no announcements are played to the head caller

apps/app_queue.c

index 954fe64bf02115b3454ec0fac05ff0ec1f93d6c9..e6d4067ea8a7209ae7cba6016c7e3bcd8e82789e 100644 (file)
@@ -8972,13 +8972,12 @@ check_turns:
                                        goto stop;
                                }
                        }
-               }
-               makeannouncement = 1;
 
-               /* Make a periodic announcement, if enabled */
-               if (qe.parent->periodicannouncefrequency) {
-                       if ((res = say_periodic_announcement(&qe, ringing))) {
-                               goto stop;
+                       /* Make a periodic announcement, if enabled */
+                       if (qe.parent->periodicannouncefrequency) {
+                               if ((res = say_periodic_announcement(&qe, ringing))) {
+                                       goto stop;
+                               }
                        }
                }