I am an Asterisk newbie trying to deploy a VoIP setup in my LAN. While I have managed to configure most of the settings, voicemail is still giving me problems. My test setup has two extensions 7010 and 7020 defined. When I try to leave a voice message for an extension, say 7020, Asterisk records the message and sends it to the email account corresponding to the extension. The attachment with the email contains the recording. Till this, it works fine. However, when I try to fetch the same voice message through VoiceMailMain, the following happens: The IVR claims that there is one unread message. When I press the options to fetch this message, nothing plays. The following error pops up on the CLI:
WARNING[8503296]: File format_wav_gsm.c, Line 128 (check_header): Unexpected header size 16
WARNING[8503296]: File file.c, Line 379 (ast_filehelper): Unable to open fd on /var/spool/asterisk/vm/7020/Old/msg0000
WARNING[8503296]: File file.c, Line 725 (ast_streamfile): Unable to open /var/spool/asterisk/vm/7020/Old/msg0000 (format GSM): No such file or directory
WARNING[8503296]: File app_voicemail.c, Line 2082 (vm_execmain): Unable to play message /var/spool/asterisk/vm/7020/Old/msg0000
And, when I try to look into the folder, the message is there. When I try to move the message into different folders, the IVR moves them fine. However, it cannot playback any message.
The second issue:
I tried to setup voicemail so that when somebody dials *7010, they should automatically get into the mailbox of account 7010 and they should be asked for the password. However, with my current extensions.conf, it does not happen. When I dial *7010, I am asked for both the mailbox number and password. When I enter them both, I am successfully authenticated. Here are excerpts from my extensions.conf:
; Template used for all extensions
exten => 7010,1,NoOp(Incoming call for VJ at ext. 7010)
exten => 7010,2,Dial(IAX2/7010&SIP/7010,30,tr)
exten => 7010,3,Voicemail(u${EXTEN})
exten => 7010,4,Hangup
exten => 7010,102, Voicemail(b${EXTEN})
exten => 7010,103, Hangup
; For accessing VoiceMail
exten => _*7X.,1,NoOp({EXTEN:1)
exten => _*7X.,2,VoiceMailMain,{EXTEN:1}
exten => _*7X.,3,Hangup
Excerpts from sip.conf
[7010]
type=friend
secret=010
auth=md5
host=dynamic
nat=yes
reinvite=no
canreinvite=no
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=ilbc
context=autocontext
mailbox=7010
callerid=“V J”<7010>
I am running Asterisk on a XServe G5 running Mac OSX Panther Server.
Thanks in advance,
J