Asterisk 1.8 - installation

39 posts / 0 new
Last post
mickecarlsson
mickecarlsson's picture
Asterisk 1.8 - installation

Asterisk 1.8 have a different approach to the installation than the previous versions.

This is a simple step by step install instruction how to install Asterisk 1.8 on a Centos 5.x

Go to your src directory
cd /usr/src
Download current Asterisk 1.8
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.8-current.tar.gz
Unpack it
tar xvfz asterisk-1.8-current.tar.gz
Go down to asterisk unpacked files directory
NOTE: You need to do a ls -l to see the directory created from the tar.
This is the latest release

cd asterisk-1.8.4.4
Download mp3 support files
contrib/scripts/get_mp3_source.sh
Run configure
./configure
Start menu based configuration
make menuconfig
select app_mysql, app_saycountpl, cdr_mysql, format_mp3, res_config_mysql
go to Extras Sound Packages
Select EXTRAS-SOUNDS-EN-GSM
Save & Exit
Run make
make
Then run the installer
make install
Stop running Asterisk
amportal stop
And start the new Asterisk 1.8
amportal start

dpowers3
dpowers3's picture
make sure subversion is installed

if you get a svn command not found run

yum install subversion

Ubunter
Ubunter's picture
Errors

Hi Mikael,
Thanks for the thread, but I got errors...
just when I arrive to amportal stop, I get amportal: command not found... I guess because it's no pbx installed yet, no? so, how you want to give the command before installing the pbx an it's amportal, I don't get you...

Also, when I follow to install asterisk-addons-1.6.2.2, just after issuing make I get:

