Asterisk 1.8 - installation

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,

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

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!!

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…

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
[/QUOTE]

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,

if you get a svn command not found run

yum install subversion

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 =) 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 =)

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

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?

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

or as another user with all priveleges

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

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!

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

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

thanks any way

Regards

Good day,

Is upgrading using yum repository recommended using the following procedure?

yum remove asterisk16*
yum install asterisk18*

Blessings,

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!

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).

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.