How to create a voicemail box only

I want to set up an after-hours voice mail box for callers.

I set up an extension and in the Voice Menu, I configured option 1 to go to this extension. When I press it, it hangs up.

users.conf
[4002]
callwaiting=no
cid_number=
context=numberplan-custom-2
email=sales@thinkfsi.com
fullname=Sales Mailbox
group=
hasagent=no
hasdirectory=no
hasiax=no
hasmanager=no
hassip=no
hasvoicemail=yes
host=dynamic
mailbox=4002
secret=
threewaycalling=no
vmsecret=1234
zapchan=
registeriax=no
registersip=no
canreinvite=no
nat=no
dtmfmode=rfc2833
disallow=
allow=

extensions.conf

comment=AfterHours
alias_exten=3002
include=default
exten=s,1,Answer
exten=s,n,Background(/var/lib/asterisk/sounds/record/fsi_after_hours)
include=default
exten=s,n,WaitExten(90)
exten=1,1,Goto(default|4002|1)
exten=2,1,Goto(default|4002|1)
exten=*,1,Goto(default|8500|1)

Try to make the connection to the context: context=numberplan-custom-2

and not to default.

So write in extension.conf in

[numberplan-custom-2]


I figured this out by looking at the [demo] context.

I needed to use Voicemail(1234,u) and not GoTo

u only need to include your context in extensions.conf once. (im talking about the include=default like u wrote)