Trying To Upgrade Asterisk And Debian — Not Working

Home » Asterisk Users » Trying To Upgrade Asterisk And Debian — Not Working
Asterisk Users 1 Comment

Hi. I am trying to upgrade my asterisk from 13.15 to the latest of asterisk 13 which seems to be 13.24.0-rc1. At the same time I want to go from Debian 8 to DEbian 9 to get a more recent operating system and applications.

I ran in to the following problems when trying to do this.

When trying to use asterisk 13.24.0-rc1, I ran into some strange problems with some of my custom scripts.

It seems the following statement immediately disconnects the user exten => s,n,Read(digit,,1,,1,20) ; read a digit

In the log after that statement it says user disconnected. I have an agi which speaks some text before the read and that agi does not even say anything, although it does complete.

Now, if I try to go back to 13.15.0, it does not work at all because it keeps telling in my log that modules support is not available, so no modules get loaded.

Any ideas on thispuzzle would be appreciated.


Your life is like a penny. You’re going to lose it. The question is:
How do you spend it?

John Covici wb2una
covici@ccs.covici.com

One thought on - Trying To Upgrade Asterisk And Debian — Not Working

  • Hi John

    I’ve jumped around between several Asterisk versions on CentOS 7 by doing

    1. Copying the asterisk binary in

    /usr/sbin/asterisk

    to

    /usr/sbin/asterisk.1.8.11.0

    (or whatever version number)

    2. Tar’ing up the /usr/lib/asterisk/modules directory’s contents

    # cd /usr/lib/asterisk/modules

    # tar cvf asterisk.1.8.11.0.tar *

    3. Deleting all the old / different version’s module object files, e. g. still in /usr/lib/asterisk/modules

    rm -rf *.so

    4. Untarring and ungzipping the new / different version I downloaded manually into my

    /usr/src

    folder, e. g.

    cd /usr/src

    gunzip asterisk-1.8.32.3.tar.gz

    tar xvf asterisk-1.8.32.3.tar

    5. Then the usual

    # cd asterisk-1.8.32.3
    # ./configure
    # make menuconfig

    then set options then

    # make
    # make install
    # make samples
    # make progdocs

    Ok, so now I’m on 1.8.32.3 and if I go

    # asterisk

    I will start up the “new” 1.8.32.3 version.

    To revert to Asterisk 1.8.11.0 (or whatever) I then stop asterisk, and then I simply rename the current

    /usr/sbin/asterisk to asterisk.18.32.3

    and the

    /usr/sbin/asterisk.1.8.11.0

    that is still there to

    /usr/sbin/asterisk

    thereby making that binary active again.

    Then I tar up all the .so files in

    /usr/lib/asterisk/modules

    into

    asterisk.1.8.32.3.tar

    and delete all .so files in /usr/lib/asterisk/modules, then extract

    tar xvf asterisk.1.8.11.0.tar

    to revert to the older version’s modules.

    I can then go

    # asterisk

    and now I’m back to running

    Asterisk 1.8.11.0

    I’ve done this with three or four different Asterisk versions in the past, switching between them for testing.

    A bit more manual procedure that you’ve done, but it does work to try out similar Asterisk versions / subversions for testing?

    Regards,

    Message: 2
    Date: Thu, 24 Jan 2019 02:49:52 -0500
    From: John Covici
    To: viljoens@verishare.co.za, Asterisk Users Mailing List –
    Non-Commercial Discussion
    Subject: Re: [asterisk-users] trying to upgrade asterisk and Debian —
    not working (John Covici)
    Message-ID:
    Content-Type: text/plain; charset=US-ASCII

    I checked out 13.15.0, ./configure, make delete all modules, followed by make install.