Index: apps/app_voicemail.c =================================================================== --- apps/app_voicemail.c (revision 179745) +++ apps/app_voicemail.c (working copy) @@ -1185,7 +1185,7 @@ } /* check if someone is accessing this box right now... */ - if (!(vms_p = get_vm_state_by_mailbox(vmu->mailbox, 1)) ||!(vms_p = get_vm_state_by_mailbox(vmu->mailbox, 0))) { + if (!(vms_p = get_vm_state_by_mailbox(vmu->mailbox, 1)) && !(vms_p = get_vm_state_by_mailbox(vmu->mailbox, 0))) { ast_log(LOG_ERROR, "Voicemail state not found!\n"); return -1; }