]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 68351 via svnmerge from
authorRussell Bryant <russell@russellbryant.com>
Thu, 7 Jun 2007 23:14:45 +0000 (23:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 7 Jun 2007 23:14:45 +0000 (23:14 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r68351 | russell | 2007-06-07 18:13:33 -0500 (Thu, 07 Jun 2007) | 3 lines

Fix a problem where saying a character wouldn't properly break out when the caller pressed '#'
(issue #8113, reported by patbaker82, patch from jamesgolovich (hey, long time no see!) and patbaker82)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@68354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/say.c

index 62b3158990bb76028b6c0d04289ecf21737d848e..4a649ed020aee20dbfabcf05541b25e12de1165a 100644 (file)
@@ -67,7 +67,7 @@ static int say_character_str_full(struct ast_channel *chan, const char *str, con
        int num = 0;
        int res = 0;
 
-       while (str[num]) {
+       while (str[num] && !res) {
                fn = NULL;
                switch (str[num]) {
                case ('*'):
@@ -142,7 +142,7 @@ static int say_phonetic_str_full(struct ast_channel *chan, const char *str, cons
        int num = 0;
        int res = 0;
 
-       while (str[num]) {
+       while (str[num] && !res) {
                fn = NULL;
                switch (str[num]) {
                case ('*'):