Can't load pjsip

Hi to all!

I’m new to asterisk. I’ve installed asterisk on a Ubuntu server 16.04 (with LUbuntu desktop) pc, following the step-by-step guide “Installing Asterisk From Source”.

I had no errors during all installation steps but now, when asterisk starts, I see many errors related to pjsip modules load. I can’t understand why.

Below is the log generated.
I’ve checked with netstat, and port 5060 is not open.

[Mar 27 16:05:12] Asterisk 17.3.0 built by root @ Cadmos-285-lnx10 on a x86_64 running Linux on 2020-03-27 10:08:30 UTC
[Mar 27 16:05:12] NOTICE[13662] loader.c: 321 modules will be loaded.
[Mar 27 16:05:12] NOTICE[13662] cdr.c: CDR simple logging enabled.
[Mar 27 16:05:12] NOTICE[13662] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Mar 27 16:05:12] WARNING[13662] res_phoneprov.c: Unable to find a valid server address or name.
[Mar 27 16:05:12] WARNING[13662] chan_dahdi.c: Ignoring any changes to ‘userbase’ (on reload) at line 23.
[Mar 27 16:05:12] WARNING[13662] chan_dahdi.c: Ignoring any changes to ‘vmsecret’ (on reload) at line 31.
[Mar 27 16:05:12] WARNING[13662] chan_dahdi.c: Ignoring any changes to ‘hassip’ (on reload) at line 35.
[Mar 27 16:05:12] WARNING[13662] chan_dahdi.c: Ignoring any changes to ‘hasiax’ (on reload) at line 39.
[Mar 27 16:05:12] WARNING[13662] chan_dahdi.c: Ignoring any changes to ‘hasmanager’ (on reload) at line 47.
[Mar 27 16:05:12] NOTICE[13662] chan_skinny.c: Configuring skinny from skinny.conf
[Mar 27 16:05:12] ERROR[13662] ari/config.c: No configured users for ARI
[Mar 27 16:05:12] NOTICE[13662] confbridge/conf_config_parser.c: Adding default_menu menu to app_confbridge
[Mar 27 16:05:12] NOTICE[13662] cel_tds.c: cel_tds has no global category, nothing to configure.
[Mar 27 16:05:12] WARNING[13662] cel_tds.c: cel_tds module had config problems; declining load
[Mar 27 16:05:12] NOTICE[13662] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Mar 27 16:05:12] ERROR[13662] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory
[Mar 27 16:05:12] WARNING[13662] loader.c: Some non-required modules failed to load.
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_mwi_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_t38.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_pubsub.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_logger.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_refer.so’, missing dependencies: res_pjsip, res_pjsip_session, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_prometheus.so’: /usr/lib/asterisk/modules/res_prometheus.so: undefined symbol: ast_sip_get_sorcery
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_xpidf_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_mwi.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_phoneprov_provider.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_outbound_registration.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_dtmf_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_send_to_voicemail.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_transport_websocket.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_endpoint_identifier_user.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_sips_contact.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_session.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_empty_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_header_funcs.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_exten_state.so’, missing dependencies: res_pjsip, res_pjsip_pubsub, res_pjsip_outbound_publish
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_endpoint_identifier_anonymous.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_outbound_publish.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_pidf_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_acl.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_path.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_registrar.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘func_pjsip_aor.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_pidf_eyebeam_body_supplement.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘func_pjsip_endpoint.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_history.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_publish_asterisk.so’, missing dependencies: res_pjsip, res_pjsip_outbound_publish, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_outbound_authenticator_digest.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_sdp_rtp.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_endpoint_identifier_ip.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_config_wizard.so’: /usr/lib/asterisk/modules/res_pjsip_config_wizard.so: undefined symbol: ast_sip_get_sorcery
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip.so’: /usr/lib/asterisk/modules/res_pjsip.so: undefined symbol: pj_ssl_cipher_name
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_rfc3326.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_diversion.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘chan_pjsip.so’: /usr/lib/asterisk/modules/chan_pjsip.so: undefined symbol: ast_sip_cli_traverse_objects
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_dialog_info_body_generator.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_authenticator_digest.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_caller_id.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘func_pjsip_contact.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_dlg_options.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_one_touch_record_info.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_pidf_digium_body_supplement.so’, missing dependencies: res_pjsip, res_pjsip_pubsub
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_nat.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_notify.so’, missing dependency: res_pjsip
[Mar 27 16:05:12] ERROR[13662] loader.c: Error loading module ‘res_pjsip_messaging.so’, missing dependencies: res_pjsip, res_pjsip_session
[Mar 27 16:05:12] ERROR[13662] loader.c: cel_tds declined to load.
[Mar 27 16:05:12] ERROR[13662] loader.c: cdr_sqlite3_custom declined to load.
[Mar 27 16:05:12] ERROR[13662] loader.c: cdr_tds declined to load.
[Mar 27 16:05:12] ERROR[13662] loader.c: cel_sqlite3_custom declined to load.
[Mar 27 16:05:12] ERROR[13662] loader.c: Failed to resolve dependencies for func_aes
[Mar 27 16:05:12] ERROR[13662] loader.c: func_aes declined to load.

