say "minus" for negative numbers (bug #3948)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5395 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-04-05 06:31:55 +00:00
parent 48f1386fff
commit 4f4009663c

3
say.c
View File

@@ -47,6 +47,9 @@ int ast_say_digit_str(struct ast_channel *chan, char *fn2, char *ints, char *lan
case ('#'):
snprintf(fn, sizeof(fn), "digits/pound");
break;
case ('-'):
snprintf(fn, sizeof(fn), "digits/minus");
break;
default:
if((fn2[num] >= '0') && (fn2[num] <= '9')){ /* Must be in {0-9} */
snprintf(fn, sizeof(fn), "digits/%c", fn2[num]);