[Freeswitch-svn] [commit] r6005 - freeswitch/trunk/src/mod/applications/mod_voicemail
Freeswitch SVN
anthm at freeswitch.org
Fri Oct 19 20:10:54 EDT 2007
Author: anthm
Date: Fri Oct 19 20:10:54 2007
New Revision: 6005
Modified:
freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
Log:
add MODAPP-37
Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c Fri Oct 19 20:10:54 2007
@@ -1548,7 +1548,11 @@
}
}
- if(!send_mail) {
+ /* TRX a race condition exists where you hang up right as you start to record, the recording subsystem detects there isnt
+ * a channel and refuses to create the file, as a result you get DB entries and MWI entries when there is no voicemail saved
+ * message counts and other things get out of sync
+ */
+ if(!send_mail && switch_file_exists(file_path,switch_core_session_get_pool(session))==SWITCH_STATUS_SUCCESS) {
char *usql;
switch_event_t *event;
char *mwi_id = NULL;
More information about the Freeswitch-svn
mailing list