Broadband-Hamnet™ Forum :: VoIP
Welcome Guest   [Register]  [Login]
«StartPrev12NextEnd»
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2013-01-02- 21:05:12 
KF7LJH
Member
Joined: 2012-01-26- 14:21:48
Posts: 6
Location: Portland, OR

I just wanted to say thanks for the awesome writeup! You made the setup simple, took me about 15 min. 

While I don't have any other mesh-nodes connected, I figured I'd try to establish a connection with a ham friend who has a hardware voip phone, but we'd do it over the internet. With some natting on our home firewalls it worked - I called his ext from a sip client on my smartphone and we had great voice quality. All from the mesh router. Very cool.

I was going to put Asterisk on my HSMM-MESH RaspberryPi file/web/aprs server, but why bother, this works great. 


Thanks for taking the time to do the write up and provide the packages.


73 KF7LJH

IP Logged
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2013-01-03- 07:00:03 
KF7LJH
Member
Joined: 2012-01-26- 14:21:48
Posts: 6
Location: Portland, OR


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



IP Logged
Last Edited On: 2013-01-03- 07:05:34 By KF7LJH for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2013-01-03- 09:24:55 
Joined: 2024-04-16- 06:10:14
Posts: 0
Location

K5KTF & KF7LJH,

Thanks for your input in fixing issues and expanding the asterisk guide. When I get back to my university (where my many HSMM-MESH nodes are located), I will try these out and update the guide accordingly. Thank you both for your support!



The symbolic link won't survive a reboot though and I need to figure out a way to recreate that link at startup.

The easiest thing you can do is edit the /etc/init.d/boot file and add a new line inside the brackets that reads: ln –s /usr/lib/asterisk/sounds /var/lib/asterisk/sounds

IP Logged
Last Edited On: 2013-01-03- 09:25:21 By for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2013-01-31- 06:59:22 
WI7B
Member
Joined: 2013-01-31- 12:42:42
Posts: 2
Location: Alki Point
 
I am new to HSMM-MESH. I have converted a WRT54GL to a mesh node. Doing the same to a WRT54GL and WRT54G. My only laptop is Win7; have PuTTY operational. I would really appreciate an install guide for windows based on KF5JIM's linux setup of Asterisk native on nodes. Can someone help? ThanX! WI7B
IP Logged
 Subject :Re:Re:Asterisk Running Natively on HSMM-MESH Node.. 2013-01-31- 07:20:31 
Joined: 2024-04-16- 06:10:14
Posts: 0
Location

Sure thing! It'll be just a little bit different, but I'll make a windows-friendly version. I'll have an updated guide for windows by this weekend.

EDIT:  Please find attached the updated version for Windows.  This document is still a WIP.



IP Logged
Last Edited On: 2013-02-04- 05:24:23 By for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2015-07-26- 11:35:39 
K7JLT
Member
Joined: 2015-01-10- 13:19:57
Posts: 2
Location
Thanks for the updated Installation guide. Following the guide I get the following error message when installing the asterisk16 package on a WRT54GS V1.1 router: "Cannot satisfy the following dependencies for asterisk16 libpthread". Any ideas where I screwed up? John K7JLT
IP Logged
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2015-07-27- 01:07:35 
KD5RCW
Member
Joined: 2015-07-01- 06:31:18
Posts: 2
Location

I ran into the same error. I ended up connecting the node to the internet and installing the package through the admin tab. The asterisk package installed fine after that.

IP Logged
Last Edited On: 2015-07-27- 01:13:24 By KD5RCW for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2018-03-07- 22:53:05 
KK4GAF
Member
Joined: 2018-01-05- 11:05:17
Posts: 6
Location

I have Asterisk running on a Raspberry Pi with no issues. I tried the install on one of the 54GS. And after a boot it now has no WAN LED. It is not visible from anywhere. Luckily I have three more nodes to use. 




IP Logged
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2018-03-07- 22:53:43 
KK4GAF
Member
Joined: 2018-01-05- 11:05:17
Posts: 6
Location





IP Logged
Last Edited On: 2018-03-07- 22:57:46 By KK4GAF for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2018-03-07- 22:54:18 
KK4GAF
Member
Joined: 2018-01-05- 11:05:17
Posts: 6
Location




IP Logged
Last Edited On: 2018-03-07- 22:57:25 By KK4GAF for the Reason
 Subject :Re:Asterisk Running Natively on HSMM-MESH Node.. 2018-03-07- 22:54:36 
KK4GAF
Member
Joined: 2018-01-05- 11:05:17
Posts: 6
Location




IP Logged
Last Edited On: 2018-03-07- 22:56:47 By KK4GAF for the Reason
«StartPrev12NextEnd»
Page # 


Powered by ccBoard


SPONSORED AD: