aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xMakefile2
-rwxr-xr-xapps/app_chanspy.c6
-rwxr-xr-xsounds.txt16
-rwxr-xr-xsounds/spy-agent.gsm (renamed from sounds/agent.gsm)bin1320 -> 1320 bytes
-rwxr-xr-xsounds/spy-h323.gsm (renamed from sounds/h323.gsm)bin2706 -> 2706 bytes
-rwxr-xr-xsounds/spy-iax.gsm (renamed from sounds/iax.gsm)bin957 -> 957 bytes
-rwxr-xr-xsounds/spy-iax2.gsm (renamed from sounds/iax2.gsm)bin957 -> 957 bytes
-rwxr-xr-xsounds/spy-mgcp.gsm (renamed from sounds/mgcp.gsm)bin2508 -> 2508 bytes
-rwxr-xr-xsounds/spy-sip.gsm (renamed from sounds/sip.gsm)bin1254 -> 1254 bytes
-rwxr-xr-xsounds/spy-skinny.gsm (renamed from sounds/skinny.gsm)bin1320 -> 1320 bytes
-rwxr-xr-xsounds/spy-zap.gsm (renamed from sounds/zap.gsm)bin1287 -> 1287 bytes
11 files changed, 12 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index ac981e78d..caca64f01 100755
--- a/Makefile
+++ b/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 \
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c
index 89ee070eb..f1ae6d2c1 100755
--- a/apps/app_chanspy.c
+++ b/apps/app_chanspy.c
@@ -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++;
diff --git a/sounds.txt b/sounds.txt
index a8a16571e..06865545a 100755
--- a/sounds.txt
+++ b/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
diff --git a/sounds/agent.gsm b/sounds/spy-agent.gsm
index ab065e9c0..ab065e9c0 100755
--- a/sounds/agent.gsm
+++ b/sounds/spy-agent.gsm
Binary files differ
diff --git a/sounds/h323.gsm b/sounds/spy-h323.gsm
index 6ba105472..6ba105472 100755
--- a/sounds/h323.gsm
+++ b/sounds/spy-h323.gsm
Binary files differ
diff --git a/sounds/iax.gsm b/sounds/spy-iax.gsm
index a84220ee3..a84220ee3 100755
--- a/sounds/iax.gsm
+++ b/sounds/spy-iax.gsm
Binary files differ
diff --git a/sounds/iax2.gsm b/sounds/spy-iax2.gsm
index a84220ee3..a84220ee3 100755
--- a/sounds/iax2.gsm
+++ b/sounds/spy-iax2.gsm
Binary files differ
diff --git a/sounds/mgcp.gsm b/sounds/spy-mgcp.gsm
index 7a7751258..7a7751258 100755
--- a/sounds/mgcp.gsm
+++ b/sounds/spy-mgcp.gsm
Binary files differ
diff --git a/sounds/sip.gsm b/sounds/spy-sip.gsm
index 70750667d..70750667d 100755
--- a/sounds/sip.gsm
+++ b/sounds/spy-sip.gsm
Binary files differ
diff --git a/sounds/skinny.gsm b/sounds/spy-skinny.gsm
index 734dd043d..734dd043d 100755
--- a/sounds/skinny.gsm
+++ b/sounds/spy-skinny.gsm
Binary files differ
diff --git a/sounds/zap.gsm b/sounds/spy-zap.gsm
index 22d95ed63..22d95ed63 100755
--- a/sounds/zap.gsm
+++ b/sounds/spy-zap.gsm
Binary files differ