projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
054317f
)
don't write frames out to channel until after sending them to spies and/or monitor...
author
Kevin P. Fleming
<kpfleming@digium.com>
Tue, 5 Jul 2005 22:21:54 +0000
(22:21 +0000)
committer
Kevin P. Fleming
<kpfleming@digium.com>
Tue, 5 Jul 2005 22:21:54 +0000
(22:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6035
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channel.c
patch
|
blob
|
history
diff --git
a/channel.c
b/channel.c
index
5fa5d36
..
04b77af
100755
(executable)
--- a/
channel.c
+++ b/
channel.c
@@
-1885,8
+1885,6
@@
int ast_write(struct ast_channel *chan, struct ast_frame *fr)
} else
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) {
@@
-1917,6
+1915,8
@@
int ast_write(struct ast_channel *chan, struct ast_frame *fr)
if (ast_writestream(chan->monitor->write_stream, f) < 0)
ast_log(LOG_WARNING, "Failed to write data to channel monitor write stream\n");
}
+
+ res = chan->tech->write(chan, f);
} else
res = 0;
}