[asterisk-bugs] [Asterisk 0006681]: [patch][post 1.4] Random Periodic Announcements in app_queue

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Mar 18 13:48:46 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=6681 
====================================================================== 
Reported By:                alt_phil
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   6681
Category:                   Applications/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:             Yes 
====================================================================== 
Date Submitted:             03-08-2006 13:33 CST
Last Modified:              03-18-2008 13:48 CDT
====================================================================== 
Summary:                    [patch][post 1.4] Random Periodic Announcements in
app_queue
Description: 
Just wanted to submit this little addition to Periodic Announcements while
on hold.
This patch allows you to specify a directory instead of a file for
periodic-announce in queues.conf.
Doing so will randomly choose and play a file in that directory, however
often is specified with periodic-announce-frequency.  A different random
file from that directory is played each time.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
child of            0006776 [patch] does not goto context in queues...
====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 03-18-08 13:48  
---------------------------------------------------------------------- 
All right, after a long discussion, I have implemented this feature, though
admittedly quite differently than was originally done.

Here's the deal:

Since periodic-announce already allows you to specify a comma-separated
list of announcements, it only makes sense to allow for these messages to
be played randomly or sequentially (currently only sequential playback is
allowed). Doing things this way makes for the easiest set of changes to the
code, allows for the use of language-specific sound files to be played, and
is a very inexpensive operation to perform.

Expect a commit soon. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-18-08 13:48  putnopvut      Note Added: 0084160                          
======================================================================




More information about the asterisk-bugs mailing list