Pjproject 2.5.5 + Asterisk-certified-13.8-cert1 : Many Error Loading Module…undefined Symbol

Home » Asterisk Users » Pjproject 2.5.5 + Asterisk-certified-13.8-cert1 : Many Error Loading Module…undefined Symbol
Asterisk Users 8 Comments

Hello

using pjproject 2.5.5
using asterisk-certified-13.8-cert1

Compiled pjproject 2.5.5 with :
./configure CFLAGS=”-DNDEBUG -DPJ_HAS_IPV6=1″ –prefix=/usr
–libdir=/usr/lib64 –enable-shared –disable-video –disable-sound
–disable-opencore-amr

Compiled Asterisk 13 with
./configure –libdir=/usr/lib64

All pjproject modules are selectable in menuselect, so here no problem.

Modules are present in /usr/lib64/asterisk/module (see below).

But when I start asterisk, I get a lot of errors concerning res_pjsip
(see below) on the asterisk CLI.

Anyone have some input on this ?

Thanks.

Kind regards.

[root@sip admin]# ls /usr/lib64/asterisk/modules | grep pjsip chan_pjsip.so func_pjsip_aor.so func_pjsip_contact.so func_pjsip_endpoint.so res_pjsip_acl.so res_pjsip_authenticator_digest.so res_pjsip_caller_id.so res_pjsip_config_wizard.so res_pjsip_dialog_info_body_generator.so res_pjsip_diversion.so res_pjsip_dlg_options.so res_pjsip_dtmf_info.so res_pjsip_endpoint_identifier_anonymous.so res_pjsip_endpoint_identifier_ip.so res_pjsip_endpoint_identifier_user.so res_pjsip_exten_state.so res_pjsip_header_funcs.so res_pjsip_logger.so res_pjsip_messaging.so res_pjsip_multihomed.so res_pjsip_mwi_body_generator.so res_pjsip_mwi.so res_pjsip_nat.so res_pjsip_notify.so res_pjsip_one_touch_record_info.so res_pjsip_outbound_authenticator_digest.so res_pjsip_outbound_publish.so res_pjsip_outbound_registration.so res_pjsip_path.so res_pjsip_pidf_body_generator.so res_pjsip_pidf_digium_body_supplement.so res_pjsip_pidf_eyebeam_body_supplement.so res_pjsip_publish_asterisk.so res_pjsip_pubsub.so res_pjsip_refer.so res_pjsip_registrar_expire.so res_pjsip_registrar.so res_pjsip_rfc3326.so res_pjsip_sdp_rtp.so res_pjsip_send_to_voicemail.so res_pjsip_session.so res_pjsip_sips_contact.so res_pjsip.so res_pjsip_t38.so res_pjsip_transport_management.so res_pjsip_transport_websocket.so res_pjsip_xpidf_body_generator.so

Asterisk CLI :