Quote:
Generating embedded module rules ...
make[1]: Entering directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Leaving directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Entering directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Leaving directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Entering directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Leaving directory `/usr/src/asterisk/asterisk-addons-1.6.2.2'
make[1]: Entering directory `/usr/src/asterisk/asterisk-addons-1.6.2.2/channels'
[CC] chan_ooh323.c -> chan_ooh323.o
In file included from chan_ooh323.c:18:
chan_ooh323.h:53:26: error: asterisk/rtp.h: No such file or directory
chan_ooh323.c:55: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:55: warning: its scope is only this definition or declaration, which is probably not what you want
chan_ooh323.c:56: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:58: warning: ‘struct ast_rtp’ declared inside parameter list
chan_ooh323.c:70: warning: initialization from incompatible pointer type
chan_ooh323.c:82: error: ‘ast_rtp_bridge’ undeclared here (not in a function)
chan_ooh323.c:85: error: variable ‘ooh323_rtp’ has initializer but incomplete type
chan_ooh323.c:86: error: unknown field ‘type’ specified in initializer
chan_ooh323.c:86: warning: excess elements in struct initializer
chan_ooh323.c:86: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:87: error: unknown field ‘get_rtp_info’ specified in initializer
chan_ooh323.c:87: warning: excess elements in struct initializer
chan_ooh323.c:87: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:88: error: unknown field ‘get_vrtp_info’ specified in initializer
chan_ooh323.c:88: warning: excess elements in struct initializer
chan_ooh323.c:88: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c:89: error: unknown field ‘set_rtp_peer’ specified in initializer
chan_ooh323.c:90: warning: excess elements in struct initializer
chan_ooh323.c:90: warning: (near initialization for ‘ooh323_rtp’)
chan_ooh323.c: In function ‘ooh323_new’:
chan_ooh323.c:257: warning: passing argument 8 of ‘__ast_channel_alloc’ makes pointer from integer without a cast
chan_ooh323.c:257: warning: passing argument 9 of ‘__ast_channel_alloc’ makes integer from pointer without a cast
chan_ooh323.c:300: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:304: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_alloc’:
chan_ooh323.c:379: warning: assignment makes pointer from integer without a cast
chan_ooh323.c: In function ‘ooh323_call’:
chan_ooh323.c:736: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:740: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:743: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:747: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:750: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c:754: error: ‘struct ast_channel’ has no member named ‘cid’
chan_ooh323.c: In function ‘ooh323_write’:
chan_ooh323.c:909: error: invalid operands to binary & (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c: In function ‘ooh323_onReceivedDigit’:
chan_ooh323.c:1149: error: incompatible types in assignment
chan_ooh323.c: In function ‘build_user’:
chan_ooh323.c:1554: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c:1561: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c: In function ‘build_peer’:
chan_ooh323.c:1654: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c:1661: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c: In function ‘reload_config’:
chan_ooh323.c:1905: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c:1911: warning: passing argument 2 of ‘ast_parse_allow_disallow’ from incompatible pointer type
chan_ooh323.c: At top level:
chan_ooh323.c:2824: error: return type is an incomplete type
chan_ooh323.c:2823: error: conflicting types for ‘ooh323_get_rtp_peer’
chan_ooh323.c:55: error: previous declaration of ‘ooh323_get_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_rtp_peer’:
chan_ooh323.c:2826: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:2826: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:2826: error: (Each undeclared identifier is reported only once
chan_ooh323.c:2826: error: for each function it appears in.)
chan_ooh323.c:2826: error: storage size of ‘res’ isn’t known
chan_ooh323.c:2829: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:2829: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2834: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2836: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:2838: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2842: error: return type is an incomplete type
chan_ooh323.c:2841: error: conflicting types for ‘ooh323_get_vrtp_peer’
chan_ooh323.c:56: error: previous declaration of ‘ooh323_get_vrtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_get_vrtp_peer’:
chan_ooh323.c:2844: error: variable ‘res’ has initializer but incomplete type
chan_ooh323.c:2844: error: ‘AST_RTP_TRY_PARTIAL’ undeclared (first use in this function)
chan_ooh323.c:2844: error: storage size of ‘res’ isn’t known
chan_ooh323.c:2847: error: ‘AST_RTP_GET_FAILED’ undeclared (first use in this function)
chan_ooh323.c:2847: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2852: warning: ‘return’ with a value, in function returning void
chan_ooh323.c:2854: error: ‘AST_RTP_TRY_NATIVE’ undeclared (first use in this function)
chan_ooh323.c:2856: warning: ‘return’ with a value, in function returning void
chan_ooh323.c: At top level:
chan_ooh323.c:2899: error: conflicting types for ‘ooh323_set_rtp_peer’
chan_ooh323.c:57: error: previous declaration of ‘ooh323_set_rtp_peer’ was here
chan_ooh323.c: In function ‘ooh323_rtp_read’:
chan_ooh323.c:3060: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3063: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3066: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3069: warning: assignment makes pointer from integer without a cast
chan_ooh323.c:3081: error: invalid operands to binary != (have ‘union ast_frame_subclass’ and ‘format_t’)
chan_ooh323.c:3083: error: incompatible types in assignment
make[1]: *** [chan_ooh323.o] Error 1
make[1]: Leaving directory `/usr/src/asterisk/asterisk-addons-1.6.2.2/channels'
make: *** [channels] Error 2

I tried to go back to make menuconfig, and unselect the format_mp3, but no way, when I repeat, i get the same....

Helppp please!!!

Thanks,

mickecarlsson
mickecarlsson's picture
Please, create a new thread

Please, create a new thread instead of hijacking this. My original thread is for Asterisk 1.8, you are trying to install 1.6.

DO NOT REPLY TO THIS THREAD!!

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)

Ubunter
Ubunter's picture
Sure I'm installing 1.8

Sure I'm installing 1.8 asterisk, what's 1.6 is the addons, for what i have to ask to install 1.6 where's automated...

kenn10
kenn10's picture
There is no "Asterisk-addon

Asterisk 1.8 does not use the add-ons. Its built in to the main Asterisk load.

Ubunter
Ubunter's picture
Thanks kenn, Well, I guess

Thanks kenn,
Well, I guess that, because I start o get errors, just when install the add-ons...

So, as I understand, v. 1.8 it's all in box?

Regards,

Ubunter
Ubunter's picture
No logout in admin panel

Hello again,

as I asked in other thread, after installing all asterisk 1.8, freepbx 2.8 and a2billing 1.8, I'm missing a logout bottom in freepbx admin panel, on the GUI I mean... when I go to my IP I have to choice to access as admin, and no password prompt, so i go without any password, and no any option to get logout...

any idea, this is a critical security bug, or what??
Regards,

jcostom
jcostom's picture
No CDRs after upgrade to 1.8

So, I upgraded from 1.6.2 to 1.8 the other day. Everything is working, except for my CDRs. Everything looks the same as it did before the upgrade - empty cdr.conf, all the info in cdr_mysql.conf. I don't seem to be getting any CDR data at all, where I was getting it before the upgrade.

I did check, and yes, /usr/lib/asterisk/modules/cdr_mysql.so is there, and matches the other modules that got installed when I built 1.8.0. The module does show as loaded, but cdr mysql status claims that it's not connected to a mysql server.

This just feels like it should be some sort of simple resolution, though I'm having trouble putting my finger on it..

SkykingOH
SkykingOH's picture
What is the output of 'cdr

What is the output of 'cdr mysql status' and 'cdr status' ??

jcostom
jcostom's picture
Got it sorted out. Somehow,

Got it sorted out. Somehow, something along the way altered my /etc/asterisk/cdr_mysql.conf, changing the user from asteriskuser to freepbx. Odd.

Works now.

slikone27
slikone27's picture
MySQL Error

when i run the make i get the following errors (install was from voxilla ec2 freepbx - can someone please help?):

app_mysql.c:33:25: error: mysql/mysql.h: No such file or directory
app_mysql.c: In function 'mysql_ds_destroy':
app_mysql.c:135: warning: implicit declaration of function 'mysql_close'
app_mysql.c:138: warning: implicit declaration of function 'mysql_free_result'
app_mysql.c: In function 'aMYSQL_connect':
app_mysql.c:320: error: 'MYSQL' undeclared (first use in this function)
app_mysql.c:320: error: (Each undeclared identifier is reported only once
app_mysql.c:320: error: for each function it appears in.)
app_mysql.c:320: error: 'mysql' undeclared (first use in this function)
app_mysql.c:331: warning: implicit declaration of function 'mysql_init'
app_mysql.c:338: warning: implicit declaration of function 'mysql_options'
app_mysql.c:338: error: 'MYSQL_OPT_CONNECT_TIMEOUT' undeclared (first use in this function)
app_mysql.c:344: warning: implicit declaration of function 'mysql_real_escape_string'
app_mysql.c:345: error: 'MYSQL_INIT_COMMAND' undeclared (first use in this function)
app_mysql.c:346: error: 'MYSQL_SET_CHARSET_NAME' undeclared (first use in this function)
app_mysql.c:349: warning: implicit declaration of function 'mysql_real_connect'
app_mysql.c:359: warning: implicit declaration of function 'mysql_errno'
app_mysql.c:359: warning: implicit declaration of function 'mysql_error'
app_mysql.c:359: warning: format '%s' expects type 'char *', but argument 10 has type 'int'
app_mysql.c: In function 'aMYSQL_query':
app_mysql.c:375: error: 'MYSQL' undeclared (first use in this function)
app_mysql.c:375: error: 'mysql' undeclared (first use in this function)
app_mysql.c:376: error: 'MYSQL_RES' undeclared (first use in this function)
app_mysql.c:376: error: 'mysqlres' undeclared (first use in this function)
app_mysql.c:392: warning: implicit declaration of function 'mysql_query'
app_mysql.c:393: warning: format '%s' expects type 'char *', but argument 6 has type 'int'
app_mysql.c:397: warning: implicit declaration of function 'mysql_store_result'
app_mysql.c:400: warning: implicit declaration of function 'mysql_field_count'
app_mysql.c: In function 'aMYSQL_nextresult':
app_mysql.c:410: error: 'MYSQL' undeclared (first use in this function)
app_mysql.c:410: error: 'mysql' undeclared (first use in this function)
app_mysql.c:411: error: 'MYSQL_RES' undeclared (first use in this function)
app_mysql.c:411: error: 'mysqlres' undeclared (first use in this function)
app_mysql.c:432: warning: implicit declaration of function 'mysql_more_results'
app_mysql.c:433: warning: implicit declaration of function 'mysql_next_result'
app_mysql.c: In function 'aMYSQL_fetch':
app_mysql.c:450: error: 'MYSQL_RES' undeclared (first use in this function)
app_mysql.c:450: error: 'mysqlres' undeclared (first use in this function)
app_mysql.c:451: error: 'MYSQL_ROW' undeclared (first use in this function)
app_mysql.c:451: error: expected ';' before 'mysqlrow'
app_mysql.c:468: error: 'mysqlrow' undeclared (first use in this function)
app_mysql.c:468: warning: implicit declaration of function 'mysql_fetch_row'
app_mysql.c:469: warning: implicit declaration of function 'mysql_num_fields'
app_mysql.c: In function 'aMYSQL_clear':
app_mysql.c:502: error: 'MYSQL_RES' undeclared (first use in this function)
app_mysql.c:502: error: 'mysqlres' undeclared (first use in this function)
app_mysql.c: In function 'aMYSQL_disconnect':
app_mysql.c:519: error: 'MYSQL' undeclared (first use in this function)
app_mysql.c:519: error: 'mysql' undeclared (first use in this function)
make[1]: *** [app_mysql.o] Error 1
make: *** [addons] Error 2

InfoTech
InfoTech's picture
no acceptable C compiler

When I am trying to update to Asterisk v1.8 I keep getting this error: no acceptable C compiler found in $PATH

I checked an it seems to have gcc already installed. Currently Running FreePBX 2.8.0.4 and Asterisk 1.6.2.11

Still learning.....

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = xxxxxx.local
uname -m = i686
uname -r = 2.6.18-194.26.1.el5PAE
uname -s = Linux
uname -v = #1 SMP Tue Nov 9 13:34:42 EST 2010

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /root/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:3302: checking build system type
configure:3316: result: i686-pc-linux-gnu
configure:3336: checking host system type
configure:3349: result: i686-pc-linux-gnu
configure:3464: checking for gcc
configure:3494: result: no
configure:3557: checking for cc
configure:3604: result: no
configure:3660: checking for cl.exe
configure:3690: result: no
configure:3714: error: in `/usr/local/src/asterisk-1.8.1.1':
configure:3717: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Moderator note - MC
A totally useless log file removed. Error is that gcc is not found on your system

billsimon
billsimon's picture
that's a big posting

That's an awful lot of log file.

But the problem seems to still be right up there at the top... gcc not found. echo $PATH -- what do you get? Is the gcc program in your path?

I was able to compile with the following packages from yum. if you're using a different distro, find the equivalent in your distro.

gcc.x86_64 4.1.2-48.el5 installed
gcc-c++.x86_64 4.1.2-48.el5 installed
libgcc.i386 4.1.2-48.el5 installed
libgcc.x86_64 4.1.2-48.el5 installed

Better install make also if you don't have it.

Hey, by the way. Skip 1.8.1.1. Nasty transfer bug. See the release notes for 1.8.2-rc1. If you install 1.8.0-rc4 up through 1.8.1.1 you will have failed transfers from anything that uses the manager (Flash Operator Panel for example) and SIP blind transfers.

SkykingOH
SkykingOH's picture
Options for cdr-mysql library

In 1.8 it is important to use the ' ./configure --with-mysqlclient ' to install mysql support prior to compiling.

mcdeeiis
mcdeeiis's picture
app_mysql does not show up

I was able to get to the menu select screen and now I dont see these options..

select app_mysql, app_saycountpl, cdr_mysql, format_mp3, res_config_mysql

any reason why?

I checked to see if mysql is installed and when I did yum install mysql... this is what I get
Package mysql-5.0.77-4.el5_5.4.i386 already installed and latest version

any suggestions?

billsimon
billsimon's picture
Install mysql-devel also.

Install mysql-devel also.

mcdeeiis
mcdeeiis's picture
no change

its still the same... I installed mysql-devel and did ./configure and then make menuconfig... but I still dont see those options.

what am I missing?

billsimon
billsimon's picture
Is mysql found in the

Is mysql found in the config.log?

mcdeeiis
mcdeeiis's picture
yes

yes mysql is at several places in config.log

mcdeeiis
mcdeeiis's picture
here is what it

here is what it says..

configure:20150: checking for mysql_config
configure:20169: found /usr/bin/mysql_config
configure:20181: result: /usr/bin/mysql_config

billsimon
billsimon's picture
When you say you "don't see"

When you say you "don't see" the options do you mean you can't find them or they are there but XXX is through the checkbox, so that you can't select it?

If you can't find them... keep looking!

mcdeeiis
mcdeeiis's picture
my bad... I was looking

my bad... I was looking under Application when it was somewhere else. Thank you very much for you help. I appreciate it.

mcdeeiis
mcdeeiis's picture
Unable to connect to remote asterisk (does /var/run/asterisk/ast

I upgraded from 1.6 to 1.8 using the steps above without any errors during the installation. Now when I did amportal start, this is what I get...

Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)

Any ideas?
Any

The Other Guy
The Other Guy's picture
mcdeeiis - Any time I have

mcdeeiis - Any time I have received that message after an update or upgrade, I have always found that rebooting the system seems to fix the problem. YMMV.

JohnF
JohnF's picture
A caveat

After eveything finishes, don't install the sample configuration files.

"Asterisk has successfully been installed.
If you would like to install the sample configuration files (overwriting any
existing config files), run: make samples"

It did rename the existing .conf files to .old though.
Serves me right for not reading the message. Luckily I had a backup.

AndyMcKey
AndyMcKey's picture
format_mp3

I've got an error while using this step by step instruction
i've downloaded asterisk-1.8-current, didn't understand, where could i get get_mp3_source.sh, checked if there's the one in my contrib/scripts, and it was there. So i made ./configure and make menuconfig, cheked all you've pointed on, made make Smile and got errors about format_mp3.
So i've made make menuconfig again and unchecked format_mp3, make, make install.
It seems to work, but i think, i've lost something, like mp3 playback.
i its not crusual for me, but a little bit upset Smile

mickecarlsson
mickecarlsson's picture
When you are in the asterisk

When you are in the asterisk directory just type contrib/scripts/get_mp3_source.sh as it says in the instruction.

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)

