[asterisk-bugs] [Asterisk 0014227]: queue-thankyou should be played only if needed

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Mar 3 16:48:19 CST 2009


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14227 
====================================================================== 
Reported By:                caspy
Assigned To:                mmichelson
====================================================================== 
Project:                    Asterisk
Issue ID:                   14227
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     resolved
Target Version:             1.6.2
Asterisk Version:           1.6.0.3-rc1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-13 07:27 CST
Last Modified:              2009-03-03 16:48 CST
====================================================================== 
Summary:                    queue-thankyou should be played only if needed
Description: 
In say_position() in app_queue.c there is a command to play
'queue-thankyou' sound:
  res = play_file(qe->chan, qe->parent->sound_thanks);

This sound is played unconditionally, but should be played only in case if
position or holdtime was played.
Current code is generating 'queue-thankyou' without anything else, for
example, in case of position turned off + holdtime turned on, and hold time
less than a 1 minute.
====================================================================== 

---------------------------------------------------------------------- 
 (0101146) svnbot (reporter) - 2009-03-03 16:48
 http://bugs.digium.com/view.php?id=14227#c101146 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 180006

U   branches/1.4/apps/app_queue.c
U   branches/1.4/configs/queues.conf.sample

------------------------------------------------------------------------
r180006 | mmichelson | 2009-03-03 16:48:18 -0600 (Tue, 03 Mar 2009) | 17
lines

Clarify some documentation of queues.conf.sample

It had always been possible to explicitly specify a "blank"
value for a sound file in queues.conf and have no sound played
back. The problem with this is that it would result in some ugly
CLI warnings from file.c.

This commit introduces a check when playing a file in app_queue
to see if the name of the file is zero-length and return early if
that is the case. Also, the ability to specify the blank sound
files in queues.conf is now mentioned more clearly in queues.conf.sample

(closes issue http://bugs.digium.com/view.php?id=14227)
Reported by: caspy



------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=180006 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-03 16:48 svnbot         Note Added: 0101146                          
2009-03-03 16:48 svnbot         Status                   assigned => resolved
2009-03-03 16:48 svnbot         Resolution               reopened => fixed   
======================================================================




More information about the asterisk-bugs mailing list