aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-30 21:21:29 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-30 21:21:29 +0000
commit8531434222f861baa49ccc8a2d01ca17504e357d (patch)
treef41b05763249c71534fca5d5eae775d8ac4e7348 /apps/app_voicemail.c
parent7b0b50b4da91a68c00d473bd86dee67f49a8db52 (diff)
Reverted 231616
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@231637 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r--apps/app_voicemail.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 673990ca4..a69b306f2 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -10617,7 +10617,7 @@ static int load_config(int reload)
char *cat;
struct ast_variable *var;
const char *val;
- char *q, *stringp, *tmp;
+ char *q, *stringp;
int x;
int tmpadsi[4];
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
@@ -10926,16 +10926,8 @@ static int load_config(int reload)
}
val = ast_variable_retrieve(cfg, "general", "format");
- if (!val) {
+ if (!val)
val = "wav";
- } else {
- tmp = ast_strdupa(val);
- val = ast_format_str_reduce(tmp);
- if (!val) {
- ast_log(LOG_ERROR, "Error processing format string, defaulting to format 'wav'\n");
- val = "wav";
- }
- }
ast_copy_string(vmfmts, val, sizeof(vmfmts));
skipms = 3000;