Installing asterisk 16 on centos 7

#1

I tried to migrate from 15 to 16. I installed and used 15 on centos7 for some time now. but i tried to install 16 and it installed properly. but when i run asterisk i get this error:

loader.c:2243 load_modules: Error loading module ‘chan_pjsip.so’: /usr/lib64/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects

can anybody help with this?

0 Likes

#2

Try to install Asterisk is this way when running configure command

./configure --libdir=/usr/lib64 --with-pjproject-bundled

0 Likes

#3

pjproject-bundled is enabled by default since 15 or such. i tried it anyway. didnt help.

0 Likes

#4

by the way here is for reference what executed

./configure --libdir=/usr/lib64 --with-jansson-bundled

make menuselect.makeopts

menuselect/menuselect --enable ODBC_STORAGE menuselect.makeopts

menuselect/menuselect --disable CHAN_IAX2 menuselect.makeopts

menuselect/menuselect --disable CHAN_SIP menuselect.makeopts

menuselect/menuselect --disable CHAN_MGCP menuselect.makeopts

menuselect/menuselect --disable CHAN_SKINNY menuselect.makeopts

menuselect/menuselect --disable CHAN_UNISTIM menuselect.makeopts

menuselect/menuselect --disable CHAN_OSS menuselect.makeopts

menuselect/menuselect --disable CHAN_PHONE menuselect.makeopts

menuselect/menuselect --disable CDR_CSV menuselect.makeopts

menuselect/menuselect --disable CDR_SQLITE3_CUSTOM menuselect.makeopts

menuselect/menuselect --disable CEL_SQLITE3_CUSTOM menuselect.makeopts

menuselect/menuselect --disable PBX_DUNDI menuselect.makeopts

make

make install

make config

make basic-pbx

make clean dist-clean

0 Likes

#5

the complete error trace –

