Asterisk@home 1.2.3 upgrade to Asterisk 1.2.4


#1

When I go to /usr/src/asterisk and enter the following:

make upgrade
make test
make install

Asterisk does not upgrade. I go to the asterisk info page and it still displays v1.2.3.

thanx in advance
Chris


#2

did you restart asterisk?


#3

I restarted the box.


#4

what is the output of the ‘make upgrade’ command. i’m betting nothing actually happened…


#5

Looking through it, it looks like it is just recompiling asterisk and not downloading the new version. It is support to download it isnt it?

build_tools/make_version_h > include/asterisk/version.h.tmp
if cmp -s include/asterisk/version.h.tmp include/asterisk/version.h ; then echo; else
mv include/asterisk/version.h.tmp include/asterisk/version.h ;
fi

rm -f include/asterisk/version.h.tmp
if cmp -s .cleancount .lastclean ; then echo ; else
make clean; cp -f .cleancount .lastclean;
fi

build_tools/make_defaults_h > defaults.h.tmp
if cmp -s defaults.h.tmp defaults.h ; then echo ; else
mv defaults.h.tmp defaults.h ;
fi

rm -f defaults.h.tmp
for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do make -C $x depend || exit 1 ; done
make[1]: Entering directory /usr/src/asterisk/res' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/res' make[1]: Entering directory/usr/src/asterisk/channels’
make[1]: Nothing to be done for depend'. make[1]: Leaving directory/usr/src/asterisk/channels’
make[1]: Entering directory /usr/src/asterisk/pbx' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/pbx' make[1]: Entering directory/usr/src/asterisk/apps’
make[1]: Nothing to be done for depend'. make[1]: Leaving directory/usr/src/asterisk/apps’
make[1]: Entering directory /usr/src/asterisk/codecs' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/codecs' make[1]: Entering directory/usr/src/asterisk/formats’
make[1]: Nothing to be done for depend'. make[1]: Leaving directory/usr/src/asterisk/formats’
make[1]: Entering directory /usr/src/asterisk/agi' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/agi' make[1]: Entering directory/usr/src/asterisk/cdr’
make[1]: Nothing to be done for depend'. make[1]: Leaving directory/usr/src/asterisk/cdr’
make[1]: Entering directory /usr/src/asterisk/funcs' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/funcs' make[1]: Entering directory/usr/src/asterisk/utils’
make[1]: Nothing to be done for depend'. make[1]: Leaving directory/usr/src/asterisk/utils’
make[1]: Entering directory /usr/src/asterisk/stdtime' make[1]: Nothing to be done fordepend’.
make[1]: Leaving directory /usr/src/asterisk/stdtime' cd editline && unset CFLAGS LIBS && test -f config.h || ./configure make -C editline libedit.a make[1]: Entering directory/usr/src/asterisk/editline’
make[1]: libedit.a' is up to date. make[1]: Leaving directory/usr/src/asterisk/editline’
make[1]: Entering directory /usr/src/asterisk/db1-ast' make[1]:libdb1.a’ is up to date.
make[1]: Leaving directory /usr/src/asterisk/db1-ast' make[1]: Entering directory/usr/src/asterisk/stdtime’
make[1]: libtime.a' is up to date. make[1]: Leaving directory/usr/src/asterisk/stdtime’
for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do make -C $x || exit 1 ; done
make[1]: Entering directory /usr/src/asterisk/res' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/res' make[1]: Entering directory/usr/src/asterisk/channels’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/usr/src/asterisk/channels’
make[1]: Entering directory /usr/src/asterisk/pbx' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/pbx' make[1]: Entering directory/usr/src/asterisk/apps’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/usr/src/asterisk/apps’
make[1]: Entering directory /usr/src/asterisk/codecs' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/codecs' make[1]: Entering directory/usr/src/asterisk/formats’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/usr/src/asterisk/formats’
make[1]: Entering directory /usr/src/asterisk/agi' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/agi' make[1]: Entering directory/usr/src/asterisk/cdr’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/usr/src/asterisk/cdr’
make[1]: Entering directory /usr/src/asterisk/funcs' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/funcs' make[1]: Entering directory/usr/src/asterisk/utils’
make[1]: Nothing to be done for all'. make[1]: Leaving directory/usr/src/asterisk/utils’
make[1]: Entering directory /usr/src/asterisk/stdtime' make[1]: Nothing to be done forall’.
make[1]: Leaving directory /usr/src/asterisk/stdtime' mkdir -p /usr/lib/asterisk/modules mkdir -p /usr/sbin mkdir -p /etc/asterisk mkdir -p /usr/bin mkdir -p /var/run/asterisk mkdir -p /var/spool/asterisk/voicemail mkdir -p /var/spool/asterisk/dictate mkdir -p /var/spool/asterisk/system mkdir -p /var/spool/asterisk/tmp mkdir -p /var/spool/asterisk/meetme mkdir -p /var/spool/asterisk/monitor if [ -f asterisk ]; then install -m 755 asterisk /usr/sbin/; fi if [ -f cygwin/asterisk.exe ]; then install -m 755 cygwin/asterisk.exe /usr/sbin/; fi if [ -f asterisk.dll ]; then install -m 755 asterisk.dll /usr/sbin/; fi ln -sf asterisk /usr/sbin/rasterisk install -m 755 contrib/scripts/astgenkey /usr/sbin/ install -m 755 contrib/scripts/autosupport /usr/sbin/ if [ ! -f /usr/sbin/safe_asterisk ]; then \ cat contrib/scripts/safe_asterisk | sed 's|__ASTERISK_SBIN_DIR__|/usr/sbin|;' > /usr/sbin/safe_asterisk ;\ chmod 755 /usr/sbin/safe_asterisk;\ fi for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do make -C $x install || exit 1 ; done make[1]: Entering directory/usr/src/asterisk/res’
rm -f /usr/include/asterisk/parking.h
rm -f /usr/lib/asterisk/modules/app_agi.so
rm -f /usr/lib/asterisk/modules/res_parking.so
for x in res_indications.so res_monitor.so res_adsi.so res_agi.so res_features.so res_crypto.so res_musiconhold.so ; do install -m 755 $x /usr/lib/asterisk/modules ; done

