dect
/
asterisk
Archived
13
0
Fork 0

Fix the mysterious missing if

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5245 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
anthm 2005-03-24 03:04:45 +00:00
parent 020ba47257
commit d0a96e1719
1 changed files with 8 additions and 0 deletions

View File

@ -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 ) ) {