mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Properly install appropriate sound files, prefix spy ones with spy- (bug #5192)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6563 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
Makefile
2
Makefile
@@ -514,7 +514,7 @@ datafiles: all
|
||||
exit 1; \
|
||||
fi; \
|
||||
done
|
||||
for x in sounds/demo-* sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-* sounds/queue-*; do \
|
||||
for x in sounds/demo-* sounds/vm-* sounds/transfer* sounds/pbx-* sounds/ss-* sounds/beep* sounds/dir-* sounds/conf-* sounds/agent-* sounds/invalid* sounds/tt-* sounds/auth-* sounds/privacy-* sounds/queue-* sounds/spy-* sounds/priv-* sounds/screen-*; do \
|
||||
if $(GREP) -q "^%`basename $$x`%" sounds.txt; then \
|
||||
install -m 644 $$x $(DESTDIR)$(ASTVARLIBDIR)/sounds ; \
|
||||
else \
|
||||
|
@@ -514,7 +514,7 @@ static int chanspy_exec(struct ast_channel *chan, void *data)
|
||||
struct localuser *u;
|
||||
struct ast_channel *peer=NULL, *prev=NULL;
|
||||
char name[AST_NAME_STRLEN],
|
||||
peer_name[AST_NAME_STRLEN],
|
||||
peer_name[AST_NAME_STRLEN + 5],
|
||||
*args,
|
||||
*ptr = NULL,
|
||||
*options = NULL,
|
||||
@@ -643,8 +643,8 @@ static int chanspy_exec(struct ast_channel *chan, void *data)
|
||||
if (peer && (!bronly || ast_bridged_channel(peer)) &&
|
||||
!ast_check_hangup(peer) && !ast_test_flag(peer, AST_FLAG_SPYING)) {
|
||||
int x = 0;
|
||||
|
||||
strncpy(peer_name, peer->name, AST_NAME_STRLEN);
|
||||
strncpy(peer_name, "spy-", 5);
|
||||
strncpy(peer_name + strlen(peer_name), peer->name, AST_NAME_STRLEN);
|
||||
ptr = strchr(peer_name, '/');
|
||||
*ptr = '\0';
|
||||
ptr++;
|
||||
|
16
sounds.txt
16
sounds.txt
@@ -710,18 +710,18 @@
|
||||
%conf-onlyone.gsm%There is currently only one other participant in the conference.
|
||||
|
||||
|
||||
%agent.gsm%Agent
|
||||
%spy-agent.gsm%Agent
|
||||
|
||||
%h323.gsm%H.323
|
||||
%spy-h323.gsm%H.323
|
||||
|
||||
%iax.gsm%IAX
|
||||
%spy-iax.gsm%IAX
|
||||
|
||||
%iax2.gsm%IAX (note: does not say "2")
|
||||
%spy-iax2.gsm%IAX (note: does not say "2")
|
||||
|
||||
%mgcp.gsm%MGCP
|
||||
%spy-mgcp.gsm%MGCP
|
||||
|
||||
%sip.gsm%SIP
|
||||
%spy-sip.gsm%SIP
|
||||
|
||||
%skinny.gsm%Skinny
|
||||
%spy-skinny.gsm%Skinny
|
||||
|
||||
%zap.gsm%Zap
|
||||
%spy-zap.gsm%Zap
|
||||
|
Reference in New Issue
Block a user