Merged revisions 24019 via svnmerge from
[asterisk/asterisk.git] / apps / app_ices.c
index 3a8130a..9558f02 100644 (file)
@@ -46,6 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/pbx.h"
 #include "asterisk/module.h"
 #include "asterisk/translate.h"
+#include "asterisk/options.h"
 
 #define ICES "/usr/bin/ices"
 #define LOCAL_ICES "/usr/local/bin/ices"
@@ -70,6 +71,8 @@ static int icesencode(char *filename, int fd)
                ast_log(LOG_WARNING, "Fork failed\n");
        if (res)
                return res;
+       if (ast_opt_high_priority)
+               ast_set_priority(0);
        dup2(fd, STDIN_FILENO);
        for (x=STDERR_FILENO + 1;x<256;x++) {
                if ((x != STDIN_FILENO) && (x != STDOUT_FILENO))