mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 11:32:25 +00:00
added feature for pausing and unpausing the
monitor app from manager and in the call through features.conf bug 5395 for the patch git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
12
channel.c
12
channel.c
@@ -1899,8 +1899,10 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
|
||||
} else
|
||||
chan->insmpl += f->samples;
|
||||
#endif
|
||||
if (ast_writestream(chan->monitor->read_stream, f) < 0)
|
||||
ast_log(LOG_WARNING, "Failed to write data to channel monitor read stream\n");
|
||||
if (chan->monitor->state == AST_MONITOR_RUNNING) {
|
||||
if (ast_writestream(chan->monitor->read_stream, f) < 0)
|
||||
ast_log(LOG_WARNING, "Failed to write data to channel monitor read stream\n");
|
||||
}
|
||||
}
|
||||
if (chan->readtrans) {
|
||||
f = ast_translate(chan->readtrans, f, 1);
|
||||
@@ -2260,8 +2262,10 @@ int ast_write(struct ast_channel *chan, struct ast_frame *fr)
|
||||
} else
|
||||
chan->outsmpl += f->samples;
|
||||
#endif
|
||||
if (ast_writestream(chan->monitor->write_stream, f) < 0)
|
||||
ast_log(LOG_WARNING, "Failed to write data to channel monitor write stream\n");
|
||||
if (chan->monitor->state == AST_MONITOR_RUNNING) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user