]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7975: [mod_voicemail] Fix record-greeting event missing VM-Greeting-Path
authorJoshua Gigg <giggsey@gmail.com>
Tue, 18 Aug 2015 08:14:14 +0000 (09:14 +0100)
committerMichael Jerris <mike@jerris.com>
Tue, 25 Aug 2015 19:49:05 +0000 (14:49 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index d24fecc6a4fd5f4a153ece2dc3fa67150ec4f2a1..8b8b092995b74c4262f93cc0d5561522158dc907 100644 (file)
@@ -2270,7 +2270,6 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
                                                                                   domain_name);
                                                vm_execute_sql(profile, sql, profile->mutex);
                                                switch_safe_free(sql);
-                                               switch_safe_free(file_path);
                                                switch_safe_free(tmp_file_path);
 
                                                switch_event_create_subclass(&params, SWITCH_EVENT_CUSTOM, VM_EVENT_MAINT);
@@ -2280,6 +2279,8 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
                                                switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "VM-Domain", domain_name);
                                                switch_channel_event_set_data(channel, params);
                                                switch_event_fire(&params);
+
+                                               switch_safe_free(file_path);
                                        }
 
                                } else if (!strcmp(input, profile->change_pass_key)) {