Merged revisions 24019 via svnmerge from
[asterisk/asterisk.git] / apps / app_mp3.c
index bfb0eb9..b5a3138 100644 (file)
@@ -45,6 +45,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include "asterisk/pbx.h"
 #include "asterisk/module.h"
 #include "asterisk/translate.h"
+#include "asterisk/options.h"
 
 #define LOCAL_MPG_123 "/usr/local/bin/mpg123"
 #define MPG_123 "/usr/bin/mpg123"
@@ -71,6 +72,8 @@ static int mp3play(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, STDOUT_FILENO);
        for (x=0;x<256;x++) {
                if (x != STDOUT_FILENO)