[asterisk-bugs] [Asterisk 0016167]: Chaspy always active Option ´o´

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Nov 3 08:35:22 CST 2009


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16167 
====================================================================== 
Reported By:                marhbere
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16167
Category:                   Applications/app_chanspy
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 226533 
Request Review:              
====================================================================== 
Date Submitted:             2009-11-02 15:45 CST
Last Modified:              2009-11-03 08:35 CST
====================================================================== 
Summary:                    Chaspy  always active Option ´o´
Description: 
In Revision: 224179 were try aply the option o, but in the IF always take
the true : So only heard the outbound audio.

	if (ast_test_flag(chan, 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 {
		f = ast_audiohook_read_frame(&csth->spy_audiohook, samples,
AST_AUDIOHOOK_DIRECTION_BOTH, AST_FORMAT_SLINEAR);
	}

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-11-03 08:35 lmadsen        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list