Установка Asterisk из репозитариев на Ubuntu Trusty

Posted by

Шпаргалка для самого себя как установить Asterisk из подключаемых репозитариев на .4 Server amd64 чтобы не забыть и тестировать понимание работы и настройки:

ekzorchik@srv-host:~$ sudo rm -Rf /var/lib/apt/lists/

[sudo] password for ekzorchik:

ekzorchik@srv-host:~$ sudo apt-get update && sudo apt-get upgrade -y

ekzorchik@srv-host:~$ apt-cache show asterisk | grep Version

Version: 1:11.7.0~dfsg-1ubuntu1

ekzorchik@srv-host:~$ sudo nano /etc/apt/sources.list

deb http://ppa.launchpad.net/jan-hoffmann/asterisk13/ubuntu trusty main

deb-src http://ppa.launchpad.net/jan-hoffmann/asterisk13/ubuntu trusty main

W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 66FF47349C245DE2

ekzorchik@srv-host:~$ gpg --keyserver keyserver.ubuntu.com --recv 66FF47349C245DE2

ekzorchik@srv-host:~$ gpg --export --armor 66FF47349C245DE2 | sudo apt-key add -

OK

ekzorchik@srv-host:~$ sudo apt-get update

ekzorchik@srv-host:~$ apt-cache show asterisk | grep Version

Version: 1:13.7.2~dfsg-0~ppa1

Version: 1:11.7.0~dfsg-1ubuntu1

ekzorchik@srv-host:~$ sudo apt-get install asterisk -y

ekzorchik@srv-host:~$ sudo service asterisk status

* Asterisk PBX is running

ekzorchik@srv-host:~$ sudo asterisk -rvvvv

Asterisk 13.7.2~dfsg-0~ppa1, Copyright (C) 1999 — 2014, Digium, Inc. and others.

Created by Mark Spencer <markster@digium.com>

Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.

This is free software, with components licensed under the GNU General Public

License version 2 and other licenses; you are welcome to redistribute it under

certain conditions. Type ‘core show license’ for details.

=========================================================================

Connected to Asterisk 13.7.2~dfsg-0~ppa1 currently running on srv-host (pid = 17554)

srv-host*CLI> sip show peers

Name/username Host Dyn Forcerport Comedia ACL Port Status Description

0 sip peers [Monitored: 0 online, 0 offline Unmonitored: 0 online, 0 offline]

Так лучше ставить из репозитариев чем разгребать сотню другую проблем ручной компиляции и установки. На этом все, с уважением автор блога — ekzorchik.