]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix global operator=yes (bug #3080)
authorRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 05:39:04 +0000 (05:39 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 13 Jan 2005 05:39:04 +0000 (05:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4782 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 61bb3d341378b793f99f3740a6c13dfc8787a993..565bf07f470b78f1461ddb343681bb3a33ccb3d0 100755 (executable)
@@ -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) {