TUTORIAL Original Asterisk Upgrade Script

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
taylormia Well, yeah. You're still on CentOS 6.3. That's where the ".6.3" comes from in "2.0.6.3". Not the Asterisk version.
 

taylormia

New Member
Joined
May 22, 2009
Messages
9
Reaction score
0
taylormia Well, yeah. You're still on CentOS 6.3. That's where the ".6.3" comes from in "2.0.6.3". Not the Asterisk version.

Ah..ha! Thanks for the insight. So, if I upgraded to CentOS 6.4, will the PIAF version show 2.0.6.4.4 automatically or will I need to run "update-programs" and "update-fixes" again?
 

rossiv

Guru
Joined
Oct 26, 2008
Messages
2,624
Reaction score
139
I don't think you can do that - IIRC Tom (darmock) has the PIAF version hard-coded. I could be wrong though.
 

miguel

Member
Joined
May 22, 2013
Messages
276
Reaction score
8
You can only update asterisk not between puaf versions
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
You're good to go. status shows the original version from which it was installed as well as the update under "Running Asterisk Version."
 

milauria

New Member
Joined
Mar 6, 2011
Messages
9
Reaction score
0
I successfully updated from 1.8.18 to 1.8.19 back in April using the script at the head of this post, now I am trying to update from 1.8.19 to 1.8.23 and "update-source" breaks everything. So I edit the same script replacing with new version 1.8.23.0 and I get the errors below during the script execution plus the asterisk version does not change (according to "status" command still 1.8.19). Any suggestion that can help me ? (I did not perform any yum update or kernel update as suggested)

PS -- I had to change the download location for the 3 PIAF6 patches from .COM to .US to make it work


Code:
Generating input for menuselect ...
menuselect/menuselect --check-deps menuselect.makeopts
 
***********************************************************
The existing menuselect.makeopts file did not specify
that 'cdr_radius' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
***********************************************************
The existing menuselect.makeopts file did not specify
that 'cel_radius' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
***********************************************************
The existing menuselect.makeopts file did not specify
that 'res_srtp' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
make: *** [menuselect.makeopts] Error 255
menuselect/menuselect --check-deps menuselect.makeopts
***********************************************************
The existing menuselect.makeopts file did not specify
that 'cdr_radius' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
***********************************************************
The existing menuselect.makeopts file did not specify
that 'cel_radius' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
***********************************************************
The existing menuselect.makeopts file did not specify
that 'res_srtp' should not be included. However, either some
dependencies for this module were not found or a
conflict exists.
Either run 'make menuselect' or remove the existing
menuselect.makeopts file to resolve this issue.
***********************************************************
make: *** [menuselect.makeopts] Error 255
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
Thanks. We've posted a warning. pbxinaflash.com is no longer one of our mirror servers.

WARNING: Change pbxinaflash.com to pbxinaflash.us in the script before running it!
 

milauria

New Member
Joined
Mar 6, 2011
Messages
9
Reaction score
0
I edited the Purple update script to install the 1.8.23.1 and corrected the mirror websites and added a "make menuselect" line as suggested (and exited gracefully from that). All compiled successfully ... but at "amportal start" the system gives me an error "STARTING ASTERISK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)".

Apparently all is working fine but just asking as I don't want surprises later on as something might have broken ?? Thanks

───────────────────────SYSTEM INFORMATION───────────────────────────┐
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ Disk Free = ADEQUATE| Mem Free = ADEQUATE| NTPD = ONLINE │
│ SendMail = ONLINE | Samba = ONLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PIAF Installed Version = 2.0.6.3 under *VIRTUALBOX* │
│ FreePBX Version = 2.11.0.10 │
│ Running Asterisk Version = 1.8.23.1 │
│ Asterisk Source Version = 1.8.18.0 │
│ Dahdi Source Version = 2.6.1 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = 192.168.0.201 on eth0 │
│ Operating System = CentOS release 6.3 (Final) │
│ Kernel Version = 2.6.32-279.14.1.el6.i686 - 32 Bit │
 

milauria

New Member
Joined
Mar 6, 2011
Messages
9
Reaction score
0
I did amportal stop then "ldconfig" (just executed, did not get any messages), then amportal start and still same message:

No Google Voice DIDs configured. Disabling Gtalk and Jabber...
Fetching FreePBX settings with gen_amp_conf.php..

