]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix say for portuguese numbers (bug #2749)
authorRussell Bryant <russell@russellbryant.com>
Tue, 2 Nov 2004 22:40:11 +0000 (22:40 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 2 Nov 2004 22:40:11 +0000 (22:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4151 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index 879c56da8aeaa95cf3c659527033a95c6dcb6f19..f2b6acc10286bd9f9d2698507c4a0182a6a16bdb 100755 (executable)
--- a/say.c
+++ b/say.c
@@ -1566,11 +1566,6 @@ static int ast_say_number_full_pt(struct ast_channel *chan, int num, char *ints,
                                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 @@ static int ast_say_number_full_pt(struct ast_channel *chan, int num, char *ints,
                        }
                        ast_stopstream(chan);
                }
+               if (!res && playh) {
+                       res = wait_file(chan, ints, "digits/pt-e", language);
+                       ast_stopstream(chan);
+                       playh = 0;
+               }
        }
        return res;
 }