diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 23:13:33 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-07 23:13:33 +0000 |
commit | 9831be62e17fc4ec26dfac4f6e72c6c144039312 (patch) | |
tree | 53ecff35654ed6f31de976735c57db8f14899006 /say.c | |
parent | b37924b01152604dea50b857325f1514b7e59a3d (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.2@68351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rw-r--r-- | say.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -62,7 +62,7 @@ int ast_say_character_str_full(struct ast_channel *chan, const char *str, const int num = 0; int res = 0; - while (str[num]) { + while (str[num] && !res) { fn = NULL; switch (str[num]) { case ('*'): @@ -142,7 +142,7 @@ int ast_say_phonetic_str_full(struct ast_channel *chan, const char *str, const c int num = 0; int res = 0; - while (str[num]) { + while (str[num] && !res) { fn = NULL; switch (str[num]) { case ('*'): |