For KF5JIM and K5KTF, I wanted to let you guys know I got voicemail working. It’s pretty simple.
I’m assuming you’ve followed FF5JIM’s instructions and have that part working ok.
I’ve attached the two required binaries, download and copy them to the mesh node the same way you copied the asterisk files to the node.
Install the packages:
ipkg install asterisk16-sounds_1.6.1-rc1-1.1_mipsel.ipk
ipkg install asterisk16-voicemail_1.6.1-rc1-1.1_mipsel.ipk
Now edit /etc/asterisk/voicemail.conf and add the following lines to the bottom:
[hsmm-mesh]
1012 => 1111,1012,test@test.com,test@test.com,attach=no
1013 => 1111,1013,test@test.com,test@test.com,attach=no
And set the user context by changing the userscontext line:
userscontext=hsmm-mesh
I also changed a few of the defaults in that file to shorten the length of messages, the number of messages, etc. The config file is well documented.
Now edit /etc/asterisk/extentions.conf and add the lines to what you’ve already entered so it looks like this:
[hsmm-mesh] exten => 1012,1,Dial(SIP/1012) exten => 1012,n,VoiceMail(1012@hsmm-mesh,u)
exten => 1013,1,Dial(SIP/1013)
exten => 1013,n,Voicemail(1013@hsmm-mesh,u)
exten => 2000,1,Answer(500)
exten => 2000,n,VoiceMailMain(@hsmm-mesh)
So you are adding one new voicemail line for each extension, and one new extension (2000) you use to get into voicemail.
Now one last piece. The asterisk voicemail sounds package loads the sounds into /usr/lib/asterisk/sounds. But the voicemail package wants them in /var/lib/asterisk/sounds. If you move the base directory to /usr/ though the spool directory will move with it, and that’s no good from a space point of view. So I made a symbolic link –
ln –s /usr/lib/asterisk/sounds /var/lib/asterisk/sounds
You may need to recreate the /var/lib/asterisk directory first.
Now restart asterisk, get back into the console, and type “voicemail show” and you should see the new voicemail boxes defined.
If you dial the extension “2000” the lady says “mailbox” – she’s asking for the mailbox number you want to get VM for. Type in 1012. Then the password, in this case it’s 1111 (from the line in voicemail.conf). from there you can get messages, set up your custom greeting, etc. This configuration keeps VM on the volatile filesystem, so VM will non survive a reboot. I think that's fine. The symbolic link won't survive a reboot though and I need to figure out a way to recreate that link at startup. I found this link helpful for figuring out the setup
Thanks again KF5JIM for you work on this – and thank you K5KTF for your work on HSMM-MESH!
KF7LJH
|