mirror of
https://github.com/asterisk/asterisk.git
synced 2026-01-06 01:51:14 +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:
11
say.c
11
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 num = 0;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
while(fn2[num] && !res) {
|
while(fn2[num] && !res) {
|
||||||
snprintf(fn, sizeof(fn), "digits/%c", fn2[num]);
|
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);
|
res = ast_streamfile(chan, fn, lang);
|
||||||
if (!res)
|
if (!res)
|
||||||
res = ast_waitstream(chan, ints);
|
res = ast_waitstream(chan, ints);
|
||||||
|
|||||||
@@ -320,7 +320,7 @@
|
|||||||
|
|
||||||
%p-m.gsm%P.M.
|
%p-m.gsm%P.M.
|
||||||
|
|
||||||
%thousand.gsm%thousand
|
%pound.gsm%pound
|
||||||
|
|
||||||
%privacy-incorrect.gsm%will_be_added_later
|
%privacy-incorrect.gsm%will_be_added_later
|
||||||
|
|
||||||
@@ -330,6 +330,10 @@
|
|||||||
|
|
||||||
%privacy-unident.gsm%will_be_added_later
|
%privacy-unident.gsm%will_be_added_later
|
||||||
|
|
||||||
|
%star.gsm%star
|
||||||
|
|
||||||
|
%thousand.gsm%thousand
|
||||||
|
|
||||||
%at.gsm%at
|
%at.gsm%at
|
||||||
|
|
||||||
%h-1.gsm%first
|
%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