Webmail not showing Voicemails


I configured Vmail.cgi for my asterisk, I set the correct context in vmail file. Through Web i can login but it is not showing the voicemail messages that was present in my INBOX. And I have also given full permission for /var/spool/asterisk/voicemail directory. Still i am not able to access my voicemails through web. Please help me resolv this issue.