[Home]

Summary:ASTERISK-02411: [patch] channel.c 'timeleft' uses non-existant sound files
Reporter:drmac (drmac)Labels:
Date Opened:2004-09-15 09:53:34Date Closed:2008-01-15 15:07:31.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) use-queue-sound.patch.txt
Description:I just started using the L option in Dial. * showed that it could not find sound file "seconds" nor "minutes". I verified that these files did in fact not exist as those names. Found they existed as "queue-minutes" and "queue-seconds" This patch simply changes 2 lines in channel.c.

****** ADDITIONAL INFORMATION ******

===================================================================
RCS file: /usr/cvsroot/asterisk/channel.c,v
retrieving revision 1.138
diff -u -r1.138 channel.c
--- channel.c   4 Sep 2004 01:06:42 -0000       1.138
+++ channel.c   15 Sep 2004 14:45:50 -0000
@@ -2478,12 +2478,12 @@
               res = ast_waitstream(chan, "");
               if (min) {
                       res = ast_say_number(chan, min, AST_DIGIT_ANY, chan->language, (char *) NULL);
-                       res = ast_streamfile(chan, "minutes", chan->language);
+                       res = ast_streamfile(chan, "queue-minutes", chan->language);
                       res = ast_waitstream(chan, "");
               }
               if (sec) {
                       res = ast_say_number(chan, sec, AST_DIGIT_ANY, chan->language, (char *) NULL);
-                       res = ast_streamfile(chan, "seconds", chan->language);
+                       res = ast_streamfile(chan, "queue-seconds", chan->language);
                       res = ast_waitstream(chan, "");
               }
       } else {
Comments:By: Mark Spencer (markster) 2004-09-15 10:15:51

The patch didn't apply, but I just made the changes manually and they're in CVS.  Incidently, the sounds *are* included in asterisk-sounds separately, but it is definitely better to use the ones in Asterisk.

By: Digium Subversion (svnbot) 2008-01-15 15:07:31.000-0600

Repository: asterisk
Revision: 3783

U   trunk/channel.c

------------------------------------------------------------------------
r3783 | markster | 2008-01-15 15:07:31 -0600 (Tue, 15 Jan 2008) | 2 lines

Use file that is in Asterisk rather than asterisk-sounds (bug ASTERISK-2411)

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

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