Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Install Asterisk11.5+AsteriskGUI on ubuntu
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Install Asterisk11.5+AsteriskGUI on ubuntu

RamiRami Member
edited October 2013 in Tutorials

I will show you how to install Asterisk server + AsteriskGUI on Ubuntu 12.04 with very easy steps

1- First steps

apt-get update && apt-get upgrade

apt-get install build-essential wget libssl-dev libncurses5-dev libnewt-dev libxml2-dev linux-headers-$(uname -r) libsqlite3-dev uuid-dev

2- install Asterisk

cd /usr/src/

wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.14.tar.gz

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-11.5.0-rc1.tar.gz

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-sounds-1.2.1.tar.gz

wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.2.4.tar.gz


tar -xzf libpri-1.4.14.tar.gz

tar -xzf asterisk-11.5.0-rc1.tar.gz

tar -xzf asterisk-sounds-1.2.1.tar.gz

tar -xzf asterisk-addons-1.6.2.4.tar.gz


cd libpri-1.4.14

make

make install

cd ..


cd asterisk-11.5.0-rc1

./configure

make menuconfig

make

make install

make samples

make config

cd ..


cd asterisk-sounds-1.2.1

make install

cd ..


cd asterisk-addons-1.6.2.4

./configure

make

make install

cd ..


service asterisk start


3- Install AsteriskGUI

wget http://downloads.asterisk.org/pub/telephony/asterisk-gui/asterisk-gui-2.1.0-rc1.tar.gz

tar -xzf asterisk-gui-2.1.0-rc1.tar.gz

cd asterisk-gui-2.1.0-rc1

./configure

make

make install

nano /etc/asterisk/manager.conf

change it to look like this (remove any ";" )

[general]

enabled = yes

webenabled = yes

port = 5038

bindaddr = 0.0.0.0

[admin]

secret = (the password that you will use in login)

read = system,call,log,verbose,command,agent,user,config

write = system,call,log,verbose,command,agent,user,config


nano /etc/asterisk/http.conf

change it to look like this (remove any ";" )

[general]

enabled=yes

bindaddr=0.0.0.0

enablestatic=yes


make checkconfig

/etc/init.d/asterisk restart


Paste this in your browser (replace x.x.x.x with your VPS IP)

http://x.x.x.x:8088/static/config/cfgbasic.html

user=admin & password= (secret that you choose in manager.conf)


Now you can enjoy it

Thanked by 2john_k elixir

