Voicemail config from database


#1

my asterisk version is 1.0.9 and i just do as voip-info.org/tiki-index.php … l+database told me.
but when i call voicemailmain and it always say login incorrect.
these are my configs
//extension.conf
[mycontext]
exten=>5000,1,answer
exten=>5000,2,voicemailmain(@mycontext)
exten=>5000,3,hangup
//voicemail.conf
[general]
dbuser=username
dbpass=password
dbhost=localhost
dbname=asterisk
[default]
[mycontext] //weather i add this section or not ,they will not work .

and i insert two lins data in the table ‘user’ of asterisk database
////////////////////////////////end

is other anything needed to be done? any suggestion will be appreciated!