Revision
14090
Author
brian
Date
2009-07-01 12:04:15 -0500 (Wed, 01 Jul 2009)

Log Message

 fix MODAPP-302, but mp3's still have an issue. 

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (14089 => 14090)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-07-01 16:55:52 UTC (rev 14089)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2009-07-01 17:04:15 UTC (rev 14090)
@@ -1460,7 +1460,7 @@
 		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 @@
 						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));