TRY THIS System Recordings - Copy to New System

volenec

New Member
Joined
Jun 16, 2011
Messages
17
Reaction score
0
My company is currently running PIAF 1.2.9/Asterisk 1.4.41/FreePBX 2.5.2.6. We are in the process of moving to a new server using PIAF 1.7.5.6/Ast. 1.8.4.1/FreePBX 2.8.1.4. We are doing the install on a new server instead of upgrading the old one. We have a bunch of System Recordings on the old server that I would like to transfer to the new server. Is this possible? What is the best way to do this?
 

gregc

Guru
Joined
Sep 8, 2008
Messages
433
Reaction score
3
The way I did it was to copy the custom folder onto my linux desktop then use freepbx to upload them one at a time into the new machine. You could copy directly, but then freepbx doesn't know they are there.

-Greg
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
All system recordings are located in /var/lib/asterisk/sounds/custom. Just do a "zip customsounds.zip *" from within that folder to copy them all into a zip file. Download that to your computer and as Greg said, upload each manually via FreePBX.
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
ya, you MUST upload them, you cant just copy them into the directory as they get added to the database during upload.

Been there, done that :)

Myk
 

volenec

New Member
Joined
Jun 16, 2011
Messages
17
Reaction score
0
Thanks for the replies! I notice that when I used the upload feature in Webmin that the file shows up in the /custom directory, but it does not show up in the System Recordings module in FreePBX. I have to upload it again there for it to show up as a selectable recording. I am just going to bypass the webmin upload and upload them directly to the System Recordings module. But is it strange that uploading the files via webmin does not make them show up in FreePBX even though they are in the proper directory?
 

tbrummell

Guru
Joined
Jan 8, 2011
Messages
1,275
Reaction score
339
As said above, they get added to a mysql database when you upload them in FreePBX, uploading them via Webmin does not get them added to the database.
 

eCase

New Member
Joined
Jan 26, 2011
Messages
161
Reaction score
0
Ehh, not really so strange... though I totally understand your comment. It is certainly challenging for newcomers or the "fire&forget" users that rarely upgrade their system.
I suppose this is simply a side-effect from combining so many open source projects from around the world :)

Somewhat related question for anyone:
Is there a Step by Step Procedure online anywhere that instructs how to properly migrate an existing PIAF system to a new one, so that no data or config customization is lost for all time???
I ask this because, from the perspective of an eight-month user of Linux->Asterisk->FreePBX-PIAF->iNcrediblePBX, there seems to be a 'major' change at least once every three months or so, which requires a NEW install! If you are someone who is fascinated/obsessed with the latest tech {like myself} then this presents a tremendous chore to keep up with! :)
Of course, I suspect someone out there has an experienced, smooth 'n seamless method of accomplishing this, which is why I'm asking ;)
Thanks guys :)
 

MyKroFt

Guru
Joined
Oct 31, 2008
Messages
659
Reaction score
3
use the upload function in the system recordings module of freepbx, it will upload it to the correct place, correct permissions and even adds it to the database!

:)

Myk
 

jmullinix

Guru
Joined
Oct 21, 2007
Messages
1,263
Reaction score
7
You can also copy the /var/lib/asterisk/sounds/custom folder to the new machine and put it in place. Check the permissions. Then you go to FreePBX's system recordings tab and select Built-in Recordings. Select the files from the drop down list, name them and they are available to use.
 

volenec

New Member
Joined
Jun 16, 2011
Messages
17
Reaction score
0
Ok. I see now where it says upload via FreePBX. I saw the upload feature in Webmin and thought that was what I was supposed to use. Sorry for the redundancy. And I really appreciate all of the advice. Thanks!!
 

PBXEHR

Member
Joined
Sep 30, 2013
Messages
42
Reaction score
0
If I have two systems connected via iax2, any way to record from an extension on the other system? I'm extension 5555 from the other phone system but it doesn't work when I dial *77.
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
You should be able to. You probably need to adjust your outbound routes to allow routing *77 to the foreign box.
 

papachumba

Member
Joined
Jun 20, 2013
Messages
86
Reaction score
5
just did this myself -
instead of reuploading to new server, which might cause the records to be inserted under a different ID in mysql database if you insert them in a different order (relevant when copying other aspects of the system which use system recodings in freepbx menus), what I did was to:
Copy asterisk.recordings table from old server to new server mysql (user root, pass whatever you set, i used navicat here, nice and easy).
Copy /var/lib/asterisk/sounds/custom from old server to new.
Done!

Method above ensures ids are retained, in my case I was migrating the server to a new box, i found copying mysql tables from one to the other ensured things stayed exactly as they are. Of course this comes with a risk that you will break something so do at your own risk!

So far I copied:

Voicemail Blasting (vmblast_groups and vmblast tables)
System Recordings (recordings table)
Extensions (used bulk extensions, easy)
Incoming Routes (bulk extensions)
Time Conditions (timeconditions, timegroups_details, timegroups_groups tables)

all working fine
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top