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.2@68351 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-06-07 23:13:33 +00:00
parent a3961d646a
commit c00062ff31

4
say.c
View File

@@ -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 ('*'):