Marooned
Posts: 6
Joined: Fri Feb 22, 2013 12:56 pm

Stretch lite + Asterisk + FreePBX + Node-RED

Sun Oct 14, 2018 8:12 pm

Hi folks

I have old RPi (original model B) and would like to have working Asterisk + FreePBX + Node-RED (and some other of course like Python etc). I thought it would be as easy as having any other program/module on RPi - far from the truth.

My initial approach (as I had already Node-RED and other stuff installed) was to add Asterisk and FreePBX to existing Scratch Lite working OS. It strictly says "Manual installations of FreePBX is considered an EXPERTS ONLY exercise." and I'm not considering myself as an expert in Linux. I gave it a try anyway and failed miserably. There were so many issues I don't even know where to start. ~12h of fight ended with my KO.

So I proceeded to alternative approach - downloading prepared image based on Stretch. First difference was logging in as a root, not as pi user. Asterisk and FreePBX worked properly from the beginning so I though I was close. However, installation of Node-RED failed when trying to install Node.js. It was unhappy about root user but creating regular pi account did not change anything.

So.. ideally I would go back to working Stretch lite and somehow add working asterisk/pbx. Anyone did this and can share some hints?
I've tried those:
* http://tommy168.blogspot.com/2014/12/ra ... sk-13.html
* http://www.philipgreco.com/install-free ... risk-14-7/
* https://wiki.freepbx.org/display/FOP/In ... Debian+8.8
and even
* https://wiki.freepbx.org/display/FOP/In ... untu+18.04

If installing those apps is impossible (why?), then I can stay with the image prepared by Asterisk guys but somehow I expect more issues than not be able to install Node.js (and I would need your help here too if that approach will be better).

Thanks in advance for some help.

Marooned
Posts: 6
Joined: Fri Feb 22, 2013 12:56 pm

Re: Stretch lite + Asterisk + FreePBX + Node-RED

Thu Oct 18, 2018 1:29 pm

Did I pick the proper category? Or is the problem too rare or complicated? Do you know a better place to ask this question?
Thanks!

fruitoftheloom
Posts: 17665
Joined: Tue Mar 25, 2014 12:40 pm

Re: Stretch lite + Asterisk + FreePBX + Node-RED

Thu Oct 18, 2018 3:37 pm

Marooned wrote:
Thu Oct 18, 2018 1:29 pm
Did I pick the proper category? Or is the problem too rare or complicated? Do you know a better place to ask this question?
Thanks!

The first link is seriously out of date, whilst the other 3 do not appear to be Debian ARMHF or RPi related:


The only Raspbian Stretch image I can find is here:

http://www.raspberry-asterisk.org/downloads/


Regards NodeJS,see:

https://github.com/audstanley/NodeJs-Ra ... /README.md



https://en.wikipedia.org/wiki/Raspberry ... ifications


.
Adieu

Marooned
Posts: 6
Joined: Fri Feb 22, 2013 12:56 pm

Re: Stretch lite + Asterisk + FreePBX + Node-RED

Fri Oct 19, 2018 8:51 am

fruitoftheloom wrote:
Thu Oct 18, 2018 3:37 pm
The first link is seriously out of date, whilst the other 3 do not appear to be Debian ARMHF or RPi related
While this is true, I've tried any attempt I could find on the net. This soft does not seem to be popular.
fruitoftheloom wrote:
Thu Oct 18, 2018 3:37 pm
The only Raspbian Stretch image I can find is here:
http://www.raspberry-asterisk.org/downloads/
Yes, that's the one I used and on that image installing Node.js fails (while on clean Stretch it goes without errors).
fruitoftheloom wrote:
Thu Oct 18, 2018 3:37 pm
Regards NodeJS,see:
https://github.com/audstanley/NodeJs-Ra ... /README.md
I'll try this approach as the official one fails (only on FreePBX image).

Marooned
Posts: 6
Joined: Fri Feb 22, 2013 12:56 pm

Re: Stretch lite + Asterisk + FreePBX + Node-RED

Sat Oct 20, 2018 9:14 am

So I've managed to install node.js this way (with some bumps on the road) and also node-red (with more bumps, failing back to compile from sources). Looks like there is some problem with root account available in RasPBX image - lots of "not enough permissions" messages (I would guess, root should have all access). This unfortunately causing that Node-RED can't install all nodes/flows/palettes. Some installs ok, some fails with permission errors.

At this point my linux knowledge is not enough to have pbx/asterisk and nodejs/node-red in the same system. Once again Linux proved to be only for pr0 heh.

So if I would ever really need both systems, I would have 2 separate RPi for that (which sounds absolutely ridiculous).

Well, I tried.
Thanks.


Marooned
Posts: 6
Joined: Fri Feb 22, 2013 12:56 pm

Re: Stretch lite + Asterisk + FreePBX + Node-RED

Fri Oct 26, 2018 7:50 am

Woo hoo! It took ~8h (or even more, I left it for the night) but finally:
"You have successfully installed FreePBX" (well, that message was somewhere in the middle of overall time)
Although I ran out of space (new bigger SD is on my way), all seems to be working fine.

Interesting that for so many searches I haven't stumbled upon that page.
Big thanks!

Return to “Raspbian”