PlugPBX Forums
February 23, 2012, 02:17:12 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: New build  (Read 903 times)
cannibalflea
Newbie
*
Posts: 12


« on: June 12, 2011, 02:50:24 PM »

Hi all,

After trashing my original setup (which was basically the original PlugPBX image) during a bid to upgrade the kernel, I decided to rebuild the entire system piece by piece. So following the various guides here on the forum and elsewhere on the net, I've managed to successfully install most of the required components on my SheevaPlug (Debian, MySQL, PHP, Apache, Webmin, Samba, Development Tools, etc.). This, however, was no small feat especially for a linux idiot like me. I’ve followed advice from others on the forum and documented everything I did and imaged my system at various steps to insure I can go back if I mess up.

Now I'm at the point that I'm trying to setup the actual phone system, and before going head first and making a mess, I decided to ask what is the latest consensus on how to setup Asterisk, FreePBX and the other pieces of required software. From what I understand, there are some problems, but I'm not sure if they really affect what I want to do with my system. What I'm trying to do is to basically setup a system to record specific conversations on my regular phone line using a Linksys SPA3102. This worked relatively well with the stock PlugPBX image. There was a problem with the system sometimes going to voicemail prematurely and a problem with the system clock running too fast (hence the kernel upgrade). Keeping this in mind, which versions of these applications should I use? In the future I may want to extend the capabilities of the system, so it would be nice to have a system that could do that, if possible.

As a side note, I’ve also been successful in using my plug to act as a print server and allow me to print from an iPhone to my network laser printer. There are some tutorials about this online (otherwise I would have no clue), but I’ll be happy to share my notes on this if people are interested.

Any help would be appreciated.

Regards,
Al
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 419



« Reply #1 on: June 20, 2011, 04:19:03 AM »

Well, in my case, how I built the original image is a suggested system silly.

Beyond that, you have to figure out what best suits you. You've asked an opened ended question that can be answered about 100 different ways, I doubt anyone is going to jump at this one. I hate to say it, but i'd suggest you learn about FreePBX's various features, once you read about each module and what it does, you will be able to understand what will best apply to your specific needs. I don't repost content already out there on the intarwebs, so I'd consult with your friendly Google monster and ask
Logged

-Greg
cannibalflea
Newbie
*
Posts: 12


« Reply #2 on: June 20, 2011, 12:32:06 PM »

Hi Greg,

Thanks for the reply. I understand what you are saying and I was hoping that I could do that exact same thing in terms of picking and choosing the features. Following the guides here and elsewhere, I really found it educational and liberating to install every piece by itself and demistify the stock image that you provided.

