aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-03 15:25:11 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-09-03 15:25:11 +0000
commit0d50a68e0cb952264d08febc6a6b7ff81df50e1e (patch)
treed5c276b1fdf3dac145ada4a41c9ec4fe6b04a957
parentbfb57d8289265aa583cee18d7e4a48c8970c5578 (diff)
Make sure shell version happens even if MySQL mailboxes are there (bug #2367)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3719 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_voicemail.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f20d6d029..4684e6fed 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -574,13 +574,6 @@ static int reset_user_pw(char *context, char *mailbox, char *newpass)
return res;
}
-static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
-{
- char buf[255];
- snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
- ast_safe_system(buf);
-}
-
static void vm_change_password(struct ast_vm_user *vmu, char *newpassword)
{
/* There's probably a better way of doing this. */
@@ -694,6 +687,13 @@ static void vm_change_password(struct ast_vm_user *vmu, char *newpassword)
}
#endif
+static void vm_change_password_shell(struct ast_vm_user *vmu, char *newpassword)
+{
+ char buf[255];
+ snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
+ ast_safe_system(buf);
+}
+
static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)
{
return snprintf(dest, len, "%s/voicemail/%s/%s/%s", (char *)ast_config_AST_SPOOL_DIR,context, ext, mailbox);