mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
IAX2 fixup, fix res_monitor sillyseg
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -172,7 +172,7 @@ int ast_monitor_start( struct ast_channel *chan, const char *format_spec,
|
||||
/* Stop monitoring a channel */
|
||||
int ast_monitor_stop( struct ast_channel *chan, int need_lock )
|
||||
{
|
||||
char *execute=NULL;
|
||||
char *execute;
|
||||
int soxmix =0;
|
||||
if(need_lock) {
|
||||
if(ast_mutex_lock(&chan->lock)) {
|
||||
@@ -219,7 +219,7 @@ int ast_monitor_stop( struct ast_channel *chan, int need_lock )
|
||||
}
|
||||
}
|
||||
|
||||
if (chan->monitor->joinfiles && !ast_strlen_zero(execute) && strlen(chan->monitor->filename_base)) {
|
||||
if (chan->monitor->joinfiles && strlen(chan->monitor->filename_base)) {
|
||||
char tmp[1024];
|
||||
char tmp2[1024];
|
||||
char *format = !strcasecmp(chan->monitor->format,"wav49") ? "WAV" : chan->monitor->format;
|
||||
|
Reference in New Issue
Block a user