Comments

  • agoldenbergagoldenberg Member, Host Rep

    Tried this tutorial but while compiling libpri I get an ass load of errors and make install fails.

  • @agoldenberg said:
    Tried this tutorial but while compiling libpri I get an ass load of errors and make install fails.

    I used this steps for years with more than Asterisk ver and it is working fine for me

    what errors do you got?

  • agoldenbergagoldenberg Member, Host Rep

    It's complaining about Dahdi

  • RamiRami Member
    edited October 2013

    @agoldenberg said:
    It's complaining about Dahdi

    I did not install Dahdi here (so you can ignore it I think)

    Edit:I mean that it is not the reason that server does not work

    try my steps and it work I'm sure

    and if you need help just tell me

  • agoldenbergagoldenberg Member, Host Rep

    root@atl:/usr/src# cd libpri-1.4.14 root@atl:/usr/src/libpri-1.4.14# make gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_aoc.o -MF .pri_aoc.o.d -MP -c -o pri_aoc.o pri_aoc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_cc.o -MF .pri_cc.o.d -MP -c -o pri_cc.o pri_cc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT asn1_primitive.o -MF .asn1_primitive.o.d -MP -c -o asn1_primitive.o asn1_primitive.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose.o -MF .rose.o.d -MP -c -o rose.o rose.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_address.o -MF .rose_address.o.d -MP -c -o rose_address.o rose_address.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_etsi_aoc.o -MF .rose_etsi_aoc.o.d -MP -c -o rose_etsi_aoc.o rose_etsi_aoc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_etsi_cc.o -MF .rose_etsi_cc.o.d -MP -c -o rose_etsi_cc.o rose_etsi_cc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_etsi_diversion.o -MF .rose_etsi_diversion.o.d -MP -c -o rose_etsi_diversion.o rose_etsi_diversion.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_etsi_ect.o -MF .rose_etsi_ect.o.d -MP -c -o rose_etsi_ect.o rose_etsi_ect.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_etsi_mwi.o -MF .rose_etsi_mwi.o.d -MP -c -o rose_etsi_mwi.o rose_etsi_mwi.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_other.o -MF .rose_other.o.d -MP -c -o rose_other.o rose_other.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_q931.o -MF .rose_q931.o.d -MP -c -o rose_q931.o rose_q931.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_aoc.o -MF .rose_qsig_aoc.o.d -MP -c -o rose_qsig_aoc.o rose_qsig_aoc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_cc.o -MF .rose_qsig_cc.o.d -MP -c -o rose_qsig_cc.o rose_qsig_cc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_ct.o -MF .rose_qsig_ct.o.d -MP -c -o rose_qsig_ct.o rose_qsig_ct.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_diversion.o -MF .rose_qsig_diversion.o.d -MP -c -o rose_qsig_diversion.o rose_qsig_diversion.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_mwi.o -MF .rose_qsig_mwi.o.d -MP -c -o rose_qsig_mwi.o rose_qsig_mwi.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT rose_qsig_name.o -MF .rose_qsig_name.o.d -MP -c -o rose_qsig_name.o rose_qsig_name.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT version.o -MF .version.o.d -MP -c -o version.o version.c ar rcs libpri.a copy_string.o pri.o q921.o prisched.o q931.o pri_aoc.o pri_cc.o pri_facility.o asn1_primitive.o rose.o rose_address.o rose_etsi_aoc.o rose_etsi_cc.o rose_etsi_diversion.o rose_etsi_ect.o rose_etsi_mwi.o rose_other.o rose_q931.o rose_qsig_aoc.o rose_qsig_cc.o rose_qsig_ct.o rose_qsig_diversion.o rose_qsig_mwi.o rose_qsig_name.o version.o ranlib libpri.a gcc -shared -Wl,-hlibpri.so.1.4 -o libpri.so.1.4 copy_string.o pri.o q921.o prisched.o q931.o pri_aoc.o pri_cc.o pri_facility.o asn1_primitive.o rose.o rose_address.o rose_etsi_aoc.o rose_etsi_cc.o rose_etsi_diversion.o rose_etsi_ect.o rose_etsi_mwi.o rose_other.o rose_q931.o rose_qsig_aoc.o rose_qsig_cc.o rose_qsig_ct.o rose_qsig_diversion.o rose_qsig_mwi.o rose_qsig_name.o version.o /sbin/ldconfig -n . ln -sf libpri.so.1.4 libpri.so gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pridump.o -MF .pridump.o.d -MP -c -o pridump.o pridump.c pridump.c:45:24: fatal error: dahdi/user.h: No such file or directory compilation terminated. make: *** [pridump.o] Error 1

  • agoldenbergagoldenberg Member, Host Rep

    @rami The above is the error I am getting.

  • RamiRami Member
    edited October 2013

    @agoldenberg said:
    rami The above is the error I am getting.

    Actually if you do not need Dahdi it will not be a problem (I'm not professional but it is working for me with the same error ) ignore it and complete the steps

  • WebProjectWebProject Host Rep, Veteran

    IMHO, much better to install ready solution like elastix: http://www.elastix.org/index.php/en/

  • @WebProject said:
    IMHO, much better to install ready solution like elastix: http://www.elastix.org/index.php/en/

    I prefer Trixbox but you can not install them on OpenVZ ;)

  • @Rami said:
    I prefer Trixbox but you can not install them on OpenVZ ;)

    You can install trixbox on OpenVZ. I have a OpenVZ template, so you could install trixbox on openvz in 1 minute!

    Also search for my tutorial which can install asterisk 1.4.44 on centos 5.x automatically using a script

  • RamiRami Member

    @asterisk14 Thanks for the info :)

    I know a way to install elastix on openvz VPS too

Sign In or Register to comment.