]> 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)
committerKristian F. Høgh <kfh@uni-tel.dk>
Wed, 12 Nov 2025 21:57:58 +0000 (21:57 +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 94c808d508faa843108c80e47d96227353fa71bd..10ea569123f0e2f36daea077d9ff4519d2b33699 100644 (file)
@@ -9103,13 +9103,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;
+                               }
                        }
                }