Merged revisions 24019 via svnmerge from
[asterisk/asterisk.git] / apps / app_festival.c
index f06cbae..223aca5 100644 (file)
@@ -55,6 +55,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/config.h"
 #include "asterisk/utils.h"
 #include "asterisk/lock.h"
+#include "asterisk/options.h"
 
 #define FESTIVAL_CONFIG "festival.conf"
 
@@ -140,6 +141,9 @@ static int send_waveform_to_fd(char *waveform, int length, int fd) {
                 if (x != fd)
                         close(x);
         }
+       if (ast_opt_high_priority)
+               ast_set_priority(0);
+
 /*IAS */
 #ifdef __PPC__  
        for( x=0; x<length; x+=2)