summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-08-18 05:50:10 +0000
committerMark Spencer <markster@digium.com>2003-08-18 05:50:10 +0000
commit5ff7c338f2ba529ed4d4d5e8687c1a8608d4836c (patch)
tree1b8cd33c4c2b378b2a6f7e2b38fea50fa2de77b8
parent36795a34a247f465418dd1be6c1eb7964a27ca29 (diff)
Add pound/star (bug #113)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1361 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-xsay.c11
-rwxr-xr-xsounds.txt6
-rwxr-xr-xsounds/digits/pound.gsmbin0 -> 1155 bytes
-rwxr-xr-xsounds/digits/star.gsmbin0 -> 1353 bytes
4 files changed, 15 insertions, 2 deletions
diff --git a/say.c b/say.c
index 9e47abad9..40b5131ef 100755
--- a/say.c
+++ b/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) {
- 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);
if (!res)
res = ast_waitstream(chan, ints);
diff --git a/sounds.txt b/sounds.txt
index 70f11392a..86655bc47 100755
--- a/sounds.txt
+++ b/sounds.txt
@@ -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
diff --git a/sounds/digits/pound.gsm b/sounds/digits/pound.gsm
new file mode 100755
index 000000000..a09fb0f6d
--- /dev/null
+++ b/sounds/digits/pound.gsm
Binary files differ
diff --git a/sounds/digits/star.gsm b/sounds/digits/star.gsm
new file mode 100755
index 000000000..fcc426212
--- /dev/null
+++ b/sounds/digits/star.gsm
Binary files differ