diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-24 03:04:45 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-03-24 03:04:45 +0000 |
commit | d0a96e1719e3670bdd576fbec81f4824182b3900 (patch) | |
tree | 274944b78a7e0d133c086c9c69e5c7c2a37d497b /channel.c | |
parent | 020ba472579f2b41aa59abc351dc3937f4c0a6a8 (diff) |
Fix the mysterious missing if
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5245 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 ) ) { |