Hello guys,
I know it’s 2024 and the latest release was 10-10-2020, but I’m an enthusiast who wants to have 1 home phone (Cisco 7941G), 2 mobile phones connected and 1 iPad. I used the release 10-10-2020 on my RPi4 on a 128GB SD card. Everything went pretty smooth until I got to the point of updating. Anyway with a lot of reading online I managed to update the modules to 15.x (just before 15 to 16 upgrade) and I also managed to upgrade the OS to Bookworm. The last thing that left for me to upgrade was PHP 7.0 to PHP 7.4+ which I did last night at 02:30 and now is PHP 8.3. I can’t remember what exactly I was looking for in /etc/freepbx.conf, but by accident I deleted the password last night (I was very tired). Now I’m getting this error on the Web UI:
SQLSTATE[HY000] [1045] Access denied for user ‘freepbx’@‘localhost’ (using password: NO)::SQLSTATE[HY000] [1045] Access denied for user ‘freepbx’@‘localhost’ (using password: NO)
My question is: Where can I get this password from? Is it somewhere in the DB? Is there any backup file? Can I generate a new one?(If yes - how?). …?
I don’t want to start all the hassle from the begining and once I have it full upgraded I will make a new .img and will post it here, so more people can use RPi4 and FreePBX.
Yes, I do have HP ProLiant N54L, DELL PowerEdge R320 and few other servers, but NO, I don’t want to use any of them for 1 hardphone and 3 softphones when the same can be done with RPi4 (and it’s way more fun!!!).
By the way if any of you have a good(working) SEPMAC.conf and the other files for Cisco 7941G will be very thankful if you share them.
restart from the begining; it may be faster than waiting for an answer & prob funner that way. a chance to change setting and document your setup.
conf file. do a search.
cheers.
I got it to FreePBX 16.0.40.8 as you can see on the picture with Raspbian GNU/Linux 11 (bullseye) and it’s working stable for now. There are only 3 modules I couldn’t install/upgrade and they are: Digium Addons, System Admin and XMPP. System Admin is throwing an error on the install, but since is crypted with ionCube I can’t see the error itself. All other modules from Standard, Extended, Commercial and Unsupported are upgraded to the latest version available. I will try to upgrade the OS to Raspbian 12 (bookworm), but first I want to make an .img of this working one before trying it and something breaks.
I still can’t connect my Cisco 7941 to FreePBX even after reading and trying few other SEPMAC.cnf.xml. I’m behind NAT and every time the phone tries to connect on the FreePBX is coming with strange IP like 167.124.1.98 and never with local IP as it’s set to do (yes, I do have NAT enabled in the SEPMAC.cnf.xml).
I do have a nice working file for the background images on the phone, still having issues with the ringtones and still working on the directory and services files, but will get there.
I’m going to create an .img file using ImgBurn, but if you have better ideas let me know (I haven’t used this kind of software for over 15 years since I don’t use CD/DVD).
Sorry, I’m allowed to upload only 1 picture
The system is ready to accept updates/upgrades until Bookworm is supported.
On the bad hand side:
PHP 8.3 - Strange error. Will have a look at it at later stage.
System Admin - Still giving error, but can’t fix as it crypted. All modules depending on System Admin can NOT be installed.
Digium Addons - Don’t want to install for now.
XMPP - Don’t want to install for now.
Originaly for me is installed on a 128GB SD card on Raspberry Pi 4 with 4GB RAM. I have tested the .img file on a 16GB SD card and everything seems to work just fine.
N.B. Once you flash your SD card, on the first boot login with username: root password: raspberry, type raspi-config and press Enter. Go to option 6 (Advanced Options) and then on A1 (Expand Filesystem) - this will expand your filesystem according to the size of the SD card you have (16GB, 32GB, 64GB, 128GB, …GB). Navigate with TAB to Finish and let the system restart. Voila - your FreePBX 16.0.40.8 is ready to operate on your Raspberry Pi 4.
LAN is set to DHCP, so do a quick “ifconfig” to get your IP unless you have a static IP for your RPi on your router.
The username for the web panel is “darkness” and the password is “raspberry”. ARI username and password are the same.
Alright folks, some sad news - FreePBX 16.x does NOT support Asterisk 21.
I will have to downgrade to Asterisk 20 as this is the latest supported version. Otherwise you can’t use “Apply config” and basicaly the whole system.
Also the size of the .img is becoming bigger with all the updates, but still not sure how much bigger.
Will let you know shortly. Stay tuned!
How do you generate these images? Like what steps do you follow?
Rooting for you on the Cisco thread. Hope you are clearly documenting the steps you followed to get them working. Future n00bs will be eternally grateful for that.
Got everything “documented” in my head
It’s so easy actually.
Steps:
1: df -h - briefly calculate how much space has been used on all partitions
2: insert a USB drive in the RPi and mount it - mount /dev/sda1 /mnt
3: raspbx-backup
4: Point to the image - /mnt/raspbx_12-08-2024.img
5: Add few hundread MB on top of what you calculated after df -h
6: Wait for it to finish
7: Unmount the USB drive - umount /mnt
Enjoy!
Hello guys. An amazingly big sorry to everyone trying to download the files. I just bought a house and moving stuff to the new place and I just realized that I turned off the server for the downloads which was supposed to be moved last. Really, really, really sorry!
Hello everybody,
From what I can see there are 18 downloads of FreePBX 16.0.40.9/Asterisk 20 and 0 comments/replies. I will really appreciate if you share with me/us any experience you have with it - if everything is working fine, if something is not working, if there is a minor/major problem with the OS/modules/GUI, …
On my RPi4 it’s working just fine, but despite the fact that every RPi4 should be exactly the same, there always can be a problem. Please share it with me so I can have a look at it and fix it (if possible). This will help me, you and any future new users and newbies with the integration of the system for a small network.
How do you solve the problem of the many write accesses from Asterisk and FreePBX to the SD card? Four years ago I had the experience that the SD card was always worn out pretty quickly because the PBX writes everything to /var.
My solution is an external USB hard drive on which /var is located, among other things, in order to minimize SD card wear.
Hi darkness thank you for sharing!!
I’ll test when i return… Next update check if it is possible to use Dietpi for me is the best os for rpi faster than raspbian.
Hi Niclas,
I have tried to install FreePBX 17 on RPi, but I got stuck on the installation of MongoDB who has no support for ARM64/ARMHF after 4.4 and we are looking for 7.0. I will keep trying to make it possible for FreePBX 17 on RPi4, but doesn’t looks very promising. Most likely to be able to do it for RPi 5, than for RPi4 since they use different CPU.
Hi Jose, I have wrote up a how to setup freepbx 16 & Asterisk16 as a 64 bit system. As I only need sip & rstp. The tricky bit was getting the Obdc connectors working.