diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-09 21:53:25 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-09 21:53:25 +0000 |
commit | 8fac3e83341e89faa77912bff43f002319f1c901 (patch) | |
tree | bc7c36afaabcef5a1006ce8eb012b83690b1ee29 /apps | |
parent | cc936a2303ac006bbaced31fb8ebaf5032f288d5 (diff) |
We appear to have documented tz= in the [general] section of voicemail.conf,
without actually having implemented it. Oops.
(Reported by Olivier on the -users list)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@162348 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 24df8c6cb..b0c12eef8 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -537,6 +537,7 @@ static char *app4 = "VMAuthenticate"; static AST_LIST_HEAD_STATIC(users, ast_vm_user); static AST_LIST_HEAD_STATIC(zones, vm_zone); +static char zonetag[80]; static int maxsilence; static int maxmsg; static int silencethreshold = 128; @@ -602,6 +603,7 @@ static void populate_defaults(struct ast_vm_user *vmu) ast_copy_string(vmu->callback, callcontext, sizeof(vmu->callback)); ast_copy_string(vmu->dialout, dialcontext, sizeof(vmu->dialout)); ast_copy_string(vmu->exit, exitcontext, sizeof(vmu->exit)); + ast_copy_string(vmu->zonetag, zonetag, sizeof(vmu->zonetag)); if (maxmsg) vmu->maxmsg = maxmsg; vmu->volgain = volgain; @@ -8665,6 +8667,9 @@ static int load_config(void) tmpread = tmpwrite + 1; } } + if ((s = ast_variable_retrieve(cfg, "general", "zonetag"))) { + ast_copy_string(zonetag, s, sizeof(zonetag)); + } if ((s = ast_variable_retrieve(cfg, "general", "pagersubject"))) pagersubject = ast_strdup(s); if ((s = ast_variable_retrieve(cfg, "general", "pagerbody"))) { |