Index: apps/app_zapras.c =================================================================== --- apps/app_zapras.c (revision 22316) +++ apps/app_zapras.c (working copy) @@ -96,6 +96,10 @@ /* Execute RAS on File handles */ dup2(chan->fds[0], STDIN_FILENO); + /* Drop high priority */ + if (option_highpriority) + ast_set_priority(0); + /* Close other file descriptors */ for (x=STDERR_FILENO + 1;x<1024;x++) close(x); Index: apps/app_festival.c =================================================================== --- apps/app_festival.c (revision 22316) +++ apps/app_festival.c (working copy) @@ -53,6 +53,7 @@ #include "asterisk/config.h" #include "asterisk/utils.h" #include "asterisk/lock.h" +#include "asterisk/options.h" #define FESTIVAL_CONFIG "festival.conf" @@ -136,6 +137,9 @@ if (x != fd) close(x); } + if (option_highpriority) + ast_set_priority(0); + /*IAS */ #ifdef __PPC__ for( x=0; xpid) { int x; + + if (option_highpriority) + ast_set_priority(0); + close(fds[0]); /* Stdout goes to pipe */ dup2(fds[1], STDOUT_FILENO);