Voice mail - asterisk do not record the voicmail

Hi all, I am a newcomer in asterisk environment.
I am looking for help due to the fact i can not resolve the issue related with voicemail.
The asterisk do not record any voicemail (allso do not create folders/files in directory /var/spool/asterisk/voicemail/… )
When i call to james after 5 seconds the connections hangup.
my simple configuration is below:

VOICEMAIL.CONF:
[general]
#include vm_general.inc
#include vm_email.inc
format=wav49|gsm|wav
serveremail=asterisk
attach=yes
skipms=3000
maxsilence=10
silencethreshold=128
maxlogins=3
emaildateformat=%A, %B %d, %Y at %r
pagerdateformat=%A, %B %d, %Y at %r
sendvoicemail=yes
[zonemessages]
eastern=America/New_York|‘vm-received’ Q ‘digits/at’ IMp
central=America/Chicago|‘vm-received’ Q ‘digits/at’ IMp
central24=America/Chicago|‘vm-received’ q ‘digits/at’ H N 'hours’
military=Zulu|‘vm-received’ q ‘digits/at’ H N ‘hours’ 'phonetic/z_p’
european=Europe/Copenhagen|‘vm-received’ a d b ‘digits/at’ HM
[dafault]
100 => 1234,james,james@examle.com
200 => 1234,mat,mat@examlpe.com


EXTENSIONS.CONF:
[phones]

exten => 100,1,NoOp(Call for James)
same => n,NoOp(Second Line)
same => n,Playback(yourcallisimportant)
same => n,Dial(SIP/james,5)
same => n,VoiceMail(${EXTEN}@default)
same => n,PlayBack(vm-goodbye)
same => n,Hangup

exten => 200,1,NoOp(First Line)
same => n,NoOp(Second Line)
same => n,Dial(SIP/mat,10)
same => n,VoiceMail(${EXTEN}@default)
same => n,Hangup

SIP.CONF:
[general]
bindport=5060
udpbindaddr=172.168.1.254:5060
context=public
allowoverlap=no
udpbindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
transport=udp
srvlookup=yes
qualify=yes
nat=yes
[authentication]
basic-options
dtmfmode=rfc2833
context=from-office
type=friend
natted-phone
directmedia=no
host=dynamic
public-phone
directmedia=yes
my-codecs
disallow=all
allow=ulaw
allow=gsm
allow=g729
allow=alaw
language=en

[james]
type=friend
callerid=“James” <100>
username=james
context=phones
allow=ulaw,alaw
secret=12345678
host=dynamic
mailbox=100@default
[mat]
type=friend
callerid=“Mat” <200>
username=mat
context=phones
allow=ulaw,alaw
secret=87654321
host=dynamic
mailbox=200@default

localhost*CLI> voicemail show users
Context Mbox User Zone NewMsg
dafault 100 james 0
dafault 200 mat 0
dwa 300 artur 0
3 voicemail users configured.

during the calls i see this output in the console:
== Using SIP RTP CoS mark 5
– Executing [100@phones:1] NoOp(“SIP/james-00000000”, “Call for James”) in new stack
– Executing [100@phones:2] NoOp(“SIP/james-00000000”, “Second Line”) in new stack
– Executing [100@phones:3] Playback(“SIP/james-00000000”, “yourcallisimportant”) in new stack
– <SIP/james-00000000> Playing ‘yourcallisimportant.ulaw’ (language ‘en’)
– Executing [100@phones:4] Dial(“SIP/james-00000000”, “SIP/james,5”) in new stack
== Using SIP RTP CoS mark 5
– Called SIP/james
– SIP/james-00000001 is ringing
– Nobody picked up in 5000 ms
– Executing [100@phones:5] VoiceMail(“SIP/james-00000000”, “100@default”) in new stack
– Executing [100@phones:6] Playback(“SIP/james-00000000”, “vm-goodbye”) in new stack
– <SIP/james-00000000> Playing ‘vm-goodbye.ulaw’ (language ‘en’)
– Executing [100@phones:7] Hangup(“SIP/james-00000000”, “”) in new stack
== Spawn extension (phones, 100, 7) exited non-zero on 'SIP/james-00000000’
localhost*CLI>

according to the above information it should execute the voice mail (-- Executing [100@phones:5] VoiceMail(“SIP/james-00000000”, “100@default”) in new stack) but it plays the m-goodbye message.

Your voicemail context is ‘dafault’ where your dialplan is calling ‘default’

Those are different strings if you can’t tell.

1 Like

Thank you
vielen Dank
Dziękuje
merci beaucoup