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

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


A NOTE has been added to this issue. 
====================================================================== 
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:                     closed
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:49 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0101147) svnbot (reporter) - 2009-03-03 16:49
 http://bugs.digium.com/view.php?id=14227#c101147 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 180007

_U  trunk/
U   trunk/apps/app_queue.c
U   trunk/configs/queues.conf.sample

------------------------------------------------------------------------
r180007 | mmichelson | 2009-03-03 16:49:08 -0600 (Tue, 03 Mar 2009) | 22
lines

Merged revisions 180006 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  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=180007 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-03 16:49 svnbot         Checkin                                      
2009-03-03 16:49 svnbot         Note Added: 0101147                          
======================================================================




More information about the asterisk-bugs mailing list