Could someone help me to understand what happen?
Thank you!

Did you first, run ./contrib/scripts/install_prereq script before compile Asterisk

Yes, I’ve followed all the steps.

After launching ./configure, i ran both ./install_prereq install and ./install_prereq install-unpackaged from contrib/scripts directory.

Thanks!

those scripts need to be run before launch ./configure

Ok, it is not so clear reading the Checking Asterisk Requirements page…
However, I will try again to install Asterisk from scratch.

Thank you.

I have re-installed Asterisk on a clean system, but I have the same result.

I have ran exactly all the steps in the correct order:

  • Building and Installing DAHDI
  • Building and Installing LibPRI
  • Checking Asterisk Requirements
    cd contrib/scripts
    ./install_prereq install
    ./install_prereq install-unpackaged

(this command ended with a “pjsip not installed” message, but I didn’t worry about it, since pjsip is bundled in Asterisk)

    cd /usr/local/src/asterisk-17.3.0
    ./configure --with-jansson-bundled
  • Using Menuselect to Select Asterisk Options
    (I left all the default settings)
  • Building and Installing Asterisk
  • Installing Sample Files
  • Installing Initialization Scripts

All steps ended without errors, then I rebooted the system.

Now, the

lsmod | grep dahdi

command gives me no results.

service dahdi start

answers with
Failed to start dahdi.service: Unit dahdi.service not found.

Asterisk is running as service, but port 5060 is not open (checked with netstat -aupn) and the /var/log/asterisk/messages file is exactly the same as I wrote in my first post.

I really don’t know what else to do…

This error have nothing to do with your post title, also if you wont use physical cards or meetme you dont need dahdi

netstat -apn | grep asterisk

netstat -apn | grep asterisk

tcp        0      0 0.0.0.0:2000            0.0.0.0:*               LISTEN      1909/asterisk   
udp        0      0 0.0.0.0:4520            0.0.0.0:*                           1909/asterisk   
udp        0      0 0.0.0.0:4569            0.0.0.0:*                           1909/asterisk   
udp        0      0 0.0.0.0:5000            0.0.0.0:*                           1909/asterisk   
udp        0      0 0.0.0.0:2727            0.0.0.0:*                           1909/asterisk   
unix  2      [ ACC ]     STREAM     LISTENING     23677    1909/asterisk       /var/run/asterisk/asterisk.ctl
unix  2      [ ]         DGRAM                    23810    1909/asterisk       
unix  3      [ ]         STREAM     CONNECTED     22262    1909/asterisk       
unix  3      [ ]         STREAM     CONNECTED     22261    1909/asterisk       
unix  3      [ ]         STREAM     CONNECTED     22260    1909/asterisk       
unix  3      [ ]         STREAM     CONNECTED     22259    1909/asterisk       

Thanks for your replies.

module show like sip

root@Cadmos-285-lnx10:~# asterisk -r
Asterisk 17.3.0, Copyright (C) 1999 - 2018, 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 17.3.0 currently running on Cadmos-285-lnx10 (pid = 1768)
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> module show like sip
Module                         Description                              Use Count  Status      Support Level
app_adsiprog.so                Asterisk ADSI Programming Application    0          Running        deprecated
1 modules loaded
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Cadmos-285-lnx10*CLI> 
Disconnected from Asterisk server
Asterisk cleanly ending (0).
Executing last minute cleanups
root@Cadmos-285-lnx10:~# 

I realized that autotools (autoconf, automake and libtool) were missing on my system.

I hadn’t noticed before because at the end of the execution of (for example) “install_prereq install”, I always had a message “installation completed successfully” (or something like this), so I didn’t go to see if among all the (many) previous messages on the terminal there were any error messages…

Now I have installed the autotools, but I have another problem:
when “install_prereq install” is executed, the entire lubuntu desktop is removed during script execution.
So my question is:
is it possible to install asterisk on a system with LUbuntu desktop (as I wrote in my first post, my system is Ubuntu server 16.04 with LUbuntu desktop), or asterisk can be installed only on hosts without a graphical interface?

Thanks for replies.