mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Fix the mysterious missing if
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1743,6 +1743,14 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
|
||||
f = fr;
|
||||
if (f) {
|
||||
res = chan->tech->write(chan, f);
|
||||
|
||||
if (f->frametype == AST_FRAME_VOICE && chan->spiers) {
|
||||
struct ast_channel_spy *spying;
|
||||
for (spying = chan->spiers; spying; spying=spying->next) {
|
||||
ast_queue_spy_frame(spying, f, 1);
|
||||
}
|
||||
}
|
||||
|
||||
if( chan->monitor &&
|
||||
chan->monitor->write_stream &&
|
||||
f && ( f->frametype == AST_FRAME_VOICE ) ) {
|
||||
|
Reference in New Issue
Block a user