Error in loading modules

Hi everyone,

When I start the asterisk, I get these errors:

[May 10 20:14:41] WARNING[31489]: loader.c:2487 load_modules: Module ‘app_adsiprog’ has been loaded but may be removed in a future release.
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_sorcery_realtime.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_speech.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_format_attr_opus.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_sorcery_memory.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_sorcery_memory_cache.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_ari_model.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_monitor.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_rtp_multicast.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_sorcery_astdb.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘func_periodic_hook.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_sorcery_config.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_fax.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis_snoop.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_smdi.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stun_monitor.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_crypto.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_agi.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_audiosocket.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_ael_share.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_calendar.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis_recording.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_statsd.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis_device_state.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_srtp.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjproject.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_http_websocket.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis_playback.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_ari.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_phoneprov.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stir_shaken.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip_outbound_publish.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip_session.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_stasis_answer.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_prometheus.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip_pubsub.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip_config_wizard.so’ did not register itself during load
[May 10 20:14:41] ERROR[31489]: loader.c:2508 load_modules: Module ‘res_pjsip_stir_shaken.so’ did not register itself during load

What is the problem?
autoload is yes in the modules.conf.

Do you need those modules? Do you have configuration files for them?

What actually fails to work?

@david551 I don’t have any issue for a simple call. But I was concerned about what is the probable issue to solve it.
Also, I just have sample configs in /etc/asterisk

Thanks.

What version of Asterisk do you have installed?

Last version that is 18.4.0

Ignore my comment about configuration files, as this seems to be an OS level registration, not an Asterisk one.

However, the sense of the test in this line doesn’t make sense to me. Surely the error case is when dlopen() returns NULL? mod->lib is the return from dlopen().

thanks @david551 . but what is your idea about the reason?

you need to provide the steps you made to compile and install Asterisk because you might have missed something.
just a reminder, you can always do an apt get install asterisk instead of compiling.

I’m suggesting that the code produces the error message when things work and not when they don’t. I’m hoping someone else will confirm my interpretation.

When a module is loaded a constructor causes everything to register, and this will cause “resource_being_loaded” to be set to NULL (it happens in ast_module_register). Therefore if the module successfully registers, the code block you mention will not be executed. It’s only if the module itself is loaded (dlopen is successful) but the constructor does not fire to register things that it will occur.

I am compiling on the Alpine, so I think it’s the reason according to your hints.
I am following the exact steps in the asterisk\main - aports - Alpine packages build scripts

Interesting what I am missing.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.