SETTING FILE PERMISSIONS
chown: proprietario di `/var/www/html/index.html' è stato cambiato: Operation not permitted
chown: proprietario di `/var/www/html/index.php' è stato cambiato: Operation not permitted
chown: proprietario di `/var/www/html/index.php.bak' è stato cambiato: Operation not permitted
Permissions OK
Removing any dangling symlinks
Dangling symlinks removed

STARTING ASTERISK
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
Asterisk Started
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
Here's a script to upgrade PIAF-Green servers to Asterisk 11.5.0.

WARNING: Change pbxinaflash.com to pbxinaflash.us in the script before running it!
oh wow Ward does that mean I can straight upgrade my system below to asterisk 11 …?
It is PIAF purple ….

PIAF Installed Version = 2.0.6.4 under *HARDWARE* │
│ FreePBX Version = 2.10.1.10 │
│ Running Asterisk Version = 1.8.21.0 │
│ Asterisk Source Version = 1.8.21.0 │
│ Dahdi Source Version = 2.6.2 │
│ Libpri Source Version = 1.4.12 │
│ IP Address = 192.168.100.108 on eth0 │
│ Operating System = CentOS release 6.4 (Final) │
│ Kernel Version = 2.6.32-358.2.1.el6.i686 - 32 Bit │
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
No it is built to upgrade EXISTING green to a newer version of green asterisk. Good luck using it to move between asterisk families.......

Update-source does a similar job however it has a few more bells and whistles in it to prevent users from causing problems.

Tom
 

Hyksos

Guru
Joined
May 28, 2011
Messages
474
Reaction score
70
I wanted to add a second "no" ;)
Not that simple, he's using FreePBX 2.10.... and wants to move to asterisk 11.
 

womble1

Guru
Joined
Oct 19, 2008
Messages
632
Reaction score
6
I wanted to add a second "no" ;)
Not that simple, he's using FreePBX 2.10.... and wants to move to asterisk 11.
so upgrade freepbx to 2.11 and backup, then new install + import ?
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
this is no "reliable" way to do that it may work or it might not. Generally when it does NOT work it is catastrophic. really just create a new machine/vm and install green, open up 2 browser windows, cut and paste between the old and the new. Beyond that good luck
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
By popular request, here is the latest security upgrade script for Asterisk 11.9.0.

Booi5UCIcAAF3uj.jpg:large


WARNING: Your server must already be running PIAF-Green with some version of Asterisk 11, not 10, not 1.8, or below!

You'll need to change the versions in the scripts for later releases or to meet your own requirements.

Code:
cd /root
wget http://pbxinaflash.com/upgrade-green-11.9.0.tgz
tar zxvf upgrade-green-11.9.0.tgz
./upgrade-green-11.9.0

Note: Running Asterisk Version in status shows current running version. Asterisk Source Version in status shows your original source version. You'll find the actual source code for the currently running Asterisk version is /usr/src/asterisk-11.9.0.
 

visionlogic

Guru? Nope
Joined
Oct 11, 2009
Messages
117
Reaction score
33
Thanks Ward. Ran the upgrade on my DigitalOcean instance. Smooth, no glitches. Took about 7 minutes total time. All seems well.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
By popular request, here is the latest upgrade script for Asterisk 11.10.0.

Bo4KNShIgAARgKB.jpg


WARNING: Your server must already be running PIAF-Green with some version of Asterisk 11, not 10, not 1.8, or below!

You'll need to change the versions in the scripts for later releases or to meet your own requirements.

Code:
cd /root
wget http://pbxinaflash.com/upgrade-green-11.10.0.tgz
tar zxvf upgrade-green-11.10.0.tgz
./upgrade-green-11.10.0

Note: Running Asterisk Version in status shows current running version. Asterisk Source Version in status shows your original source version. You'll find the actual source code for the currently running Asterisk version is/usr/src/asterisk-11.10.0.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,219
By popular request, here is the latest upgrade script for Asterisk 11.10.2. This also fixes the lack of Google Voice connectivity in later releases of Asterisk.

BqVAsQZIUAA6BE2.jpg:large


WARNING: Your server must already be running PIAF-Green with some version of Asterisk 11, not 10, not 1.8, or below!

You'll need to change the versions in the scripts for later releases or to meet your own requirements.

Code:
cd /root
wget http://pbxinaflash.com/upgrade-green-11.10.2.tgz
tar zxvf upgrade-green-11.10.2.tgz
./upgrade-green-11.10.2

Note: Except with Fedora Remix OS, Running Asterisk Version in status shows current running version. Asterisk Source Version in status shows your original source version. You'll find the actual source code for the currently running Asterisk version is/usr/src/asterisk-11.10.2.
 

Albert S

Member
Joined
Jul 21, 2013
Messages
122
Reaction score
7
I was trying to convert a PIAF Green box to Incredible PBX and I was getting error that I am using an older version of Asterisk.

I've used this script to get it to last version and now it's installing Incredible PBX.
 

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
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