From: Russell Bryant Date: Thu, 13 Jan 2005 05:39:04 +0000 (+0000) Subject: fix global operator=yes (bug #3080) X-Git-Tag: 1.0.11.1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d877f53edde4d66a4b9fccb4f74fe6aecd47a01;p=thirdparty%2Fasterisk.git fix global operator=yes (bug #3080) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4782 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 61bb3d3413..565bf07f47 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1331,6 +1331,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int } if ((vmu = find_user(&svm, context, ext))) { + populate_defaults(vmu); /* Setup pre-file if appropriate */ if (strcmp(vmu->context, "default")) snprintf(ext_context, sizeof(ext_context), "%s@%s", ext, vmu->context); @@ -1372,7 +1373,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int strncat(ecodes, "*", sizeof(ecodes) - strlen(ecodes) - 1); ausemacro = 1; } - + /* Play the beginning intro if desired */ if (!ast_strlen_zero(prefile)) { if (ast_fileexists(prefile, NULL, NULL) > 0) {