Can't Create New Voice Mailboxes

I’ve been following the O’Reilly Asterisk PDF but I’m having great difficulty getting new voice mailboxes to work. The mailbox 1234 that came with the stock configuration files appears to work just fine. But I can’t create any new mailboxes. I have two SIP softphones (X-Lite) successfully calling each other. Please help me get voicemail running, too!

Excerpt from extensions.conf:

[code][internal]
exten => 1000,1,Verbose(1|Extension 1000)
exten => 1000,n,Dial(SIP/1000,15)
exten => 1000,n,VoiceMail(1000@default,u)
exten => 1000,n,Hangup()

exten => 1001,1,Verbose(1|Extension 1001)
exten => 1001,n,Dial(SIP/1001,15)
exten => 1001,n,VoiceMail(1001@default,u)
exten => 1001,n,Hangup()

exten => 700,1,VoiceMailMain()

[phones]
include => internal[/code]
Excerpt from sip.conf:

[code][1000]
type=friend
context=phones
host=dynamic
mailbox=1000

[1001]
type=friend
context=phones
host=dynamic
mailbox=1001[/code]
Excerpt from voicemail.conf:

[default] 1000 => 1000,Patrick 1,root@localhost 1001 => 1001,Patrick 2,root@localhost 1234 => 4242,Example Mailbox,root@localhost

If I dial extension 700 to check for voicemail and I enter the mailbox 1000 with password 1000 (or mailbox 1001 with password 1001) I hear “login incorrect” and the Asterisk debug console includes a line:

But If I enter the mailbox 1234 with password 4242, I can check voicmail. I’ve followed the same syntax but the two new ones won’t work.

Also, when calling another extension and reaching the point where voicemail should pick so I can leave a message, the extension hangs up and this appears in the debug console:

When I enter the command voicemail show users I get:

Context Mbox User Zone NewMsg default general New User 0 default 1234 Example Mailbox 0 other 1234 Company2 User 0

And finally, /var/spool/asterisk/default only shows a folder for mailbox 1234. So it appears to me new mailboxes aren’t getting created. I’ve Googled, searched around here, found a handful of similar cases but no resolution. Any suggestions???

;Are yous using;
*CLI> restart now
*CLI> reload

;Here is a workng example;
extensions.conf
;Voice Mail
exten => 8500,1,VoiceMailMain(${CALLERID(num)})
exten => 8500,2,Hangup()

voicemail.conf
;no password for voicemail
[default]
301 => ,301,root@localhost

sip.conf
[301]
mailbox=301
type=friend
username=301
callerid=301
host=dynamic
context=default
secret=123456
qualify=yes

Hi bwilks,

Thanks for your help! The “restart now” command did it. I find this strange because I had restarted the machine several times, thinking Asterisk would reload its configuration files when it started up but it didn’t seem to. Oh well, voicemail is now working and I’m quite pleased with Asterisk in general so far. It’s a wonderfully flexible and powerful system.

Thanks again,
Patrick