diff -Naur 041028original/asterisk/say.c 041028/asterisk/say.c --- 041028original/asterisk/say.c 2004-09-24 19:15:43.000000000 -0300 +++ 041028/asterisk/say.c 2004-10-28 22:36:36.800772455 -0200 @@ -1566,11 +1566,6 @@ playh = 1; num = num % 1000000; } - if (!res && playh) { - res = wait_file(chan, ints, "digits/pt-e", language); - ast_stopstream(chan); - playh = 0; - } if (!res) { if(!ast_streamfile(chan, fn, language)) { if (audiofd && ctrlfd) @@ -1579,6 +1574,11 @@ } ast_stopstream(chan); } + if (!res && playh) { + res = wait_file(chan, ints, "digits/pt-e", language); + ast_stopstream(chan); + playh = 0; + } } return res; }