mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 13:09:00 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@11804 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -203,6 +203,17 @@ static void *mixmonitor_thread(void *obj)
|
|||||||
if (option_verbose > 1)
|
if (option_verbose > 1)
|
||||||
ast_verbose(VERBOSE_PREFIX_2 "Begin MixMonitor Recording %s\n", name);
|
ast_verbose(VERBOSE_PREFIX_2 "Begin MixMonitor Recording %s\n", name);
|
||||||
|
|
||||||
|
if (mixmonitor->post_process) {
|
||||||
|
char *p;
|
||||||
|
|
||||||
|
for (p = mixmonitor->post_process; *p ; p++) {
|
||||||
|
if (*p == '^' && *(p+1) == '{') {
|
||||||
|
*p = '$';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pbx_substitute_variables_helper(mixmonitor->chan, mixmonitor->post_process, post_process, sizeof(post_process) - 1);
|
||||||
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
struct ast_frame *next;
|
struct ast_frame *next;
|
||||||
int write;
|
int write;
|
||||||
@@ -237,17 +248,6 @@ static void *mixmonitor_thread(void *obj)
|
|||||||
ast_mutex_unlock(&spy.lock);
|
ast_mutex_unlock(&spy.lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mixmonitor->post_process) {
|
|
||||||
char *p;
|
|
||||||
|
|
||||||
for (p = mixmonitor->post_process; *p ; p++) {
|
|
||||||
if (*p == '^' && *(p+1) == '{') {
|
|
||||||
*p = '$';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
pbx_substitute_variables_helper(mixmonitor->chan, mixmonitor->post_process, post_process, sizeof(post_process) - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
stopmon(mixmonitor->chan, &spy);
|
stopmon(mixmonitor->chan, &spy);
|
||||||
|
|
||||||
if (option_verbose > 1)
|
if (option_verbose > 1)
|
||||||
|
Reference in New Issue
Block a user