Broadband-Hamnet™ Forum :: VoIP
Welcome Guest   [Register]  [Login]
«StartPrev12NextEnd»
 Subject :Raspberry PI & Asterisk.. 2013-08-05- 17:19:32 
K5YKG
Member
Joined: 2013-06-24- 16:33:19
Posts: 14
Location: Cypress, TX (NW Harris Co near Houston)
      

I have ordered a Raspberry PI Mod B card with wall wart.  I have downloaded AsteriskNOW.  I read that Linux Debian is the preferred OS so thought I'd order an SD card preloaded.  I am assuming (ugh!) both the OS and AsteriskNOW should both be on that SD card.  What would be the recommended minimum size I should get (8 GB, 16 GB or 32 GB) assuming I might want to load additional experimental program(s) in the future?

I was super-impressed with the demos and information at this past weekend's Austin Summerfest 2013.  Thanks to all the presenters for your time and effort.  73 de Austin K5YKG near Houston.


IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-05- 17:33:43 
KD5MFW
Admin
Joined: 2010-01-18- 23:02:11
Posts: 104
Location
View the You Tube video for ALL the details of the Raspberry Pi Asterisk PBX set up. It explains everything. -Glenn KD5MFW
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-05- 17:37:41 
KD5MFW
Admin
Joined: 2010-01-18- 23:02:11
Posts: 104
Location
Looks like the great editor edited out my link. Go to the top right of the web page screen and do a search (using the search box) for KF5JIM and look for his video on the Pi PBX. -Glenn KD5MFW
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-05- 17:37:57 
K5YKG
Member
Joined: 2013-06-24- 16:33:19
Posts: 14
Location: Cypress, TX (NW Harris Co near Houston)
      
Thanks Glenn... I'll have to browse for that. Again, thanks for your excellent presentation and explanation at the Summerfest. You have whetted my appetite! 73. Austin K5YKG
IP Logged
 Subject :Raspberry PI & Asterisk.. 2013-08-05- 20:32:55 
wx5u
Member
Joined: 2013-01-02- 00:30:45
Posts: 188
Location: Austin, TX

Install Asterisk on a Raspberry Pi for use on a Broadband-HamnetTM network - Paul KF5JIM

IP Logged
I'm not part of the development team, so take what I say with a grain of salt. I'm also easily confused.

Check out the free Wireless Networking Book
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-18- 05:32:55 
KI4WPI
Member
Joined: 2012-09-16- 04:20:26
Posts: 19
Location: Tamarac, FL
I finally figure it out and have two Linksys SPA1001 fully working and very well through the Raspberry-Asterisk PBX server. These modules are great for hooking up to a fax machine through VoIP or using any landline phone into the mesh.. Setup was easy, these instructions were on the spot for this: http://www.voiptuto.com/?q=en/spa1001 One other note: You have to enable all nodes (check the box) for "Gateway Mesh" in "Basic Setup" for a remote node to connect it's VoIP phone to the PBX Mesh node.. Thanks to KF5JIM for his help with the tutorial!! -Gary KI4WPI
IP Logged
Gary Michalosky
KI4WPI
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-20- 12:03:27 
KI4WPI
Member
Joined: 2012-09-16- 04:20:26
Posts: 19
Location: Tamarac, FL
I had an issue this week on my Asterisk-pi OS, I decided to leave everything on and running the past few days while I was away at work, etc. Today when I had a few minutes to check everything, I discovered that the Asterisk-pi stopped functioning and would not come back up on reboot, i turned off the Pi, removed the SD card and replaced it with another one which the Pi is working fine.. Absent the SD drive being removed while the Pi was still on (which I didn't by the way) Any thoughts as to what may have froze up Asterisk when there was no activity on it? Is it possible that the cheap (2 for 9bucks at Sam's club) SanDisk 4Gb SD cards are indeed "cheap" and perhaps there is a better SD drive someone could recommend? Gary-KI4WPI
IP Logged
Gary Michalosky
KI4WPI
 Subject :Re:Re:Raspberry PI & Asterisk.. 2013-08-20- 21:16:27 
