git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6005
d0543943-73ff-0310-b7d9-
9358b9ac24b2
}
}
- 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;