mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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:
4
say.c
4
say.c
@@ -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 ('*'):
|
||||
|
Reference in New Issue
Block a user