rleal
rleal's picture
I update 1.6 to 1.8, but

I update 1.6 to 1.8, but dont have access Web interfce for configuration.

Forever execute amportal restart, result same: Unable to connect to remote asterisk (does /var/run/asterisk/asterisk/asterisk.ctl exist?)

Any idea for solved problem?

AndyMcKey
AndyMcKey's picture
mb do it as root?

or as another user with all priveleges

AndyMcKey
AndyMcKey's picture
menuselect

good day
i've got an error in size of my terminal
why?? please.. everything was so fine few days ago!! =(((
<<==== installation of system libraries fixed it...
pheeew

winanjaya
winanjaya's picture
Hi Mikael, I followed the

Hi Mikael,

I followed the instructions.. but after I ran ./configure .. I met the following warnings:

configure: *** XML documentation will not be available because the 'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the '--disable-xmldoc' parameter option
configure: *** or install the 'libxml2' development package.

could you please advise?

Thanks & Regards

billsimon
billsimon's picture
it tells you what to do :-)

Looks to me like you have two choices available to you.

Run configure with the --disable-xmldoc option.

Or install libxml2. (in CentOS: yum install libxml2-devel)

The configure script isn't so bad... it tells you exactly how to solve the problem!

winanjaya
winanjaya's picture
ok, thanks, now I have

ok, thanks, now I have installed new Asterisk 1.8.4 to work with FreePBX..
but why I am unable login into FreePBX .. I am still using default (freepbx/fpbx)

could any body please help?

Thanks

winanjaya
winanjaya's picture
just want to share .. that

just want to share .. that after upgraded default user id and password changed to admin / admin

thanks any way

Regards

benzo
benzo's picture
Yum Upgrade

Good day,

Is upgrading using yum repository recommended using the following procedure?

yum remove asterisk16*
yum install asterisk18*

Blessings,

bodywave
bodywave's picture
To benzo

See http://forums.digium.com/viewtopic.php?f=14&t=75822
Although this post was intended for people using the AsteriskNow distro, it should also apply if you simply added Digium's repositories to a CentOS/RHEL 5.x system (like described at http://www.asterisk.org/downloads/yum).

axion_joey
axion_joey's picture
Cannot Start Asterisk

Thanks for the guide. I tried this on a test box that is currently running 1.6.2.16.1 on Centos 5.4.

The upgrade appears to work fine, but I get the following error message when I try to run amportal start.

SETTING FILE PERMISSIONS
chown: cannot access `/dev/tty9': No such file or directory
Permissions OK

STARTING ASTERISK
[Aug 12 17:01:26] NOTICE[1018]: cdr.c:1558 do_reload: CDR simple logging enabled.
[Aug 12 17:01:26] NOTICE[1018]: loader.c:1118 load_modules: 206 modules will be loaded.
[Aug 12 17:01:26] NOTICE[1018]: res_odbc.c:1837 load_module: res_odbc loaded.
[Aug 12 17:01:26] NOTICE[1018]: res_smdi.c:1414 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Aug 12 17:01:26] WARNING[1018]: loader.c:449 load_dynamic_module: Error loading module 'app_dahdiscan.so': /usr/lib/asterisk/modules/app_dahdiscan.so: undefined symbol: ast_channel_walk_locked
[Aug 12 17:01:26] WARNING[1018]: loader.c:839 load_resource: Module 'app_dahdiscan.so' could not be loaded.
[Aug 12 17:01:26] WARNING[1018]: loader.c:449 load_dynamic_module: Error loading module 'cdr_addon_mysql.so': /usr/lib/asterisk/modules/cdr_addon_mysql.so: undefined symbol: ast_debug_get_by_file
[Aug 12 17:01:26] WARNING[1018]: loader.c:839 load_resource: Module 'cdr_addon_mysql.so' could not be loaded.
[Aug 12 17:01:26] WARNING[1018]: loader.c:387 load_dynamic_module: Error loading module 'ÀÔ': /usr/lib/asterisk/modules/ÀÔ.so: cannot open shared object file: No such file or directory
[Aug 12 17:01:26] WARNING[1018]: loader.c:387 load_dynamic_module: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Aug 12 17:01:26] WARNING[1018]: loader.c:449 load_dynamic_module: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[Aug 12 17:01:26] WARNING[1018]: loader.c:839 load_resource: Module 'chan_mgcp.so' could not be loaded.
[Aug 12 17:01:26] WARNING[1018]: loader.c:449 load_dynamic_module: Error loading module 'app_addon_sql_mysql.so': /usr/lib/asterisk/modules/app_addon_sql_mysql.so: undefined symbol: ast_debug_get_by_file
[Aug 12 17:01:26] WARNING[1018]: loader.c:839 load_resource: Module 'app_addon_sql_mysql.so' could not be loaded.
[Aug 12 17:01:26] NOTICE[1018]: config.c:1987 ast_config_engine_register: Registered Config Engine curl
[Aug 12 17:01:26] NOTICE[1018]: config.c:1987 ast_config_engine_register: Registered Config Engine odbc
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1483 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1489 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1495 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1501 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1507 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1519 load_mysql_config: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Aug 12 17:01:26] WARNING[1018]: res_config_mysql.c:1524 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Aug 12 17:01:26] NOTICE[1018]: config.c:1987 ast_config_engine_register: Registered Config Engine mysql
[Aug 12 17:01:26] NOTICE[1018]: chan_skinny.c:7206 config_load: Configuring skinny from skinny.conf
[Aug 12 17:01:26] WARNING[1018]: translate.c:797 __ast_register_translator: empty buf size, you need to supply one
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed
[Aug 12 17:01:30] NOTICE[1059]: cdr.c:1558 do_reload: CDR simple logging enabled.
[Aug 12 17:01:30] NOTICE[1059]: loader.c:1118 load_modules: 206 modules will be loaded.
[Aug 12 17:01:30] NOTICE[1059]: res_odbc.c:1837 load_module: res_odbc loaded.
[Aug 12 17:01:30] NOTICE[1059]: res_smdi.c:1414 load_module: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Aug 12 17:01:30] WARNING[1059]: loader.c:449 load_dynamic_module: Error loading module 'app_dahdiscan.so': /usr/lib/asterisk/modules/app_dahdiscan.so: undefined symbol: ast_channel_walk_locked
[Aug 12 17:01:30] WARNING[1059]: loader.c:839 load_resource: Module 'app_dahdiscan.so' could not be loaded.
[Aug 12 17:01:30] WARNING[1059]: loader.c:449 load_dynamic_module: Error loading module 'cdr_addon_mysql.so': /usr/lib/asterisk/modules/cdr_addon_mysql.so: undefined symbol: ast_debug_get_by_file
[Aug 12 17:01:30] WARNING[1059]: loader.c:839 load_resource: Module 'cdr_addon_mysql.so' could not be loaded.
[Aug 12 17:01:31] WARNING[1059]: loader.c:387 load_dynamic_module: Error loading module 'Ô': /usr/lib/asterisk/modules/Ô.so: cannot open shared object file: No such file or directory
[Aug 12 17:01:31] WARNING[1059]: loader.c:387 load_dynamic_module: Error loading module 'res_pktccops': /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Aug 12 17:01:31] WARNING[1059]: loader.c:449 load_dynamic_module: Error loading module 'chan_mgcp.so': /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[Aug 12 17:01:31] WARNING[1059]: loader.c:839 load_resource: Module 'chan_mgcp.so' could not be loaded.
[Aug 12 17:01:31] WARNING[1059]: loader.c:449 load_dynamic_module: Error loading module 'app_addon_sql_mysql.so': /usr/lib/asterisk/modules/app_addon_sql_mysql.so: undefined symbol: ast_debug_get_by_file
[Aug 12 17:01:31] WARNING[1059]: loader.c:839 load_resource: Module 'app_addon_sql_mysql.so' could not be loaded.
[Aug 12 17:01:31] NOTICE[1059]: config.c:1987 ast_config_engine_register: Registered Config Engine curl
[Aug 12 17:01:31] NOTICE[1059]: config.c:1987 ast_config_engine_register: Registered Config Engine odbc
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1483 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1489 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1495 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1501 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1507 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1519 load_mysql_config: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Aug 12 17:01:31] WARNING[1059]: res_config_mysql.c:1524 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Aug 12 17:01:31] NOTICE[1059]: config.c:1987 ast_config_engine_register: Registered Config Engine mysql
[Aug 12 17:01:31] NOTICE[1059]: chan_skinny.c:7206 config_load: Configuring skinny from skinny.conf
[Aug 12 17:01:31] WARNING[1059]: translate.c:797 __ast_register_translator: empty buf size, you need to supply one
Asterisk ended with exit status 1
Asterisk died with code 1.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed

-----------------------------------------------------
Asterisk could not start!
Use 'tail /var/log/asterisk/full' to find out why.

Has anybody had a similar issue? Any help would be greatly appreciated thanks!

mickecarlsson
mickecarlsson's picture
Please, DON'T hijack this

Please, DON'T hijack this thread. Start a new one with your specific question.
I am now closing this thread for further comments.
Thanks for understanding.

Mikael Carlsson
(I am off-line, tinkering with my Chevy and my radios, don't know when I will be back)

Topic locked