[asterisk-commits] jpeeler: trunk r228189 - /trunk/apps/app_chanspy.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Nov 5 15:23:11 CST 2009
Author: jpeeler
Date: Thu Nov 5 15:23:06 2009
New Revision: 228189
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=228189
Log:
Fix the fix for chanspy option o
In 224178, I assumed the uploaded patch was correct as it had received positive
feedback. The flags were being checked in the incorrect location. Upon testing
the fix this time it was also found that the flags from the dialplan weren't
being copied to the chanspy_translation_helper.
(closes issue #16167)
Reported by: marhbere
Modified:
trunk/apps/app_chanspy.c
Modified: trunk/apps/app_chanspy.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_chanspy.c?view=diff&rev=228189&r1=228188&r2=228189
==============================================================================
--- trunk/apps/app_chanspy.c (original)
+++ trunk/apps/app_chanspy.c Thu Nov 5 15:23:06 2009
@@ -435,7 +435,7 @@
return -1;
}
- if (ast_test_flag(chan, OPTION_READONLY)) {
+ if (ast_test_flag(&csth->spy_audiohook, OPTION_READONLY)) {
/* Option 'o' was set, so don't mix channel audio */
f = ast_audiohook_read_frame(&csth->spy_audiohook, samples, AST_AUDIOHOOK_DIRECTION_READ, AST_FORMAT_SLINEAR);
} else {
@@ -535,6 +535,7 @@
spyer_name, name);
memset(&csth, 0, sizeof(csth));
+ ast_copy_flags(&csth.spy_audiohook, flags, AST_FLAGS_ALL);
ast_audiohook_init(&csth.spy_audiohook, AST_AUDIOHOOK_TYPE_SPY, "ChanSpy");
More information about the asterisk-commits
mailing list