Index: apps/app_festival.c =================================================================== --- apps/app_festival.c (revision 12343) +++ apps/app_festival.c (working copy) @@ -335,6 +335,35 @@ } if (!(festivalcommand = ast_variable_retrieve(cfg, "general", "festivalcommand"))) { festivalcommand = "(tts_textasterisk \"%s\" 'file)(quit)\n"; + } else { /* This else parses the festivalcommand that we're sent from the config file for \n's, etc */ + char newfestivalcommand[strlen(festivalcommand)]; + int i, j = 0, escapedstate = 0; + for(i=0;i