Dial By Name Directory

Hello, I have to setup a dial by name directory but this is my first time doing this how do I set this up? extensions.conf is below of current IVR menu.

[mainmenu]
exten => s,1,Background(/var/lib/asterisk/sounds/s-xpress)
exten => s,n,Background(silence/5)
exten => s,n,noop()
exten => s,n,Background(/var/lib/asterisk/sounds/s-xpress)
exten => s,n,Background(silence/10)
exten => s,n,Background(Hangup)
exten -> 0,1,Goto(infotest|1000|1)
exten => 1,1,Goto(infotest|1001|1)
exten => 2,1,Goto(infotest|1002|1)
exten => 3,1,Goto(infotest|1003|1)
exten => 4,1,Goto(infotest|1004|1)
exten => 5,1,Goto(infotest|1005|1)
exten => i,1,playback(invalid)
exten => i,2,goto(infotest|s|1) :confused:

Figured it out how to add to the aa.

[mainmenu]
exten => s,1,Background(/var/lib/asterisk/sounds/s-xpress)
exten => s,n,Background(silence/5)
exten => s,n,noop()
exten => s,n,Background(/var/lib/asterisk/sounds/s-xpress)
exten => s,n,Background(silence/10)
exten => s,n,Background(Hangup)
exten => 0,1,Goto(infotest|1000|1)
exten => 1,1,Goto(infotest|1001|1)
exten => 2,1,Goto(infotest|1002|1)
exten => 3,1,Goto(infotest|1003|1)
exten => 4,1,Goto(infotest|1004|1)
exten => 5,1,Goto(infotest|1005|1)
exten => 6,1,Directory(infotest[|dial-context[|f]])
exten => i,1,playback(invalid)
exten => i,2,goto(infotest|s|1)

But it does not recognize any name in my voicemail.conf

[general]

format=wav
operator=yes
attach=yes
maxmessage=180
minmessage=3
maxsilence=3
serveremail=pbx@mvmc.com
emailbody=Dear ${VM_NAME}:\n\n\tYou have received a voicemail. Number:${VM_MSGNU
MBER}\n in mailbox ${VM_MAILBOX} from ${VM_CALERID}, on ${VM_DATE}\n
fromstring='voip pbx’
mailcmd=/usr/sbin/sendmail -t
usedirectory = yes

[edstest]
100 => 100,100,

[infotest]
1000 => 1000,1000,
1001 => 1001,1001,jjones@foobar.com
1002 => 1002,john,jsmith@foobar.com
1003 => 1003,1003,jmichaels@foobar.com
1004 => 1004,1004,msmall@foobar.com
1005 => 1005,1005,mjacobs@foobar.com
3000 => 3000,3000,

any ideas?

After brainstorniing on voip-info wiki I figured this out. That site is really good! :laughing: