TUTORIAL Original Asterisk Upgrade Script

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Or do it the new way with the GIT-R-Done Edition: type upgrade-asterisk-to-current and count to one hundred :arabia:

Code:
[root@localhost ~]# ./upgrade-asterisk-to-current
Fetching origin
remote: Counting objects: 297, done.
remote: Compressing objects: 100% (87/87), done.
remote: Total 297 (delta 126), reused 97 (delta 97), pack-reused 113
Receiving objects: 100% (297/297), 658.63 KiB, done.
Resolving deltas: 100% (176/176), done.
From git://github.com/asterisk/asterisk
  b841e51..d0ad45d  1.8        -> origin/1.8
  e4b956b..9c61245  11        -> origin/11
  d08446e..b3cd5bc  13        -> origin/13
  64bba47..2c09c22  certified/1.8.28 -> origin/certified/1.8.28
  a6a98c7..f7c8349  certified/11.6 -> origin/certified/11.6
  918ca7d..e84fcb2  certified/13.1 -> origin/certified/13.1
  614f506..1a83556  master    -> origin/master
* [new branch]      team/oej/awesome-feature -> origin/team/oej/awesome-feature
Updating e4b956b..9c61245
Fast-forward
.gitignore                  |    2 ++
include/asterisk/utils.h    |  10 ++--------
main/channel_internal_api.c |    4 ++++
main/event.c                |    2 +-
main/security_events.c      |    4 ++--
5 files changed, 11 insertions(+), 11 deletions(-)
  [CC] astcanary.c -> astcanary.o
  [LD] astcanary.o -> astcanary
  [CC] astdb2sqlite3.c -> astdb2sqlite3.o
  [LD] astdb2sqlite3.o db1-ast/libdb1.a -> astdb2sqlite3
  [CC] astdb2bdb.c -> astdb2bdb.o
  [LD] astdb2bdb.o db1-ast/libdb1.a -> astdb2bdb
...
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running:              +
+                                          +
+                make install              +
+-------------------------------------------+
Installing modules from channels...
Installing modules from pbx...
Installing modules from apps...
Installing modules from codecs...
Installing modules from formats...
Installing modules from cdr...
Installing modules from cel...
Installing modules from bridges...
Installing modules from funcs...
Installing modules from tests...
Installing modules from main...
Installing modules from res...
Installing modules from addons...
/usr/bin/install -c -m 755 contrib/scripts/astgenkey "/usr/sbin/"
/usr/bin/install -c -m 755 contrib/scripts/autosupport "/usr/sbin/"
if [ ! -f "/usr/sbin/safe_asterisk" -a ! -f /sbin/launchd ]; then \
        cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|/usr/sbin|;s|__ASTERISK_VARRUN_DIR__|/var/run/asterisk|;s|__ASTERISK_LOG_DIR__|/var/log/asterisk|;' > contrib/scripts/safe.tmp ; \
        /usr/bin/install -c -m 755 contrib/scripts/safe.tmp "/usr/sbin/safe_asterisk" ; \
        rm -f contrib/scripts/safe.tmp ; \
    fi
