Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Guide for installing Asterisk and FreePBX
stevester
Pro
Posts: 136
Permalink
Post Guide for installing Asterisk and FreePBX
on: September 18, 2012, 02:29
Quote

Found a guide here for installing asterisk/freepbx on DebWRT. The only modification I made was to ignore the sections regarding installation of package "linux-source-2.6" and instead copy the linux source built from SVN to the rootfs.

http://blog.keer.info/debian-asterisk-freepbx-complete-installation-guide/

krystian
Newbie
Posts: 1
Permalink
Post Re: Guide for installing Asterisk and FreePBX
on: October 14, 2012, 01:15
Quote

great find!

would you mind telling me, what kind of hardware do you use with Asterisk?

Thanks,
Krystian

stevester
Pro
Posts: 136
Permalink
Post Re: Guide for installing Asterisk and FreePBX
on: October 15, 2012, 07:48
Quote

I'm using the Asus RT-N16 router. If you do try this, I would suggest you also modify the conf files "my.cnf" & "apache2.conf" to decrease the memory burden on your router. With that being said, it did run just fine under normal settings.

Hope this helps!

stevester
Pro
Posts: 136
Permalink
Post Re: Guide for installing Asterisk and FreePBX
on: November 2, 2012, 03:09
Quote

Lessons learned:

Mysql: You should not use inndb tables, instead use myisam as it will run much leaner. Even with tweaking the "my-small.cnf" mysql was using %20 of memory (Total memory on device is 128mb). After converting innodb tables to myisam and disabling innodb alltogether mysql memory usage was down to only 5%.

Asterisk: While it seemed like a good idea to try out the "Low Memory" compiler flag in asterisk because of the limited available memory on a router, turns out it is quite unstable and resulted in a segmentation fault on my router. While I still intend to research this further, I'd advice to be careful with this one. As far as call quality I would recommend avoiding processor intensive codecs such as g729 or gsm. Also I would avoid scenerios in which the audio stream needs to be transcoded (i.e. having a sip trunk which utilizes gsm and client phones using g711). Because of the low processing power available, I would match the codecs of your phones with that of your primary sip trunk.

Apache: Can be replaced by lighttpd and you will save a bit of memory. But really the big memory hog here is not apache itself but rather php. I am currently using the prefork module and have tuned it to use less memory but am investigating using the worker module as some have suggested it runs more effeciently.

Webmin: While it comes with its own webserver I thought to try hosting it under apache. This is not recommended, sure there were memory savings but at the cost of not being able to use advanced themes. The webmin site discourages doing this.

Overall my goal was to get the lamp stack to use as little memory as possible as on my system the only thing I was "hosting" was the freepbx page and the only user is me. If the 128mb rt-n16 was configured as a dedicated web server and tuned properly you would be able to have about 30-40 concurrent connections to the webserver by my estimates. For a small business or personal webpage this could still be quite useful.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.023 seconds.