“[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘chan_pjsip.so’: /usr/lib64/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘func_pjsip_aor.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘func_pjsip_contact.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘func_pjsip_endpoint.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_acl.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_authenticator_digest.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_caller_id.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_dialog_info_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_diversion.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_dlg_options.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_dtmf_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_empty_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_endpoint_identifier_anonymous.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_endpoint_identifier_ip.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_endpoint_identifier_user.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_exten_state.so’, missing dependencies: res_pjsip, res_pjsip_pubsub, res_pjsip_outbound_publish
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_header_funcs.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_history.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_logger.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_messaging.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_mwi_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_mwi.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_nat.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_notify.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_one_touch_record_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_outbound_authenticator_digest.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_outbound_publish.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_outbound_registration.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_path.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_pidf_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_pidf_digium_body_supplement.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_pidf_eyebeam_body_supplement.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_publish_asterisk.so’, missing dependencies: res_pjsip, res_pjsip_outbound_publish, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_pubsub.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_refer.so’, missing dependencies: res_pjsip, res_pjsip_session, res_pjsip_pubsub
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_registrar.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_rfc3326.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_sdp_rtp.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_send_to_voicemail.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_session.so’, missing dependency: res_pjsip
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip.so’: /usr/lib64/asterisk/modules/res_pjsip.so: undefined symbol: pj_ssl_cipher_name
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_t38.so’, missing dependencies: res_pjsip, res_pjsip_session
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_transport_websocket.so’, missing dependencies: res_pjsip, res_http_websocket
[Oct 17 21:05:50] ERROR[98]: loader.c:2243 load_modules: Error loading module ‘res_pjsip_xpidf_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
Asterisk Ready.”

0 Likes

#6

You are missing modules that chan_pjsip is dependent upon. You need to have res_pjproject.so and res_pjsip.so loaded at least. Getting those two modules built and loaded will reduce the amount of errors considerably.

1 Like

#7

Here is my modules.conf

[modules]

autoload = no

preload => res_odbc.so

preload => res_config_odbc.so

; Applications

load = app_bridgewait.so

load = app_dial.so

load = app_playback.so

load = app_stack.so

load = app_verbose.so

load = app_voicemail.so

load = app_directory.so

load = app_confbridge.so

load = app_queue.so

load = app_while.so

load = app_read.so

; Bridging

load = bridge_builtin_features.so

load = bridge_builtin_interval_features.so

load = bridge_holding.so

load = bridge_native_rtp.so

load = bridge_simple.so

load = bridge_softmix.so

; Call Detail Records

load = cdr_adaptive_odbc.so

; Channel Drivers

load = chan_bridge_media.so

load = chan_pjsip.so

; Codecs

load = codec_gsm.so

load = codec_resample.so

load = codec_ulaw.so

load = codec_g722.so

; Formats

load = format_gsm.so

load = format_pcm.so

load = format_wav_gsm.so

load = format_wav.so

; Functions

load = func_callerid.so

load = func_channel.so

load = func_cdr.so

load = func_pjsip_aor.so

load = func_pjsip_contact.so

load = func_pjsip_endpoint.so

load = func_sorcery.so

load = func_devstate.so

load = func_strings.so

load = func_logic.so

; Core/PBX

load = pbx_config.so

; Resources

load = res_convert.so

load = res_musiconhold.so

load = res_pjproject.so

load = res_pjsip_acl.so

load = res_pjsip_authenticator_digest.so

load = res_pjsip_caller_id.so

load = res_pjsip_dialog_info_body_generator.so

load = res_pjsip_diversion.so

load = res_pjsip_dtmf_info.so

load = res_pjsip_endpoint_identifier_anonymous.so

load = res_pjsip_endpoint_identifier_ip.so

load = res_pjsip_endpoint_identifier_user.so

load = res_pjsip_exten_state.so

load = res_pjsip_header_funcs.so

load = res_pjsip_logger.so

load = res_pjsip_messaging.so

load = res_pjsip_mwi_body_generator.so

load = res_pjsip_mwi.so

load = res_pjsip_nat.so

load = res_pjsip_notify.so

load = res_pjsip_one_touch_record_info.so

load = res_pjsip_outbound_authenticator_digest.so

load = res_pjsip_outbound_publish.so

load = res_pjsip_outbound_registration.so

load = res_pjsip_path.so

load = res_pjsip_pidf_body_generator.so

load = res_pjsip_pidf_digium_body_supplement.so

load = res_pjsip_pidf_eyebeam_body_supplement.so

load = res_pjsip_publish_asterisk.so

load = res_pjsip_pubsub.so

load = res_pjsip_refer.so

load = res_pjsip_registrar_expire.so

load = res_pjsip_registrar.so

load = res_pjsip_rfc3326.so

load = res_pjsip_sdp_rtp.so

load = res_pjsip_send_to_voicemail.so

load = res_pjsip_session.so

load = res_pjsip.so

load = res_pjsip_t38.so

load = res_pjsip_transport_websocket.so

load = res_pjsip_xpidf_body_generator.so

load = res_rtp_asterisk.so

load = res_sorcery_astdb.so

load = res_sorcery_config.so

load = res_sorcery_memory.so

load = res_sorcery_realtime.so

load = res_timing_timerfd.so

0 Likes

#8

You need to load dependencies first. You seem to be loading them last.

0 Likes

#9

have you try to solve dependencies with the contrib/scripts/install_prereq install script ?

0 Likes

#10

res_pjsip.so is failing to load because of an undefined symbol. Something didn’t get built right or you have a conflicting pjproject installed. A lot of modules are failing to load because this is a common dependency.

0 Likes

#11

the bundled pjproject is installed. how do i identify that it may be conflicting?

0 Likes

#12

i just tried with basic installation and basic-pbx configuration. still the same issue. the bundled pjproject version is 2.7.2

./configure --libdir=/usr/lib64 --with-jansson-bundled

make menuselect.makeopts

make

make install

make config

make basic-pbx

make clean dist-clean

0 Likes

#13

after much struggle i have found the required package missing is ‘openssl-devel’. for asterisk 15 it wasnt required. but for asterisk 16 it is.

i didnt want to install all the different packages installed in the contrib/install_prereq. here is a minimal required prereq if anybody needs it -----

yum -y install epel-release kernel-devel make gcc gcc-c++ pkgconfig

#the default internal database is sqlite3

yum -y install sqlite-devel

;Asterisk requires libjansson >= 2.11 and no system copy was found.
;yum -y install jansson-devel

#to support --with-pjproject-bundled in asterisk we need additionally

yum -y install wget bzip2 patch libuuid-devel python-devel

#for default menuselect

yum -y install ncurses-devel libxml2-devel

#for odbc connection

yum -y install unixODBC-devel libtool-ltdl-devel

#for odbc postgresql

yum -y install postgresql-odbc

#utilities. note postgresql is for the client it is not the server.

yum -y install vim unzip sendmail postgresql-devel

#for ./configure ‘libedit-devel’

yum -y install libedit-devel

#shows an error in configure?

yum -y install file

#without it, chan_pjsip fails to load because of undefined symbol ast_sip_cli_traverse_objects

yum -y install openssl-devel

0 Likes

#14

Hi @tareqmy,

I am getting the same error even after installing the openssl-devel package

[Jan 2 01:57:26] ERROR[1055]: loader.c:2249 load_modules: Error loading module ‘chan_pjsip.so’: /usr/lib64/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects

so may be this was not the only missing package for the above issue

0 Likes

#15

did you try the minimal packages i mentioned?

0 Likes

#16

Thanks…Yes, I did and recompiled again then error message gone
But now when I am starting the asterisk service the error is coming
PID file /var/run/asterisk/asterisk.pid not readable (yet?) after start

0 Likes

#17

then it must be a different issue. search with the new information for a related post.

0 Likes

#18

I have the same pjsip error.
But I already install all packets from install_prereq.
Recompilling also didn;t fix it

0 Likes

#19

Interesting, last Friday I installed the latest Asterisk 16.3 on a fresh CentOS 7 box without any problems. I started from a minimal installation, added the EPEL repositories and called install_prereq, where almost everything was installed except for some packages related to calendars, which didn’t matter in my case.

0 Likes

#20

made an issue

0 Likes