Add pound/star (bug #113)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-08-18 05:50:10 +00:00
parent 36795a34a2
commit 5ff7c338f2
4 changed files with 15 additions and 2 deletions

9
say.c
View File

@@ -25,7 +25,16 @@ int ast_say_digit_str(struct ast_channel *chan, char *fn2, char *ints, char *lan
int num = 0;
int res = 0;
while(fn2[num] && !res) {
switch (fn2[num]) {
case ('*'):
snprintf(fn, sizeof(fn), "digits/star");
break;
case ('#'):
snprintf(fn, sizeof(fn), "digits/pound");
break;
default:
snprintf(fn, sizeof(fn), "digits/%c", fn2[num]);
}
res = ast_streamfile(chan, fn, lang);
if (!res)
res = ast_waitstream(chan, ints);

View File

@@ -320,7 +320,7 @@
%p-m.gsm%P.M.
%thousand.gsm%thousand
%pound.gsm%pound
%privacy-incorrect.gsm%will_be_added_later
@@ -330,6 +330,10 @@
%privacy-unident.gsm%will_be_added_later
%star.gsm%star
%thousand.gsm%thousand
%at.gsm%at
%h-1.gsm%first

BIN
sounds/digits/pound.gsm Executable file

Binary file not shown.

BIN
sounds/digits/star.gsm Executable file

Binary file not shown.