MODAPP-394

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16576 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Mathieu Rene 2010-02-05 08:27:20 +00:00
parent cbd282ecc4
commit 718923d806
1 changed files with 5 additions and 1 deletions

View File

@ -2892,6 +2892,8 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
disk_quota = atoi(val);
} else if (!strcasecmp(var, "vm-alternate-greet-id")) {
read_id = switch_core_session_strdup(session, val);
} else if (!strcasecmp(var, "vm-message-ext")) {
vm_ext = switch_core_session_strdup(session, val);
}
}
}
@ -2952,7 +2954,9 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
switch_snprintf(sql, sizeof(sql), "select * from voicemail_prefs where username='%s' and domain='%s'", id, domain_name);
vm_execute_sql_callback(profile, profile->mutex, sql, prefs_callback, &cbt);
vm_ext = profile->file_ext;
if (!vm_ext) {
vm_ext = profile->file_ext;
}
if ((vtmp = switch_channel_get_variable(channel, "vm_message_ext"))) {
vm_ext = vtmp;
}