Need help with my PBX (P.I.A.F.)

DocGreen

Well-Known Member
Reaction score
44
Location
South Bend, IN
I recently migrated my PBX from an old Dell Dimension over to an Asus netbook, and have run into a hiccup. Hoping someone here can point me in the right direction, as my post on the PIAF forum isn't getting much attention. :(


I followed a guide on the PIAF website to do the migration... basically I used Incredible Backup to backup the old PBX, then restored it to a fresh install of PIAF on the new machine. Everything is working perfectly EXCEPT for IncredibleFax. I'm able to get into the AvantFax GUI and see all my old faxes and everything... but all 4 of the IAX modems are showing "please wait."

I've tried restarting the service, rebooting the machine, but still no joy. Beyond that, I'm not sure what else to try.


Any ideas?
 
The Hylafax-Avantfax-IAXModem setup on there can be VERY tricky.
Can be? No, it IS tricky.
Any time I have helped someone migrade their FreePBX setup I ALWAYS install the fax stuff manually (or run the incrddiblefax script if it's an IncrediPBX), then just set the Inbound Route and be done with it.

There could be a million reasons why your fax isn't working.
Start from the beginning.
You setup a NEW computer with a FRESH install of IncrediblePBX?
Then you used the backup module on your old PBX to backup the config then imported it into the NEW PBX?
Did you run the incrediblefax.sh script on the NEW machine?
 
I didn't. At what point during the install should I run incrediblefax.sh? I can take the server down tonight and try again.
 
No need to take the server down. You can install the incrediblefax while it is live.

You installed FreePBX, then ran the IncrediblePBX installer right?
Code:
wget http://incrediblepbx.com/incrediblepbx11.gz
gunzip incrediblepbx11.gz
chmod +x incrediblepbx11
./incrediblepbx11

If that's the case, just run the IncredibleFax script.
Code:
cd /root
sh ./incrediblefax11.sh

This is assuming you installed PIAF-Green with FreePBX 2.11 using PIAF2 ISO.
If you used a different ISO or PIAF version let me know.
 
No worries, that's just an older version.

So you installed PIAF-Purple.
And you then installed IncrediblePBX10?
Code:
wget http://incrediblepbx.com/incrediblepbx10.gz
gunzip incrediblepbx10.gz
chmod +x incrediblepbx10
./incrediblepbx10

If that's the case, just install IncredibleFax as mentioned above. incrediblefax11.sh IS IncredibleFax v2 and works with IncrediblePBX 11 and 10 (at least I am 99.9% certain).
 
BTW: You can install your FreePBX as a VM in ESX, VirtualBox, and even Hyper-V and it will run just fine and dandy. Makes moving to newer hardware and such a snap.
My PBX has been a VM for several years.
 
I'm honestly not sure about the version IncrediblePBX. I'm headed to a service call now, when I get back to the office I'll check and let you know. Thanks for all the help by the way!
 
I'm honestly not sure about the version IncrediblePBX. I'm headed to a service call now, when I get back to the office I'll check and let you know. Thanks for all the help by the way!

When you log into your PBX (ssh or console) it will display the version for you:
Code:
 PBX in a Flash GREEN Status Program
 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
   lqqqqqqqqqqqqqqqqqqqqqqqqSYSTEM INFORMATIONqqqqqqqqqqqqqqqqqqqqqqqqqqqk
   x  Asterisk   = ONLINE  | Dahdi     = ONLINE  | MySQL     = ONLINE    x
   x  SSH        = ONLINE  | Apache    = ONLINE  | Iptables  = ONLINE    x
   x  Fail2ban   = ONLINE  | Internet  = ONLINE  | Ip6Tables = ONLINE    x
   x  Disk Free  = ADEQUATE| Mem Free  = ADEQUATE| NTPD      = ONLINE    x
   x  SendMail   = ONLINE  | Samba     = OFFLINE | Webmin    = ONLINE    x
   x  Ethernet0  = ONLINE  | Ethernet1 = N/A     | Wlan0     = N/A       x
   x                                                                     x
   x  PIAF Installed Version   = 2.0.6.4 under *VMWARE*                  x
   x  FreePBX Version          = 2.11.0.37                               x
   x  Running Asterisk Version = 11.10.0                                 x
   x  Asterisk Source Version  = 11.10.0                                 x
   x  Dahdi Source Version     = 2.9.0                                   x
   x  Libpri Source Version    = 1.4.14                                  x
   x  IP Address               = 192.168.88.141 on eth0                  x
   x  Operating System         = CentOS release 6.4 (Final) <>           x
   x  Kernel Version           = 2.6.32-358.6.2.el6.x86_64 - 64 Bit      x
   x  Incredible Version       = 11.10                                   x
   mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

If it doesn't pup up the nice little ascii info for you just run 'status' from a command line:
Code:
[root@pbx:~ $ status -p
 
Last edited:
OK, here's what I get in my status window...

(Purple)
PIAF Ver.................................2.0.6.5 (hardware)
FreePBX Ver............................2.10.1.16
Asterisk Running/Source Ver......1.8.28.0
Dahdi Source Ver.....................2.9.0
Libpri Source Ver.....................1.4.14
IP.........................................192.168.1.21 (eth0)
Kernel Ver..............................2.6.32-431.1.2.0.1.el6.i686 - 32 Bit
Incredible Ver.........................403

ISO I installed from was 2.0.6.5.0 (32 bit)

As for the install, here's what I did:
- Install Purple
- update-fixes
- update-scripts
- install-incredfax2 (didn't install IncrediblePBX first, said it was optional and I didn't remember doing it before)
- Update modules using web gui
- restore backup using IncredibleRestore
 
I was assuming you installed IncrediblePBX, considering that's what IncredibleBackup and IncredibleFax were originally made for. Plus, I recall you used to use GoogleVoice for your SIP provider and that's what IncrediblePBX was for - to alow ease of adding GoogleVoice. However, I don't think it's necessary. I know the IncredibleFax will install on a plain-Jane FreePBX system just fine. What I don't know, is how the IncredibleBackup module will work with a non-IncrediblePBX system.... but I digress.

Is the IAXmodem process running for all of the installed modems?
Code:
ps -e | grep -i iax
Is Hylafax running?
Code:
ps -e | grep -i fax
Can you fax from command line?
Code:
echo FaxTest | sendfax -n -d xxxxxxxxxx
 
Code:
root@pbx:~ $ ps -e | grep -i iax
 1682 ?        00:00:00 iaxmodem
 1687 ?        00:00:00 iaxmodem
 1688 ?        00:00:00 iaxmodem
 1689 ?        00:00:00 iaxmodem
 1690 ?        00:00:00 iaxmodem

I'm not familiar with that command... but the output doesn't look promising



Code:
ps -e | grep -i fax

This one gave me no output whatsoever



Code:
root@pbx:~ $ echo FaxTest | sendfax -n -d 8884732963
Can not reach service hylafax at host "localhost".


It's possible that I did install IncrediblePBX on the old machine and don't remember... if that were the case, could that be what's causing my problem?
 
That command just listed all the running processes and checked to see if the IAXModem process was running - that's all

Anyhoooooo
Looks like the problem is that your Hylafax daemons aren't running. So that's where we need to begin. Your output should have looked something like this:
Code:
[root@pbx:~ $ ps -e | grep -i fax
 2348 ?        00:00:00 faxq
 2351 ?        00:00:00 hfaxd
 2726 ?        00:00:05 faxgetty
 2728 ?        00:00:05 faxgetty
 2730 ?        00:00:05 faxgetty
 2732 ?        00:00:05 faxgetty

Do you still have my phone number? A quick call could probably get this sorted out. PM me if you lost it.
 
Once again, SAG saves the day.

Looks like the problem was that IncrediblePBX had been installed on the old machine, but wasn't installed on the new machine. (The install prompts said it was optional, and I couldn't remember if I'd done it on the old machine or not)

Solution: Reinstall from scratch. (No biggie... I still have the old machine to swap out during the reinstall)

Starting the process now... will update when finished.

Thanks for the help!!!
 
Hit another wall.

I've completely re-installed 3 times now, and each time I run into the same (or a similar) problem.

Clean install goes OK, but when installing Incredible PBX the computer locks up. Sometimes it says "kernel panic" with a wall of text, other times it's just a wall of text (see photo). Each time it requires a hard reset.

I was following the PIAF guide here: http://nerdvittles.com/?p=1119

Each time I installed PIAF Purple w/ Asterisk 1.8 and FreePBX 2.10
Wondering if I should try installing FreePBX 2.9, which would allow me to install a different version of IncrediblePBX?

Also, FWIW: I had no trouble getting this machine up and running without any errors before (with the exception of the fax not working,) only difference now is that I'm installing IncrediblePBX.


Any thoughts?




 
I was under the impression that I needed to install the same version as the machine I'm restoring from. Guess it couldn't hurt to try something else.
 
That almost did it... but not quite.

Installed PIAF-Green from the 2.0.6.5 ISO (Asterisk 11, FreePBX 2.11)
Everything installed fine... IncrediblePBX 11, and IncredibleFax 11 went in with no trouble, and everything seemed honky-dory after doing the IncredibleRestore.

IAX modems showed as [idle] in AvantFax... but I couldn't get any inbound/outbound calls to work. Now... there's a big red "Important Last Step" just prior to installing IncredibleFax that says "Google voice will not work unless you restart Asterisk from the Linux command line at this juncture..." and I'm wondering if I missed that step. I'll give it one more try before I just say F*** it and rebuild from scratch instead of restoring the backup.

I'd rather not lose all of my call logs and all of that... but if I do decide to go with the from-scratch method, how hard would it be to copy over all of my IVR recordings and all of that to the new box? Where would I find those files? (Thanks in advance)
 
Back
Top