Here i had try to explain very basic configuration of voicemail with asterisk
I had tested below configuration, and it works fine.
right now i am getting email with .wav file with attachment, in my gmail’s spam folder. but i think that is due to my local mail server.
pl.update with your suggestion and tips.
Thanks.
sip.conf
[general]
port=5060
bindaddr=0.0.0.0
context=hardwork
allow=all
[100]
type=friend
username=100
host=dynamic
secret=1234
nat=yes
mailbox=100
[101]
type=friend
username=101
host=dynamic
secret=1234
nat=yes
mailbox=101
extension.conf
[general]
static=yes
[hardwork]
exten => _10X,1,Dial(SIP/${EXTEN},5,tTo)
exten => _10X,2,Voicemail(100@hardwork)
exten => _10X,3,Hangup()
voicemail.conf
[general]
format=wav
[email protected]
attach=yes
[hardwork]
1111 => 1234,User Name,[email protected]