fix auth_only voicemail usage

This commit is contained in:
Brian West 2012-07-14 14:05:26 -05:00
parent 232fe67722
commit b256cf5695
1 changed files with 4 additions and 4 deletions

View 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++];
}