]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix MODAPP-302, but mp3's still have an issue.
authorBrian West <brian@freeswitch.org>
Wed, 1 Jul 2009 17:04:15 +0000 (17:04 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 1 Jul 2009 17:04:15 +0000 (17:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14090 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index 1980d4dd1259f95c4f76d998351c6316f6cc1fe6..4efd4fccbf0808f22411407c459e224249f601ff 100644 (file)
@@ -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));