I have asterisk setup with voicemail, they are being stored on the server. I want to be able store the link to file in my realtime database. so that I am able to play that file in my softphone using HTML Audio attribute.
Currently the voicemessages table remains empty even after recording a message.
Maybe you should provide some information as to what you have done so far…
You mention you want to store the link to the file in the database, how did you configure that?
Without information there is nobody that can give any usefull information.
Asterisk stores voicemail messages in a directory only it has access too. If you want them to be read by your web-browser you need to modify the file permissions on the voicemail folder or have the messages copied to another directory where they can be read.