[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_registrar.so’:
/usr/lib64/asterisk/modules/res_pjsip_registrar.so: undefined symbol:
ast_sip_location_retrieve_aor_contacts_nolock
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_registrar.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_path.so’:
/usr/lib64/asterisk/modules/res_pjsip_path.so: undefined symbol:
ast_sip_location_retrieve_aor
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_path.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_authenticator_digest.so’:
/usr/lib64/asterisk/modules/res_pjsip_authenticator_digest.so: undefined symbol: ast_sip_retrieve_auths
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_authenticator_digest.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_dialog_info_body_generator.so’:
/usr/lib64/asterisk/modules/res_pjsip_dialog_info_body_generator.so:
undefined symbol: ast_sip_pubsub_unregister_body_generator
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_dialog_info_body_generator.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_sdp_rtp.so’:
/usr/lib64/asterisk/modules/res_pjsip_sdp_rtp.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_sdp_rtp.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_publish_asterisk.so’:
/usr/lib64/asterisk/modules/res_pjsip_publish_asterisk.so: undefined symbol: ast_sip_register_publish_handler
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_publish_asterisk.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_send_to_voicemail.so’:
/usr/lib64/asterisk/modules/res_pjsip_send_to_voicemail.so: undefined symbol: ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_send_to_voicemail.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_diversion.so’:
/usr/lib64/asterisk/modules/res_pjsip_diversion.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_diversion.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_dlg_options.so’:
/usr/lib64/asterisk/modules/res_pjsip_dlg_options.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_dlg_options.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_outbound_authenticator_digest.so’:
/usr/lib64/asterisk/modules/res_pjsip_outbound_authenticator_digest.so:
undefined symbol: ast_sip_retrieve_auths
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_outbound_authenticator_digest.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_t38.so’:
/usr/lib64/asterisk/modules/res_pjsip_t38.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_t38.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_nat.so’:
/usr/lib64/asterisk/modules/res_pjsip_nat.so: undefined symbol:
ast_sip_unregister_service
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_nat.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_outbound_registration.so’:
/usr/lib64/asterisk/modules/res_pjsip_outbound_registration.so:
undefined symbol: ast_sip_auth_vector_destroy
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_outbound_registration.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_transport_management.so’:
/usr/lib64/asterisk/modules/res_pjsip_transport_management.so: undefined symbol: ast_sip_unregister_service
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_transport_management.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_one_touch_record_info.so’:
/usr/lib64/asterisk/modules/res_pjsip_one_touch_record_info.so:
undefined symbol: ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_one_touch_record_info.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_multihomed.so’:
/usr/lib64/asterisk/modules/res_pjsip_multihomed.so: undefined symbol:
ast_sip_unregister_service
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_multihomed.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_caller_id.so’:
/usr/lib64/asterisk/modules/res_pjsip_caller_id.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_caller_id.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_registrar_expire.so’:
/usr/lib64/asterisk/modules/res_pjsip_registrar_expire.so: undefined symbol: ast_sip_location_delete_contact
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_registrar_expire.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_endpoint_identifier_user.so’:
/usr/lib64/asterisk/modules/res_pjsip_endpoint_identifier_user.so:
undefined symbol: ast_sip_get_transport_states
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_endpoint_identifier_user.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_acl.so’:
/usr/lib64/asterisk/modules/res_pjsip_acl.so: undefined symbol:
ast_sip_unregister_service
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_acl.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_mwi.so’:
/usr/lib64/asterisk/modules/res_pjsip_mwi.so: undefined symbol:
ast_sip_send_request
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_mwi.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘func_pjsip_endpoint.so’:
/usr/lib64/asterisk/modules/func_pjsip_endpoint.so: undefined symbol:
ast_sip_get_sorcery
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘func_pjsip_endpoint.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_dtmf_info.so’:
/usr/lib64/asterisk/modules/res_pjsip_dtmf_info.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_dtmf_info.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_mwi_body_generator.so’:
/usr/lib64/asterisk/modules/res_pjsip_mwi_body_generator.so: undefined symbol: ast_sip_pubsub_unregister_body_generator
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_mwi_body_generator.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_pidf_eyebeam_body_supplement.so’:
/usr/lib64/asterisk/modules/res_pjsip_pidf_eyebeam_body_supplement.so:
undefined symbol: ast_sip_pubsub_register_body_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_pidf_eyebeam_body_supplement.so’ could not be loaded.
[Aug 14 12:02:32] WARNING[20712]: loader.c:599 load_dynamic_module:
Error loading module ‘res_pjsip_rfc3326.so’:
/usr/lib64/asterisk/modules/res_pjsip_rfc3326.so: undefined symbol:
ast_sip_session_unregister_supplement
[Aug 14 12:02:32] WARNING[20712]: loader.c:1086 load_resource: Module
‘res_pjsip_rfc3326.so’ could not be loaded.

and so on and so on…

8 thoughts on - Pjproject 2.5.5 + Asterisk-certified-13.8-cert1 : Many Error Loading Module…undefined Symbol

  • IIRC there were API changes in pjproject 2.5 that aren’t accounted for in asterisk 13.8. Try pjproject 2.4.5 first and let’s see if that works

  • Hello

    how can I disable all modules related to pjsip in modules.conf ??

    I have now :

    [modules]
    autoload=yes preload => res_config_mysql.so noload => pbx_gtkconsole.so noload => res_pjsip.so noload => res_pjsip_pubsub.so noload => res_pjsip_session.so noload => chan_pjsip.so noload => res_pjsip_exten_state.so noload => res_pjsip_log_forwarder.so load => res_musiconhold.so noload => chan_alsa.so noload => chan_oss.so noload => chan_console.so

    This does not make the CLI erros go away. I still have the idea that pjsip is loaded.

    Kind regards.

  • I’m not sure what your objective is. If you want to completely disable pjsip, run ./configure –without-pjproject.

  • When I compile “–without-pjproject” I loose all webrtc functionality. I
    get errors about the lack of “ice-frag and ice-pwd in the SDP-body”.

    So I guess I DO need pjproject. But I do not want to use pjsip (I prefer sip).

    Do you have any other input or idea ?

    Kind regards.

    J.

  • Yes.

    I’ve never had a problem compiling or installing Asterisk; I simply download the latest version, follow the instructions, and 10 minutes later I’m compiled and up and running. No messing about with weird seperate downloads of unsupported versions of pjsip – I just use the bundled pjsip install and off I go.

    But from your posts, it seems you want to do modern web stuff like WebRTC and so on, on old version of CentOS, old versions of asterisk, old version of the SIP channel driver.

    What particular reason is there to even bother with the certified version – the instructions say the regular most recent LTS download should be first choice.

    And why do you prefer SIP? pjsip was introduced in Asterisk 12 nearly
    3 years ago, and SIP is pretty much deprecated now.

    As a newbie, I looked at SIP and it all seemed a bit bonkers –
    “type=friend, insecure=very” – what’s THAT all about?!

    In pjsip, I just setup a pjsip_wizard and template my endpoints in pjsip.conf, and I’m done in a few lines. https://github.com/lardconcepts/asterisk-digitalocean-voipfone-config/blob/master/Asterisk-13-on-Ubuntu.md

    This is me, creating a brand new Asterisk install on a low end $5 VPS
    which handles more concurrent calls than I need it to (at least 20 so far!);
    https://www.youtube.com/watch?v=h12NkJQwpYo (I just found out that the Youtube annotations don’t work on mobile, so watch on desktop for it to make sense!).

    I’m probably the newbiest of noobs here, but just using the latest current stable version of everything available and following the install page on the Asterisk Wiki I can fire up a VPS and be receiving calls in 20 minutes, from scratch. And I’m genuinely interested in why people struggle on for days with old versions of things. I’m not asking all this to create argument, but I am genuinely interested. Perhaps I am missing a major point here?

  • Ok, I get it now. Use pjproject-2.4.5 and in menuselect, disable all the res_pjsip modules.

  • Because in some environments stability is far more important than
    ‘latest’ and ‘newest’.

    Kind regards.

    J.

  • I can confirm that compiling pjproject 2.4.5 (but ALSO pjproject 2.5.5)
    with asterisk-certified-13.8-cert1 AND “disable all the res_pjsip modules” works fine for me.

    Kind regards

    J.