]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix auth_only voicemail usage
authorBrian West <brian@freeswitch.org>
Sat, 14 Jul 2012 19:05:26 +0000 (14:05 -0500)
committerBrian West <brian@freeswitch.org>
Sat, 14 Jul 2012 19:05:34 +0000 (14:05 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c

index de44945e8e892f23cbd90fc93e8469337f66f3e9..611243bb2e302177cd5c6a93322f0e18267b22d3 100644 (file)
@@ -3535,12 +3535,12 @@ SWITCH_STANDARD_APP(voicemail_function)
                if (argv[x] && !strcasecmp(argv[x], "check")) {
                        check++;
                        x++;
-               } else if (argv[x] && !strcasecmp(argv[x], "auth")) {
-                       auth++;
-                       x++;
                } else if (argv[x] && !strcasecmp(argv[x], "auth_only")) {
                        auth = 2;
                        x++;
+               } else if (argv[x] && !strcasecmp(argv[x], "auth")) {
+                       auth++;
+                       x++;
                } else {
                        break;
                }
@@ -3584,7 +3584,7 @@ SWITCH_STANDARD_APP(voicemail_function)
                return;
        }
 
-       if (check) {
+       if (check || auth == 2) {
                if (argv[x]) {
                        uuid = argv[x++];
                }