From 83aeda7956943bff4556202dc182d59b8e96a83a Mon Sep 17 00:00:00 2001 From: Marc Olivier Chouinard Date: Thu, 9 Sep 2010 23:40:14 -0400 Subject: [PATCH] mod_voicemail: Allow to forward a message or send it via email key during the playback of the recording, not just when the menu is playing. --- src/mod/applications/mod_voicemail/mod_voicemail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index c683712922..e89bda47f1 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -824,7 +824,8 @@ static switch_status_t control_playback(switch_core_session_t *session, void *in if (!cc->noexit && (dtmf->digit == *cc->profile->delete_file_key || dtmf->digit == *cc->profile->save_file_key || dtmf->digit == *cc->profile->prev_msg_key || dtmf->digit == *cc->profile->next_msg_key - || dtmf->digit == *cc->profile->terminator_key || dtmf->digit == *cc->profile->skip_info_key)) { + || dtmf->digit == *cc->profile->terminator_key || dtmf->digit == *cc->profile->skip_info_key + || dtmf->digit == *cc->profile->email_key || dtmf->digit == *cc->profile->forward_key)) { *cc->buf = dtmf->digit; return SWITCH_STATUS_BREAK; }