Custom Voicemail greeting in asterisk
A user can access their voice mailbox by calling "*97", selecting "0" for Advanced Mailbox Options, and then selecting a number from "1" to "4" to record a specific type of greeting:
Unavailable
Busy
User's Name
Temporary Greeting
If you want to upload a pre-recorded voice as custom voicemail greeting for busy and unavailble status
make sure your vocie file should be PCM Encoded, 16 bits, at8000Hz mono format
copy your voice file to var/spool/asterisk/voicemail/default/100/
Note:** 100 is my extension for which the custom voicemail is to be changed
rename you voice file
cd /var/spool/asterisk/voicemail/default/100
mv myrecording.wav busy.wav -------------------- this is for playing while busy
mv myrecording.wav unavail.wav -------------------- this is for playing while unavailable
changing the ownership
chown -R asterisk:asterisk busy.wav
chown -R asterisk:asteirsk unavail.wav
now make testcall