let ast_say_digit_str say 'minus' preceding negative numbers (bug #3948)
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 4 Apr 2005 16:10:09 +0000 (16:10 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 4 Apr 2005 16:10:09 +0000 (16:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

say.c

diff --git a/say.c b/say.c
index 5cd9ba0..ea5a9ff 100755 (executable)
--- a/say.c
+++ b/say.c
@@ -54,6 +54,9 @@ int ast_say_digit_str(struct ast_channel *chan, const char *fn2, const char *int
                        case ('#'):
                                snprintf(fn, sizeof(fn), "digits/pound");
                                break;
                        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]);
                        default:
                                if((fn2[num] >= '0') && (fn2[num] <= '9')){ /* Must be in {0-9} */
                                        snprintf(fn, sizeof(fn), "digits/%c", fn2[num]);