I guess my question was really about which versions of Asterisk and FreePBX to use (although reading my post this wasn't very clear). There is a number of the posts that go back and forth between versions and the manner of installing the packages (build from source or use apt-get) that actually works on sheevaplug. And being new to this, I just wanted to get the latest concensous on which version works on Debain on SheevaPlug with the least amount of headache. The only reason I included my general requirements was so that you and others have some idea of what I will want to do and can suggest the most appropriate versions.

Regards,
Al

PS: I know you live in Canada, but do you live in Vancouver by any chance?
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 419



« Reply #3 on: June 20, 2011, 04:11:41 PM »

Hi Greg,

Thanks for the reply. I understand what you are saying and I was hoping that I could do that exact same thing in terms of picking and choosing the features. Following the guides here and elsewhere, I really found it educational and liberating to install every piece by itself and demistify the stock image that you provided.

I guess my question was really about which versions of Asterisk and FreePBX to use (although reading my post this wasn't very clear). There is a number of the posts that go back and forth between versions and the manner of installing the packages (build from source or use apt-get) that actually works on sheevaplug. And being new to this, I just wanted to get the latest concensous on which version works on Debain on SheevaPlug with the least amount of headache. The only reason I included my general requirements was so that you and others have some idea of what I will want to do and can suggest the most appropriate versions.

Regards,
Al

PS: I know you live in Canada, but do you live in Vancouver by any chance?

Nope, South Western Ontario...

Well you have a few ways of looking at this.

My released image is old. Yep. Its like 1+ year old now, Built on Asterisk 1.6.x and FreePBX 2.5.x or something.

They are stable. I didn't need feature XYZ, and they had enough of the core feature set to satisfy 98% of the likely end users. So thats what I went with.

We have guys (and gals) here running stuff much newer, some upgraded to FreePBX 2.8 (you can do that via the web interface), some have built asterisk 1.8.x to use with the up/down google voice integration (always better to spend a few bucks and have something that won't anger the wife frankly)....

Apt vs compile from source, so far, I've had better luck compiling from source for Asterisk. That too is hit and miss with what is in Apt. I've gone both ways before.

Some guys like to run bleeding code, latest versions, and all that Jazz.

I'm an engineer of sorts, used to build big scary machines and control systems. If it works, you leave it the heck alone. So in my case, I built PlugPBX 1.00 - and it works. Yah, flashyrbid gets around crappy SD cards, and you need a newer kernel to get serial console working cleanly on the newer HW rev of Sheevas', and some say the RTC floats, but its all on the todo list.

Point is, for as long (actually longer) PlugPBX.org went live, my little sheevaplug is sitting in my basement (along with others), quietly answering calls, saving voicemail, emailing messages, gtalking us who calls the house, and placing and receiving boring old calls - and the wife isn't complaining. It just works.

So unless you need to have feature XYZ and will just die without it, you likely will get everything you need from the stock image, its purely there for ease. I put these forums here to infect people with the hobby and passion to 'roll their own', and infect more minds with embeded fun, Linux, and what a real OS should be (Unix-alike).

All part of the evil plan. What I've done is exported a small hobby of mine into other peoples minds muhahahah!

You are too focused on the version of nut A, and bolt B - and need to step back and just focus on - what the hell do you want the PBX to do - and what 'value' can you leverage version agnostic to get there... Believe me, there is a ton.


 
Logged

-Greg
cannibalflea
Newbie
*
Posts: 12


« Reply #4 on: August 09, 2011, 11:56:41 PM »

Hi Greg,

Sorry for the long delay in responding to your last message. I was sent away for work again and things were left as they were for a couple of weeks. I just started working on things again and it seems like I've managed to install asterisk and freepbx following tutorials on the forum (this one in particular: http://forums.plugpbx.org/index.php/topic,110.0.html). However, I'm having a problem with freepbx loading at startup. When I reboot the system I get the following error:

Code:
Starting FreePBX ...

Please wait...
Starting Samba daemons: nmbd smbd.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
/usr/local/sbin/amportal: line 46: [FATAL]: command not found

/var/lib/asterisk/bin/freepbx_engine: line 98: [FATAL]: command not found
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in '/etc/asterisk' is set to  but the directory
does not exists. Attempting to create it with: 'mkdir -p '

mkdir: missing operand
Try `mkdir --help' for more information.
**** ERROR: COULD NOT CREATE  ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
saned disabled; edit /etc/default/saned
Starting OpenBSD Secure Shell server: sshd.
Starting MTA: exim4.
startpar: service(s) returned failure: mysql ... failed!

So naturally asterisk doesn't load. However, if I run "amportal start" or "/etc/init.d/freepbx start" after logon, everything works okay and asterisk loads. I've looked around and there is another person who has reported this but there is no solution yet. There is also something related to this about the effect of using a different password for the mysql user "asteriskuser". However, since I can start asterisk using amportal after logon I don't think that's the problem. I'm beginning to suspect it has something to do with mysql failing to load (or at least the report that it failed). After logging in I've noticed that mysql has actually started fine, so I'm wondering if this is simply a timing issue or am I missing something?

Thanks for your help,
Al
Logged
cannibalflea
Newbie
*
Posts: 12


« Reply #5 on: August 10, 2011, 11:36:59 AM »

Oh and I have another question: Is it possible to recover my phone system settings from my old setup? The SD card is fine and I can attach it to another computer to view files. However after an ill-fated attempt to update the kernel, it just won't boot anymore. I was just wondering if it is possible to recover any of my phone setup from the files.

Thanks.
Logged
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 419



« Reply #6 on: August 14, 2011, 07:18:41 AM »

Oh and I have another question: Is it possible to recover my phone system settings from my old setup? The SD card is fine and I can attach it to another computer to view files. However after an ill-fated attempt to update the kernel, it just won't boot anymore. I was just wondering if it is possible to recover any of my phone setup from the files.

Thanks.

Most configuration details are in SQL, some in the /etc/asterisk files. One option would be using the SQL database and various asterisk files under /etc/asterisk on the new system. This is really a pure FreePBX question, and asking the FreePBX guys on their forums would make more sense.

If you have FreePBX running, you can backup all your settings to a zip file, and compatable versions allow you to import/restore your settings. Someone on here also wrote a shell script that does this nightly to a remote FTP server as well (script is on these forums somewhere)

Your options are limited at this point, but its not impossible.

Best practice? Get it working - image your entire SD card onto a spare (or keep disk images handy) AND ....do a backup with FreePBX itself.
Logged

-Greg
PlugPBX Admin
Administrator
Sr. Member
*****
Posts: 419



« Reply #7 on: August 14, 2011, 07:20:30 AM »

Stop FreePBX, Stop MySQL.

Attempt to start FreePBX, see if you get the same error. You can at least further verify your theory and investigate further from that decision tree. Could be a timing issue, that would be the simplest explanation. You could do a dirty trick with  a 'sleep 30' command in a script where needed (pause 30 seconds) or more elaborate things.
Logged

-Greg
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Install SimpleMachinesForum web hosting Valid XHTML 1.0! Valid CSS!