make[1]: Leaving directory /usr/src/asterisk/res' make[1]: Entering directory/usr/src/asterisk/channels’
for x in chan_sip.so chan_agent.so chan_mgcp.so chan_iax2.so chan_local.so chan_skinny.so chan_features.so chan_oss.so chan_phone.so chan_zap.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
if ! [ -f chan_iax.so ]; then rm -f /usr/lib/asterisk/modules/chan_iax.so ; fi
make[1]: Leaving directory /usr/src/asterisk/channels' make[1]: Entering directory/usr/src/asterisk/pbx’
for x in pbx_config.so pbx_spool.so pbx_dundi.so pbx_loopback.so pbx_realtime.so pbx_ael.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory /usr/src/asterisk/pbx' make[1]: Entering directory/usr/src/asterisk/apps’
for x in app_dial.so app_playback.so app_voicemail.so app_directory.so app_mp3.so app_system.so app_echo.so app_record.so app_image.so app_url.so app_disa.so app_adsiprog.so app_getcpeid.so app_milliwatt.so app_zapateller.so app_setcallerid.so app_festival.so app_queue.so app_senddtmf.so app_parkandannounce.so app_setcidname.so app_lookupcidname.so app_macro.so app_authenticate.so app_softhangup.so app_lookupblacklist.so app_waitforring.so app_privacy.so app_db.so app_chanisavail.so app_enumlookup.so app_transfer.so app_setcidnum.so app_cdr.so app_hasnewvoicemail.so app_sayunixtime.so app_cut.so app_read.so app_setcdruserfield.so app_random.so app_ices.so app_eval.so app_nbscat.so app_sendtext.so app_exec.so app_groupcount.so app_txtcidname.so app_controlplayback.so app_talkdetect.so app_alarmreceiver.so app_userevent.so app_verbose.so app_test.so app_forkcdr.so app_math.so app_realtime.so app_dumpchan.so app_waitforsilence.so app_while.so app_setrdnis.so app_md5.so app_readfile.so app_chanspy.so app_settransfercapability.so app_dictate.so app_externalivr.so app_directed_pickup.so app_mixmonitor.so app_stack.so app_nv_faxdetect.so app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so app_page.so app_rxfax.so app_txfax.so app_curl.so app_sms.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
rm -f /usr/lib/asterisk/modules/app_datetime.so
rm -f /usr/lib/asterisk/modules/app_qcall.so
make[1]: Leaving directory /usr/src/asterisk/apps' make[1]: Entering directory/usr/src/asterisk/codecs’
for x in codec_ilbc.so codec_gsm.so codec_lpc10.so codec_adpcm.so codec_ulaw.so codec_alaw.so codec_a_mu.so codec_g726.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory /usr/src/asterisk/codecs' make[1]: Entering directory/usr/src/asterisk/formats’
for x in format_gsm.so format_wav.so format_wav_gsm.so format_vox.so format_pcm.so format_g729.so format_pcm_alaw.so format_h263.so format_g726.so format_ilbc.so format_sln.so format_au.so format_jpeg.so format_g723.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory /usr/src/asterisk/formats' make[1]: Entering directory/usr/src/asterisk/agi’
mkdir -p /var/lib/asterisk/agi-bin
for x in agi-test.agi eagi-test eagi-sphinx-test; do install -m 755 $x /var/lib/asterisk/agi-bin ; done
make[1]: Leaving directory /usr/src/asterisk/agi' make[1]: Entering directory/usr/src/asterisk/cdr’
for x in cdr_csv.so cdr_manager.so cdr_custom.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory /usr/src/asterisk/cdr' make[1]: Entering directory/usr/src/asterisk/funcs’
for x in pbx_functions.so func_callerid.so func_enum.so func_uri.so; do install -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory /usr/src/asterisk/funcs' make[1]: Entering directory/usr/src/asterisk/utils’
for x in stereorize streamplayer smsq astman; do
if [ “$x” != “none” ]; then
install -m 755 $x /usr/sbin/$x;
fi;
done
make[1]: Leaving directory /usr/src/asterisk/utils' make[1]: Entering directory/usr/src/asterisk/stdtime’
make[1]: Nothing to be done for install'. make[1]: Leaving directory/usr/src/asterisk/stdtime’
install -d /usr/include/asterisk
install -m 644 include/asterisk/*.h /usr/include/asterisk
if [ -n “” ]; then
rm -f ;
fi
rm -f /var/lib/asterisk/sounds/voicemail
mkdir -p /var/lib/asterisk/sounds
mkdir -p /var/log/asterisk/cdr-csv
mkdir -p /var/log/asterisk/cdr-custom
mkdir -p /var/lib/asterisk/keys
mkdir -p /var/lib/asterisk/firmware
mkdir -p /var/lib/asterisk/firmware/iax
mkdir -p /usr/share/man/man8
install -m 644 keys/iaxtel.pub /var/lib/asterisk/keys
install -m 644 keys/freeworlddialup.pub /var/lib/asterisk/keys
install -m 644 asterisk.8 /usr/share/man/man8
install -m 644 contrib/scripts/astgenkey.8 /usr/share/man/man8
install -m 644 contrib/scripts/autosupport.8 /usr/share/man/man8
install -m 644 contrib/scripts/safe_asterisk.8 /usr/share/man/man8
if [ -d contrib/firmware/iax ]; then
install -m 644 contrib/firmware/iax/iaxy.bin /var/lib/asterisk/firmware/iax/iaxy.bin;
else
echo “You need to do cvs update -d not just cvs update” ;
fi
( cd /var/lib/asterisk/sounds ; ln -s /var/spool/asterisk/voicemail . )
if [ -f mpg123-0.59r/mpg123 ]; then make -C mpg123-0.59r install; fi


#6

i think you need to do ‘make update’ first. NOTE: this requires you to have set up cvs or svn first… also, do not do this is you’re running AAH :smile:


#7

Is there a way for Asterisk@Home? I am running v2.4.


#8

wait for the next update :frowning: i got totally screwed trying to update asterisk on an AAH machine - too many things that make assumptions, it seems…


#9

For all those of you who wish to accomplish upgrading the asterisk@home core, I found a way that worked for me. Do the following:

cd /usr/src/
rm -rf asterisk
wget ftp.digium.com/pub/asterisk/aste … 2.x.tar.gz
tar zxfv asterisk-1.2.x.tar.gz
mv asterisk-1.2.x asterisk
./rebuildastsrc.sh
reboot

Chris


#10

what burned me was all kinds of deprecated (and/or removed) commands directives in 1.2.3, but AAJ 2.2 was still generating them. don’t see how this sequence solves that. i guess as long as that issue doesn’t crop up…


#11

here is the full guide. this is posted on the asterisk@home handbook wiki

Updating Asterisk manually (preferred so you know you are getting stable releases)

#clean modules
rm -f /usr/lib/asterisk/modules/*

#asterisk 1.2.4
cd /usr/src
rm -rf asterisk
wget ftp.digium.com/pub/asterisk/aste … 2.4.tar.gz
tar -zxvf asterisk-1.2.3.tar.gz
mv asterisk-1.2.3 asterisk

#zaptel 1.2.3
cd /usr/src
rm -rf zaptel
wget ftp.digium.com/pub/zaptel/zaptel-1.2.3.tar.gz
tar -zxvf zaptel-1.2.2.tar.gz
mv zaptel-1.2.2 zaptel

#libpri 1.2.2
cd /usr/src
rm -rf libpri
wget ftp.digium.com/pub/libpri/libpri-1.2.2.tar.gz
tar -zxvf libpri-1.2.2.tar.gz
mv libpri-1.2.2 libpri

#addons 1.2.1
cd /usr/src
rm -rf asterisk-addons
wget ftp.digium.com/pub/asterisk/aste … 2.1.tar.gz
tar -zxvf asterisk-addons-1.2.1.tar.gz
mv asterisk-addons-1.2.1 asterisk-addons

#sounds 1.2.1
cd /usr/src
rm -rf asterisk-sounds
wget ftp.digium.com/pub/asterisk/aste … 2.1.tar.gz
tar -zxvf asterisk-sounds-1.2.1.tar.gz
mv asterisk-sounds-1.2.1 asterisk-sounds

#now rebuild and reboot
cd /usr/src
./rebuildastsrc.sh
reboot


#12

Shouldn’t tese lines:

[color=red]tar -zxvf asterisk-1.2.3.tar.gz
mv asterisk-1.2.3 asterisk [/color]

have a version # of 1.2.4 and these:

[color=red]tar -zxvf zaptel-1.2.2.tar.gz
mv zaptel-1.2.2 zaptel[/color]

Have 1.2.3?

Tom


#13

The above method doesn’t work it hosed my aah 2.4 box.
I now have no SIP functional no voicemail, …etc. AAH is dead


#14

I just ran the procedure outlined by gigabit fix, modifying the * and zaptel numbers as mentioned in my previous post and everything worked fine.

Tom


#15

I’m reloading with AAH2.5. Glad yours worked out tom