diff options
author | Jonathan Rose <jrose@digium.com> | 2013-11-15 22:38:52 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2013-11-15 22:38:52 +0000 |
commit | 7950118e1895883cfb44d7aacff013d2f759920b (patch) | |
tree | 36b5a7499aba83be32d2530f40dd5dfebbff9350 /apps/app_confbridge.c | |
parent | 50afe6b9dd65a4294c63a8556ab3efbd202ee465 (diff) |
Confbridge: Add option to review the recording similar to announce_join_leave
Review: https://reviewboard.asterisk.org/r/3008/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402854 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_confbridge.c')
-rw-r--r-- | apps/app_confbridge.c | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 52cb04d15..8347bc6ed 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -1508,16 +1508,26 @@ static int conf_rec_name(struct confbridge_user *user, const char *conf_name) "%s/confbridge-name-%s-%s", destdir, conf_name, ast_channel_uniqueid(user->chan)); - res = ast_play_and_record(user->chan, - "vm-rec-name", - user->name_rec_location, - 10, - "sln", - &duration, - NULL, - ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE), - 0, - NULL); + if (!(ast_test_flag(&user->u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE_REVIEW))) { + res = ast_play_and_record(user->chan, + "vm-rec-name", + user->name_rec_location, + 10, + "sln", + &duration, + NULL, + ast_dsp_get_threshold_from_settings(THRESHOLD_SILENCE), + 0, + NULL); + } else { + res = ast_record_review(user->chan, + "vm-rec-name", + user->name_rec_location, + 10, + "sln", + &duration, + NULL); + } if (res == -1) { user->name_rec_location[0] = '\0'; @@ -1603,7 +1613,9 @@ static int confbridge_exec(struct ast_channel *chan, const char *data) } /* See if we need them to record a intro name */ - if (!quiet && ast_test_flag(&user.u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE)) { + if (!quiet && + (ast_test_flag(&user.u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE) || + (ast_test_flag(&user.u_profile, USER_OPT_ANNOUNCE_JOIN_LEAVE_REVIEW)))) { conf_rec_name(&user, args.conf_name); } |