voicemail with asterisk

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
serveremail=user1@yourdomain.com
attach=yes

[hardwork]
1111 => 1234,User Name,user1@yourdomain.com


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
serveremail=user1@yourdomain.com
attach=yes

[hardwork]
1111 => 1234,User Name,user1@yourdomain.com


Created by: abbarot, Last modification: Fri 05 of Nov, 2010 (23:04 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+