update plivo and freeswitch

199 views
Skip to first unread message

Dhairya Vora

unread,
May 8, 2012, 7:04:19 AM5/8/12
to plivo...@googlegroups.com
Hi group,
I need to update freeswitch and plivo both. Any suggestion how to do it?
I know one way: "take backup of freeswitch and plivo configuration files and reinstall from scratch. Restore configurations files."
I hope there would be some better way to do it, in which we need not to backup and replace the files.

I installed fs and plivo using steps given at http://www.plivo.org/get-started/

-Dhairya

Dhairya Vora

unread,
May 9, 2012, 4:33:20 AM5/9/12
to plivo...@googlegroups.com
no suggestions?
is "take backup of freeswitch and plivo configuration files and reinstall from scratch. Restore configurations files." the only way to update??

-Dhairya

Digvijay Sinha

unread,
May 9, 2012, 7:05:26 AM5/9/12
to plivo...@googlegroups.com
Commit changes using GIT commands to update FS but it is recommended only if you are an expert. Plivo script enables and installs required modules automatically.

Clint Berry

unread,
May 9, 2012, 10:37:39 AM5/9/12
to plivo...@googlegroups.com
Dhairya, 

When freeswitch is installed with that script, it puts the original source code in /usr/src/freeswitch

To update freeswitch, go to that directory and type in: make current

This will pull down the latest code from the repo and then builds and installs it. It won't overwrite any conf files, so you should be good there.

I hope that helps!

Dhairya Vora

unread,
May 10, 2012, 12:59:57 AM5/10/12
to plivo...@googlegroups.com
Thanks Clint,
I tried that way but it stopped giving this error:

rm -f sqlite3.dll sqlite3.lib sqlite3.def
make[1]: Leaving directory `/usr/src/freeswitch/libs/sqlite'
make update
make[1]: Entering directory `/usr/src/freeswitch'
Pulling updates...
Updating 7da637d..76330ec
error: Your local changes to the following files would be overwritten by merge:
        conf/autoload_configs/acl.conf.xml
        conf/autoload_configs/xml_cdr.conf.xml
Please, commit your changes or stash them before you can merge.
Aborting
make[1]: *** [update] Error 1
make[1]: Leaving directory `/usr/src/freeswitch'
make: *** [current] Error 2

I made changes to these files as I wanted to save detailed cdr data for each call.

-Dhairya

Tony Miller

unread,
May 1, 2013, 9:52:55 PM5/1/13
to plivo...@googlegroups.com
After having gone through the update process recently, I thought it'd be nice to share my learning.

To update FreeSWITCH:
  1. Open terminal and switch to freeswitch directory (default is /usr/src/freeswitch)
  2. Type sudo make current
  3. If you get an error similar to what Dhairya received (see above), simply copy the modified config files and revert them to their original state. Repeat step 2. You can then manually copy the modified config files to your installation folder (default is /usr/local/freeswitch) after the update.
To update Plivo:
  1. Open terminal and run the original installation command: sudo bash plivo_install.sh /usr/local/plivo
  2. The plivo install script will automatically detect the existing installation and proceed with the update. FYI, the script updates your codebase by doing a git checkout on the plivo master branch and redeploys the application.
  3. When it asks you if you want to keep the config files, simply answer "yes".
That was simple enough, right?

Tony
Reply all
Reply to author
Forward
0 new messages