From 347bd1b30160201c4c3d4566c5b06d55a8338130 Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 1 Jul 2009 17:04:15 +0000 Subject: [PATCH] fix MODAPP-302, but mp3's still have an issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14090 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 1980d4dd12..4efd4fccbf 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1460,7 +1460,7 @@ static switch_status_t listen_file(switch_core_session_t *session, vm_profile_t if (!*cc.buf) { memset(&fh, 0, sizeof(fh)); cc.fh = &fh; - TRY_CODE(switch_ivr_play_file(session, NULL, cbt->file_path, &args)); + TRY_CODE(switch_ivr_play_file(session, &fh, cbt->file_path, &args)); } if (!*cc.buf && (profile->play_date_announcement == VM_DATE_LAST)) { @@ -1924,7 +1924,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p cc.fh = &fh; cc.noexit = 1; greeting_args.buf = &cc; - status = switch_ivr_play_file(session, NULL, file_path, &greeting_args); + status = switch_ivr_play_file(session, &fh, file_path, &greeting_args); } if (status != SWITCH_STATUS_SUCCESS && status != SWITCH_STATUS_BREAK) { TRY_CODE(switch_ivr_phrase_macro(session, VM_CHOOSE_GREETING_FAIL_MACRO, NULL, NULL, NULL));