mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
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:
9
say.c
9
say.c
@@ -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);
|
||||
|
@@ -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
BIN
sounds/digits/pound.gsm
Executable file
Binary file not shown.
BIN
sounds/digits/star.gsm
Executable file
BIN
sounds/digits/star.gsm
Executable file
Binary file not shown.
Reference in New Issue
Block a user