KJ4AJP
Member
Joined: 2013-03-24- 12:21:59
Posts: 35
Location: NW Tennessee EM56ni
 

Gary-KI4WPI -> Is it possible that the cheap (2 for 9bucks at Sam's club) SanDisk 4Gb SD cards are indeed "cheap" and perhaps there is a better SD drive someone could recommend?

I check here before I buy:
http://elinux.org/RPi_SD_cards

I've had good luck so far.

IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-22- 01:15:57 
KI4WPI
Member
Joined: 2012-09-16- 04:20:26
Posts: 19
Location: Tamarac, FL
Thanks for the info!!
IP Logged
Gary Michalosky
KI4WPI
 Subject :Re:Raspberry PI & Asterisk.. 2013-08-22- 04:32:14 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

I would recommend the class 10 SDHC cards over the cheap class 4 cards. The reason is that the class 10 cards are much faster than the class 4. I have had an RPi Asterisk solution on both class cards and have noticed a definite speed improvement with the 10's over the 4's.

You can find out the class of the card by either looking on the packaging or on the card itself. There will be an almost complete circle with a number inside...that's the class of the card.

IP Logged
Last Edited On: 2013-08-22- 04:32:45 By KF5JIM for the Reason
My opinions and views expressed here are solely my own.
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-08- 14:44:25 
KI6WDY
Member
Joined: 2013-07-15- 13:27:16
Posts: 14
Location
I watched KF5JIM’s Video on setting up Asterisk on a Raspberry Pi and I was pleased to see that my installation went just as he had explained it. Everything went well with only one problem. When I went to set up extensions in the Free PBX interface, the extension was grayed out in the Application drop down menu, Help!
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-08- 16:28:49 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

I am glad to hear the video went well. As for your little problem Asterisk is probably not loading because it cannot set the system time. Take a look here, and install a fake harware clock: http://www.raspberry-asterisk.org/documentation/#withoutnet
This should solve your problem

IP Logged
My opinions and views expressed here are solely my own.
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-08- 17:10:22 
KI6WDY
Member
Joined: 2013-07-15- 13:27:16
Posts: 14
Location
It is usually something small, I will try that and let you know. BTW Liked your video.
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-11- 09:47:47 
AD7PE
Member
Joined: 2013-09-27- 10:27:39
Posts: 10
Location
I used the latest RasPBX image, so I had Asterisk working, then I added the OSLR and OSLR plugin packages. I've not tried HSMM-Pi on RasPBX, I tried it on a rasbian without luck, but RasPBX is rasbian based, so it should work.
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-12- 13:03:31 
KI6WDY
Member
Joined: 2013-07-15- 13:27:16
Posts: 14
Location
Got everything working out to the VOIP A-D phone adaptors, now I need to find a coupel of analoge phones to fully test the system. Also I noticwed that the trick with the fake clock loaded up but it did not fake the system, I hooked up a network wire from my Internet gateway to the WAN connection on the mesh router and that made it able to set up extensions. So I suspect that when I want to add more extensions to my mesh I will have to have a Internet connection to do so. I am now wondering it I connect the same phone adapter to the same mesh node if it will assign the same IP to it?
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-12- 13:05:04 
KI6WDY
Member
Joined: 2013-07-15- 13:27:16
Posts: 14
Location
Got everything working out to the VOIP A-D phone adaptors, now I need to find a coupel of analoge phones to fully test the system. Also I noticwed that the trick with the fake clock loaded up but it did not fake the system, I hooked up a network wire from my Internet gateway to the WAN connection on the mesh router and that made it able to set up extensions. So I suspect that when I want to add more extensions to my mesh I will have to have a Internet connection to do so. I am now wondering it I connect the same phone adapter to the same mesh node if it will assign the same IP to it?
IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-13- 03:16:29 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

KI6WDY,

If you connect the same phone adapter to the same mesh node, it will assign it the next available IP address unless it does not have the MAC address permanently assigned to an IP address or it is still in the dhcp lease. If it gets assigned a different IP address, your registration settings will update asterisk with the newest IP information.

IP Logged
My opinions and views expressed here are solely my own.
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-14- 02:15:54 
KJ4AJP
Member
Joined: 2013-03-24- 12:21:59
Posts: 35
Location: NW Tennessee EM56ni
 

First off, a big thanks to KF5JIM for making it a snap to get this going.  I currently have 3 hardware IP phones and 3 ATAs on my 6 BH nodes.

Back when there was a discussion of hold music vs FCC rules, I posted a question that didn't receive an answer, since this topic is active I figure I'll give it a try here.  I have a Morse code wav file similar to what one would use as a CW ID for a voice repeater that I want to take the place of the stock FreePBX MOH in all instances of operation.  In Settings->Music On Hold I found I had to create a new Category (I called it "Mesh"), and in Connectivity change both my Inbound and Outbound Routes (Google Voice) from "default" to "Mesh" and then my wav file would play when the off-Mesh party was put on hold.

For the life of me, I can't find where to change the MOH from "default" to "Mesh" for extension to extension calls within the PBX.  Does this have to be done from the CLI?

Thanks for any help!

IP Logged
 Subject :Re:Raspberry PI & Asterisk.. 2013-10-14- 06:55:34 
KF5JIM
Future Astronaut
Joined: 2013-07-17- 12:13:36
Posts: 250
Location: Nederland

So looking at it, it seems pretty difficult.  There is no easy solution.  In older versions of FreePBX, that feature was available, but now it has been depreciated.  This is the only thing I have found, but I cannot get it to work.

https://issues.asterisk.org/jira/browse/ASTERISK-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

exten=> s,1,Answer()
exten=> 999,1,Set(mohclass = my-music)
exten=> 999,2,Queue(my-queue|tn)
exten=> 999,3,Hangup()

IP Logged
Last Edited On: 2013-10-15- 18:47:39 By KF5JIM for the Reason
My opinions and views expressed here are solely my own.
 Subject :Re:Re:Raspberry PI & Asterisk.. 2013-10-16- 02:20:40 
KJ4AJP
Member
Joined: 2013-03-24- 12:21:59
Posts: 35
Location: NW Tennessee EM56ni
 

And then right after that, it states:

SetMusicOnHold(myclass)

Does the same thing.  I really appreciate you looking into this, I have to do a presentation and demo the nodes for a local club the first of next month so for now I don't want to break something that's working.  When I get past that I may get a second SD card and learn some more Linux. <g>


One more thing, like fake-hwclock, I didn't see this mentioned in the video and had to look it up.  We're used to simply unplugging wall-warts on our routers, but this user's PBX in a Flash page recommends using:

root@pbx:~$ amportal stop

root@pbx:~$ shutdown -h now

For a graceful shutdown.  I assume using Putty and the same commands at the root@raspbx:~# prompt would work?  Or do you have another recommendation? 

I take it FreePBX used to have a shutdown button.  Another great idea depreciated.  :-)



[KF5JIM 2013-10-14- 06:55:34]:

So looking at it, it seems pretty difficult.  There is no easy solution.  In older versions of FreePBX, that feature was available, but now it has been depreciated.  This is the only thing I have found, but I cannot get it to work.

https://issues.asterisk.org/jira/browse/ASTERISK-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

exten=> s,1,Answer()
exten=> 999,1,Set(mohclass = my-music)
exten=> 999,2,Queue(my-queue|tn)
exten=> 999,3,Hangup()


IP Logged
«StartPrev12NextEnd»
Page # 


Powered by ccBoard


SPONSORED AD: