(Resolved) How Do I Voice Mail Account?

I am trying to update my dial plan to check if a voice mail account exists before I run Voicemail(xxxx). The problem I am having is that if I call Voicemail() and the account does not exist the CDR record for the call flags the call as answered. I need to make sure that if no one answers the call and a voice mail box does not exist for the user that the call is not flaged as answered. I am hoping there is a way to check to see if a vm mail box exists so I can skip the function line Voicemail(xxxx) if the box is not there.

Thanks
zktech

I just found the MailboxExists opitons and it works great.

exten => r-NOANSWER,1,MailboxExists(${l_VMExt}@${ARG2})
exten => r-NOANSWER,n,GotoIf(${VMBOXEXISTSSTATUS} = FAILED?4)
exten => r-NOANSWER,n,Voicemail(${l_VMExt}@${ARG2}|u)
exten => r-NOANSWER,n,Hangup()

I should have found it before but I was looking for a command like vmMailboxExists and missed it. I hope this example helps someone else.

Thanks
zktech