]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch from MODAPP-162
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 17:36:08 +0000 (17:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Nov 2008 17:36:08 +0000 (17:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10294 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_voicemail/mod_voicemail.c

index 0eb11ad825df06cbd7b0044ffd8162697019ae30..0cb58230c8faea6cc0e0678d46ee795f46e0e180 100644 (file)
@@ -2090,7 +2090,7 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro
                                                if (!switch_strlen_zero(vm_storage_dir)) {
                                                        dir_path = switch_core_session_sprintf(session, "%s%s%s", vm_storage_dir, SWITCH_PATH_SEPARATOR, myid);
                                                } else if ( !switch_strlen_zero(profile->storage_dir) ) {
-                                                       dir_path = switch_core_session_sprintf(session, "%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, myid);
+                                                       dir_path = switch_core_session_sprintf(session, "%s%s%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, domain_name, SWITCH_PATH_SEPARATOR, myid);
                                                } else {
                                                        dir_path = switch_core_session_sprintf(session, "%s%svoicemail%s%s%s%s%s%s", SWITCH_GLOBAL_dirs.storage_dir,
                                                                                                                                   SWITCH_PATH_SEPARATOR,
@@ -2244,7 +2244,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile,
        if (!switch_strlen_zero(vm_storage_dir)) {
                dir_path = switch_mprintf("%s%s%s", vm_storage_dir, SWITCH_PATH_SEPARATOR, myid);
        } else if (!switch_strlen_zero(profile->storage_dir)) {
-               dir_path = switch_mprintf("%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, myid);
+               dir_path = switch_mprintf("%s%s%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, domain_name, SWITCH_PATH_SEPARATOR, myid);
        } else {
                dir_path = switch_mprintf("%s%svoicemail%s%s%s%s%s%s", SWITCH_GLOBAL_dirs.storage_dir,
                                                                  SWITCH_PATH_SEPARATOR,
@@ -2724,7 +2724,7 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, cons
        if (!switch_strlen_zero(vm_storage_dir)) {
                dir_path = switch_core_session_sprintf(session, "%s%s%s", vm_storage_dir, SWITCH_PATH_SEPARATOR, id);
        } else if (!switch_strlen_zero(profile->storage_dir)) {
-               dir_path = switch_core_session_sprintf(session, "%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, id);
+               dir_path = switch_core_session_sprintf(session, "%s%s%s%s%s", profile->storage_dir, SWITCH_PATH_SEPARATOR, domain_name, SWITCH_PATH_SEPARATOR, id);
        } else {
                dir_path = switch_core_session_sprintf(session, "%s%svoicemail%s%s%s%s%s%s", SWITCH_GLOBAL_dirs.storage_dir,
                                                                                           SWITCH_PATH_SEPARATOR,