aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-27 01:37:46 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-27 01:37:46 +0000
commit9aa18655dfadbe57f4950ead6bfaffd34a1b8622 (patch)
tree92c12c0a4667c0a2ab7c46bc52f0bd792cbdc578 /apps
parent755d2dc6184cb85b01f7854092227ced2bcf7ab7 (diff)
support old single-column options for realtime voicemail (bug #4080)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5506 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 66ed5a3ba..fedfd1271 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -188,6 +188,8 @@ static int play_record_review(struct ast_channel *chan, char *playfile, char *re
static int vm_tempgreeting(struct ast_channel *chan, struct ast_vm_user *vmu, struct vm_state *vms, char *fmtc);
static int vm_play_folder_name(struct ast_channel *chan, char *mbox);
+static void apply_options(struct ast_vm_user *vmu, const char *options);
+
#ifdef USE_ODBC_STORAGE
static char odbc_database[80];
#define RETRIEVE(a,b) retrieve_file(a,b)
@@ -376,6 +378,8 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v
strncpy(vmu->dialout, value, sizeof(vmu->dialout) -1);
} else if (!strcasecmp(var, "exitcontext")) {
strncpy(vmu->exit, value, sizeof(vmu->exit) -1);
+ } else if (!strcasecmp(var, "options")) {
+ apply_options(vmu, value);
}
}