/usr/bin/install -c -m 644 include/asterisk.h "/usr/include"
/usr/bin/install -c -m 644 include/asterisk/*.h "/usr/include/asterisk"
/usr/bin/install -c -m 644 include/asterisk/doxygen/*.h "/usr/include/asterisk/doxygen"
if [ -n "" ]; then \
        for h in ; do rm -f "/usr/include/asterisk/$h"; done \
    fi
/usr/bin/install -c -m 644 doc/core-*.xml "/var/lib/asterisk/documentation"
/usr/bin/install -c -m 644 doc/appdocsxml.dtd "/var/lib/asterisk/documentation"
/usr/bin/install -c -m 644 doc/asterisk.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 doc/astdb*.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/astgenkey.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/autosupport.8 "/usr/share/man/man8"
/usr/bin/install -c -m 644 contrib/scripts/safe_asterisk.8 "/usr/share/man/man8"
if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
        /usr/bin/install -c -m 644 contrib/firmware/iax/iaxy.bin "/var/lib/asterisk/firmware/iax/iaxy.bin"; \
    fi
CFLAGS="  -I/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -g3  " build_tools/mkpkgconfig "/usr/lib/pkgconfig";
** Do not call this script directly
for x in static-http/*; do \
        /usr/bin/install -c -m 644 $x "/var/lib/asterisk/static-http" ; \
    done
/usr/bin/install -c -m 644 doc/core-en_US.xml "/var/lib/asterisk/static-http";
if [ -d doc/tex/asterisk ] ; then \
        /usr/bin/install -c -d "/var/lib/asterisk/static-http/docs" ; \
        for n in doc/tex/asterisk/* ; do \
            /usr/bin/install -c -m 644 $n "/var/lib/asterisk/static-http/docs" ; \
        done \
    fi
for x in images/*.jpg; do \
        /usr/bin/install -c -m 644 $x "/var/lib/asterisk/images" ; \
    done
make -C sounds install
make[1]: Entering directory `/usr/src/asterisk-11/sounds'
make[1]: Leaving directory `/usr/src/asterisk-11/sounds'
+---- Asterisk Installation Complete -------+
+                                          +
+    YOU MUST READ THE SECURITY DOCUMENT    +
+                                          +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample  +
+ configuration files (overwriting any      +
+ existing config files), run:              +
+                                          +
+                make samples              +
+                                          +
+-----------------  or ---------------------+
+                                          +
+ You can go ahead and install the asterisk +
+ program documentation now or later run:  +
+                                          +
+              make progdocs              +
+                                          +
+ **Note** This requires that you have      +
+ doxygen installed on your local system    +
+-------------------------------------------+
WARNING WARNING WARNING
 
Your Asterisk modules directory, located at
/usr/lib/asterisk/modules
contains modules that were not installed by this
version of Asterisk. Please ensure that these
modules are compatible with this version before
attempting to run Asterisk.
 
    app_flite.so
 
WARNING WARNING WARNING
Stopping safe_asterisk:                                    [  OK  ]
Shutting down asterisk:                                    [  OK  ]
Starting asterisk:                                        [  OK  ]
[root@localhost ~]# asterisk -rx "core show application like flite"
 
  -= Info about application 'Flite' =-
 
[Synopsis]
Say text to the user, using Flite TTS engine

CDWZy9QW4AAboBc.jpg:large
 

ZeekWorld

New Member
Joined
Jul 26, 2013
Messages
12
Reaction score
2
Quick question.
I just ran the Asterisk upgrade script on my VMWARE PIAF-GREEN.
I believe the upgrade went well but for some reason the "Asterisk Source Version" shows UNKNOWN
Is there a way to fix this?

te2vaekv
 

hecatae

resident hecatae
Joined
Feb 7, 2014
Messages
760
Reaction score
199
Quick question.
I just ran the Asterisk upgrade script on my VMWARE PIAF-GREEN.
I believe the upgrade went well but for some reason the "Asterisk Source Version" shows UNKNOWN
Is there a way to fix this?

te2vaekv


I have the same on a few servers, asterisk still works, I ignore the source version error, when did 11.19 come out?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Only thing that matters is what's running. Don't worry about the display.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
To celebrate yesterday's release of Asterisk 13.6, we are pleased to provide an updated, all-purpose upgrade script for Asterisk 11 and 13. It includes support for automatic upgrading of Asterisk 13 servers on which you already have applied the Google Voice OAUTH patch.

WARNING: Your server must already be running PIAF-Green or Incredible PBX 11 or 13 with some version of Asterisk 11 or 13.

Code:
cd /root
wget http://incrediblepbx.com/upgrade-asterisk-to-current.tar.gz
tar zxvf upgrade-asterisk-to-current.tar.gz
rm -f upgrade-asterisk-to-current.tar.gz
./upgrade-asterisk-to-current

CQ9dBfdWEAErBJU.jpg
 

Stan-O

Member
Joined
Oct 9, 2013
Messages
60
Reaction score
8
They call it a feature. :aureola:


May want to fix/append the following to reflect the reality then:



WARNING: Your server must already be running PIAF-Green or Incredible PBX 11 or 13 with some version of Asterisk 11 or 13.

I've used another one of the upgrade scripts (mentioned in this thread) to get me to the Asterisk Ver. 11.13.1 and I was so looking forward to upgrading to 13.6 thru the script.

 

Stan-O

Member
Joined
Oct 9, 2013
Messages
60
Reaction score
8
Stan-O

question, does asterisk-version-switch work for you?

see http://wiki.freepbx.org/display/PPS/Changing Major Asterisk Versions on the Fly

wardmundy can ^ this be implemented in IncrediblePBX, yes I know the above is precompiled rpms, but, imagine if you could switch versions when you wanted to.


Thank you for the suggestion, I had no clue about it. Unfortunately there's no file/script/binary asterisk-version-switch on my PIAF system.

Code:
root@sip:/root # asterisk-version-switch
bash: asterisk-version-switch: command not found
 

Stan-O

Member
Joined
Oct 9, 2013
Messages
60
Reaction score
8

howardsl2

Guru
Joined
Aug 5, 2013
Messages
88
Reaction score
25
@wardmundy I found that an empty folder "/etc/schmooze" is present on my PIAF-Green box (this is not SHMZ OS). Running the Asterisk upgrade script results in this error:

Code:
root@mypbx:~ # ./upgrade-asterisk-to-current
Sorry. Asterisk compile from source not supported by SHMZ OS.
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
We support lots of platforms. If the directory is empty, just delete it before you run the script.
 

howardsl2

Guru
Joined
Aug 5, 2013
Messages
88
Reaction score
25
We support lots of platforms. If the directory is empty, just delete it before you run the script.

Ward, I tested it again and the folder "/etc/schmooze" is present on a fresh PIAF-Green install, therefore the upgrade script will not work with the error above.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
If the directory is empty, do the following before running the upgrade script:

Code:
rm -rf /etc/schmooze
 

kmcdaniel

Member
Joined
Jan 23, 2008
Messages
416
Reaction score
19
I have an old PiaF silver 1.7.5.5.with asterisk 1.4.33 running. Is there anyway to bring this up to atleast 1.8? Any advice on pointing me in the right direction would be appreciated. One of my guys updated the freepbx on it to 2.10 on accident without realizing it requires 1.8. Any suggestions on where to go from here?
 
Last edited:

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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