From 3680199268aee1e71bde5b50193a6cf39bfc0663 Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 12 Feb 2014 11:42:50 +0000 Subject: [PATCH] Fix copy/paste error This amends commit b9a858317881315c52cd33c61d90b1e6c75156bd. --- src/mod/applications/mod_voicemail/mod_voicemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index b12028ac0e..d488efbcdf 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -2786,7 +2786,7 @@ static switch_status_t deliver_vm(vm_profile_t *profile, } else if (!strcasecmp(var, "vm-storage-dir")) { vm_storage_dir = switch_core_strdup(pool, val); } else if (!strcasecmp(var, "vm-domain-storage-dir")) { - storage_dir = switch_core_session_strdup(session, val); + storage_dir = switch_core_strdup(pool, val); } else if (!strcasecmp(var, "storage-dir")) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Using deprecated 'storage-dir' directory variable: Please use 'vm-domain-storage-dir'.\n");