mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
app_externalivr needs a real silence file, and additional
changes to add silence files into core instead of extra patch provided by bug 8177 with minor additions. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48394 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
9
Makefile
9
Makefile
@@ -553,6 +553,7 @@ clean:
|
|||||||
datafiles: all
|
datafiles: all
|
||||||
if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
|
if [ x`$(ID) -un` = xroot ]; then sh mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
|
||||||
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
|
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/digits
|
||||||
|
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/silence
|
||||||
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
|
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/priv-callerintros
|
||||||
for x in sounds/digits/*.gsm; do \
|
for x in sounds/digits/*.gsm; do \
|
||||||
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
||||||
@@ -562,6 +563,14 @@ datafiles: all
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done
|
done
|
||||||
|
for x in sounds/silence/*.gsm; do \
|
||||||
|
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
||||||
|
$(INSTALL) -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds/silence ; \
|
||||||
|
else \
|
||||||
|
echo "No description for $$x"; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate
|
mkdir -p $(DESTDIR)$(ASTVARLIBDIR)/sounds/dictate
|
||||||
for x in sounds/dictate/*.gsm; do \
|
for x in sounds/dictate/*.gsm; do \
|
||||||
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
||||||
|
@@ -153,7 +153,7 @@ static int gen_nextfile(struct gen_state *state)
|
|||||||
if (state->current) {
|
if (state->current) {
|
||||||
file_to_stream = state->current->filename;
|
file_to_stream = state->current->filename;
|
||||||
} else {
|
} else {
|
||||||
file_to_stream = "silence-10";
|
file_to_stream = "silence/10";
|
||||||
u->playing_silence = 1;
|
u->playing_silence = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
22
sounds.txt
22
sounds.txt
@@ -728,3 +728,25 @@
|
|||||||
|
|
||||||
%spy-zap.gsm%Zap
|
%spy-zap.gsm%Zap
|
||||||
|
|
||||||
|
; Silence directory
|
||||||
|
|
||||||
|
%1.gsm%1 seconds of silence
|
||||||
|
|
||||||
|
%2.gsm%2 seconds of silence
|
||||||
|
|
||||||
|
%3.gsm%3 seconds of silence
|
||||||
|
|
||||||
|
%4.gsm%4 seconds of silence
|
||||||
|
|
||||||
|
%5.gsm%5 seconds of silence
|
||||||
|
|
||||||
|
%6.gsm%6 seconds of silence
|
||||||
|
|
||||||
|
%7.gsm%7 seconds of silence
|
||||||
|
|
||||||
|
%8.gsm%8 seconds of silence
|
||||||
|
|
||||||
|
%9.gsm%9 seconds of silence
|
||||||
|
|
||||||
|
%10.gsm%10 seconds of silence
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user