diff options
author | Jonathan Rose <jrose@digium.com> | 2012-10-30 15:10:38 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2012-10-30 15:10:38 +0000 |
commit | 9a80b5da22d17d00309922b037f90670e8ec8352 (patch) | |
tree | c52074942ab728766fb7fe30b009b090c5487c96 | |
parent | 5f3f32c49420704ae1567aa2c6e6c723c3e1b0bd (diff) |
confbridge: Fix a bug which made conferences not record with AMI/CLI commands
When confbridge was changed to handle conference status with a state machine in
r374658. The function responsible for starting recording for a conference was
refactored with the function actually responsible for launching the recording
thread being split into a function with another name. The old function name was
still used for manually started recordings through AMI or CLI. This patch fixes
that by switching which function is used to start recording the conference.
(closes issue ASTERISK-20601)
Reported by: Vilius
Patches:
confbridge_mixmonitor.diff uploaded by Jonathan Rose (license 6182)
........
Merged revisions 375470 from http://svn.asterisk.org/svn/asterisk/branches/10
........
Merged revisions 375471 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375472 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | apps/app_confbridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 762e39bc3..216f7e7d4 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -2273,7 +2273,7 @@ static char *handle_cli_confbridge_start_record(struct ast_cli_entry *e, int cmd ast_copy_string(bridge->b_profile.rec_file, rec_file, sizeof(bridge->b_profile.rec_file)); } - if (conf_start_record(bridge)) { + if (start_conf_record_thread(bridge)) { ast_cli(a->fd, "Could not start recording due to internal error.\n"); ao2_unlock(bridge); ao2_ref(bridge, -1); @@ -2611,7 +2611,7 @@ static int action_confbridgestartrecord(struct mansession *s, const struct messa ast_copy_string(bridge->b_profile.rec_file, recordfile, sizeof(bridge->b_profile.rec_file)); } - if (conf_start_record(bridge)) { + if (start_conf_record_thread(bridge)) { astman_send_error(s, m, "Internal error starting conference recording."); ao2_unlock(bridge); ao2_ref(bridge, -1); |