aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-08 19:31:56 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-12-08 19:31:56 +0000
commit277cbce6476657ba5994a5fcff7c134df3ea323d (patch)
treee39f340c7e65e720e9b4abf10853b36d2e5286a4 /apps
parent98ea22e695f8d8d766cadd24dc1f5d1b78b3a81c (diff)
Path fix for hasnewvoicmeail app
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1839 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_hasnewvoicemail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_hasnewvoicemail.c b/apps/app_hasnewvoicemail.c
index 10f791431..f1b055b71 100755
--- a/apps/app_hasnewvoicemail.c
+++ b/apps/app_hasnewvoicemail.c
@@ -42,6 +42,7 @@
#include <pthread.h>
+#include "../astconf.h"
static char *tdesc = "Indicator for whether a voice mailbox has new messages.";
static char *app_hasnewvoicemail = "HasNewVoicemail";
@@ -82,7 +83,7 @@ static int hasnewvoicemail_exec(struct ast_channel *chan, void *data)
vmbox = strsep(&context,"@");
}
- snprintf(vmpath,255,ASTSPOOLDIR "/voicemail/%s/%s/INBOX", context, vmbox);
+ snprintf(vmpath,sizeof(vmpath), "%s/voicemail/%s/%s/INBOX", (char *)ast_config_AST_SPOOL_DIR, context, vmbox);
if (!(vmdir = opendir(vmpath))) {
ast_log(LOG_NOTICE, "Voice mailbox %s at %s does not exist\n", vmbox, vmpath);
} else {