[svn-commits] branch 1.2 r34911 - /branches/1.2/apps/app_voicemail.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Mon Jun 19 13:27:44 MST 2006
Author: file
Date: Mon Jun 19 15:27:44 2006
New Revision: 34911
URL: http://svn.digium.com/view/asterisk?rev=34911&view=rev
Log:
Call reset_user_pw upon changing the password using externpass (issue #7395 reported by Ryan Cumming)
Modified:
branches/1.2/apps/app_voicemail.c
Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=34911&r1=34910&r2=34911&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Mon Jun 19 15:27:44 2006
@@ -763,8 +763,10 @@
{
char buf[255];
snprintf(buf,255,"%s %s %s %s",ext_pass_cmd,vmu->context,vmu->mailbox,newpassword);
- if (!ast_safe_system(buf))
+ if (!ast_safe_system(buf)) {
+ reset_user_pw(vmu->context, vmu->mailbox, newpassword);
ast_copy_string(vmu->password, newpassword, sizeof(vmu->password));
+ }
}
static int make_dir(char *dest, int len, char *context, char *ext, char *mailbox)
More information about the svn-commits
mailing list