Revision
16576
Author
mrene
Date
2010-02-05 02:27:20 -0600 (Fri, 05 Feb 2010)

Log Message

MODAPP-394

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c (16575 => 16576)


--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2010-02-05 07:05:33 UTC (rev 16575)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	2010-02-05 08:27:20 UTC (rev 16576)
@@ -2892,6 +2892,8 @@
 						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 @@
 	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;
 	}