Skip to content
Snippets Groups Projects
Commit 5ff7c338 authored by Mark Spencer's avatar Mark Spencer
Browse files

Add pound/star (bug #113)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 36795a34
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,16 @@ int ast_say_digit_str(struct ast_channel *chan, char *fn2, char *ints, char *lan ...@@ -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 @@ ...@@ -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 @@ ...@@ -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
......
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment