Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#780392: asterisk-modules: Asterisk fai to load some modules

496 views
Skip to first unread message

Samuel Smith

unread,
Jan 10, 2016, 2:10:03 PM1/10/16
to
Same issue with me as well after an upgrade from Wheezy to Jessie:


[Jan 10 06:01:31] Asterisk 11.13.1~dfsg-2+b1 built by buildd @ brahms on
a x86_64 running Linux on 2015-01-05 21:34:10 UTC
[Jan 10 06:01:31] NOTICE[23936] cdr.c: CDR simple logging enabled.
[Jan 10 06:01:32] NOTICE[23936] loader.c: 219 modules will be loaded.
[Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
'res_agi.so': /usr/lib/asterisk/modules/res_agi.so: undefined symbol:
ast_speech_change
[Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
'res_calendar_caldav.so':
/usr/lib/asterisk/modules/res_calendar_caldav.so: undefined symbol:
ast_calendar_event_container_alloc
[Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
'chan_motif.so': /usr/lib/asterisk/modules/chan_motif.so: undefined
symbol: ast_xmpp_client_send_message
[Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: undefined
symbol: ast_smdi_interface_unref
[Jan 10 06:01:33] WARNING[23936] loader.c: Error loading module
'app_speech_utils.so': /usr/lib/asterisk/modules/app_speech_utils.so:
undefined symbol: ast_speech_dtmf
[Jan 10 06:01:33] WARNING[23936] loader.c: Error loading module
'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined
symbol: ast_agi_unregister
[Jan 10 06:01:33] WARNING[23936] loader.c: Error loading module
'res_fax_spandsp.so': /usr/lib/asterisk/modules/res_fax_spandsp.so:
undefined symbol: ast_fax_state_to_str
[Jan 10 06:01:34] WARNING[23936] loader.c: Error loading module
'cel_odbc.so': /usr/lib/asterisk/modules/cel_odbc.so: undefined symbol:
SQLColumns
[Jan 10 06:01:34] WARNING[23936] loader.c: Error loading module
'res_calendar_exchange.so':
/usr/lib/asterisk/modules/res_calendar_exchange.so: undefined symbol:
ast_calendar_register
[Jan 10 06:01:34] WARNING[23936] loader.c: Error loading module
'chan_sip.so': /usr/lib/asterisk/modules/chan_sip.so: undefined symbol:
ast_websocket_write
[Jan 10 06:01:34] WARNING[23936] loader.c: Error loading module
'res_calendar_ews.so': /usr/lib/asterisk/modules/res_calendar_ews.so:
undefined symbol: ast_calendar_register
[Jan 10 06:01:35] WARNING[23936] loader.c: Error loading module
'chan_agent.so': /usr/lib/asterisk/modules/chan_agent.so: undefined
symbol: ast_monitor_start
[Jan 10 06:01:35] WARNING[23936] loader.c: Error loading module
'app_queue.so': /usr/lib/asterisk/modules/app_queue.so: undefined
symbol: ast_monitor_start
[Jan 10 06:01:35] WARNING[23936] loader.c: Error loading module
'pbx_ael.so': /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol:
ael2_parse
[Jan 10 06:01:36] WARNING[23936] loader.c: Error loading module
'cdr_adaptive_odbc.so': /usr/lib/asterisk/modules/cdr_adaptive_odbc.so:
undefined symbol: SQLColumns
[Jan 10 06:01:37] WARNING[23936] loader.c: Error loading module
'app_voicemail.so': /usr/lib/asterisk/modules/app_voicemail.so:
undefined symbol: ast_smdi_mwi_set
[Jan 10 06:01:37] NOTICE[23936] res_odbc.c: res_odbc loaded.
[Jan 10 06:01:38] NOTICE[23936] pbx_lua.c: Lua PBX Switch loaded.
[Jan 10 06:01:38] WARNING[23936] loader.c: Error loading module
'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: undefined
symbol: ast_smdi_interface_unref
[Jan 10 06:01:38] WARNING[23936] loader.c: Module 'chan_dahdi.so' could
not be loaded.
[Jan 10 06:01:39] WARNING[23936] loader.c: Error loading module
'app_voicemail.so': /usr/lib/asterisk/modules/app_voicemail.so:
undefined symbol: ast_smdi_mwi_set
[Jan 10 06:01:39] WARNING[23936] loader.c: Module 'app_voicemail.so'
could not be loaded.
[Jan 10 06:01:39] NOTICE[23936] config.c: Registered Config Engine curl
[Jan 10 06:01:39] NOTICE[23936] config.c: Registered Config Engine sqlite
[Jan 10 06:01:40] NOTICE[23936] config.c: Registered Config Engine sqlite3
[Jan 10 06:01:40] ERROR[23936] chan_motif.c: Connection
'local-jabber-account' configured on endpoint 'jingle-endpoint' could
not be found
[Jan 10 06:01:40] ERROR[23936] config_options.c: Error parsing
connection=local-jabber-account at line 81 of
[Jan 10 06:01:40] ERROR[23936] config_options.c: In motif.conf:
Processing options for jingle-endpoint failed
[Jan 10 06:01:40] ERROR[23936] chan_motif.c: Unable to read config file
motif.conf. Not loading module.
[Jan 10 06:01:40] NOTICE[23936] cel_custom.c: No mappings found in
cel_custom.conf. Not logging CEL to custom CSVs.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: Starting AEL load process.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: AEL load process: parsed
config file name '/etc/asterisk/extensions.ael'.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: AEL load process: checked
config file name '/etc/asterisk/extensions.ael'.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: AEL load process: compiled
config file name '/etc/asterisk/extensions.ael'.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: AEL load process: merged
config file name '/etc/asterisk/extensions.ael'.
[Jan 10 06:01:41] NOTICE[23936] pbx_ael.c: AEL load process: verified
config file name '/etc/asterisk/extensions.ael'.
[Jan 10 06:01:41] WARNING[23936] translate.c: empty buf size, you need
to supply one

Samuel Smith

unread,
Jan 10, 2016, 11:10:04 PM1/10/16
to
I tried building 1.13 in sid and installing it on stable. Still similar
issues.

I ended up reinstalling the default asterisk packages on stable (after a
purge of everything for about the 20th time), and found that most of the
symbol errors above meant nothing. The apps that were mentioned in the
errors still worked for what ever reason. I did have an issue with
voicemail though. I tracked that down to a noload option I had for the
res_smdi module in modules.conf. Once I loaded that, voice mail worked.
It seems in these later versions of asterisk, the modules.conf file is
very picky. I have even read that you might have to change the order of
how some modules even load.


--Sam

José Miguel Gonçalves

unread,
Jan 11, 2016, 8:50:03 AM1/11/16
to
Hi,

The default '/etc/asterisk/modules.conf' packaged in "asterisk-config" has these
problems, and should be fixed for something that does not give 'undefined symbols'
out of the box.

After some experiments, what worked well for me in a Debian 8 installation with
FreePBX was this:

[modules]
autoload=yes
preload = pbx_config.so
preload = chan_local.so
preload = res_speech.so
preload = res_agi.so
preload = res_calendar.so
preload = res_crypto.so
preload = res_smdi.so
preload = res_http_websocket.so
preload = res_monitor.so
noload = chan_skinny.so
noload = chan_unistim.so
noload = chan_motif.so
noload = pbx_dundi.so
noload = pbx_lua.so
noload = pbx_ael.so
noload = cdr_pgsql.so
noload = cel_pgsql.so
noload = cel_tds.so
noload = res_corosync.so
noload = res_config_sqlite.so
noload = res_config_pgsql.so
noload = res_config_odbc.so
noload = res_odbc.so
noload = cel_odbc.so
noload = cdr_odbc.so
noload = cdr_adaptive_odbc.so
noload = func_odbc.so
noload = res_fax_spandsp.so
noload = codec_dahdi.so
noload = chan_woomera.so
noload = pbx_gtkconsole.so
noload = pbx_kdeconsole.so
noload = app_intercom.so
noload = chan_modem.so
noload = chan_modem_bestdata.so
noload = chan_modem_i4l.so
noload = app_trunkisavail.so
noload = chan_alsa.so
noload = chan_oss.so
noload = app_directory_odbcstorage.so
noload = app_voicemail_odbcstorage.so
noload = chan_modem_aopen.so
noload = chan_woomera.so
noload = cdr_radius.so
noload = cel_radius.so
load = format_wav.so
load = format_pcm.so
load = res_musiconhold.so

Best regards,
José Gonçalves

Tzafrir Cohen

unread,
Jan 11, 2016, 9:00:06 AM1/11/16
to
On Sun, Jan 10, 2016 at 01:06:01PM -0600, Samuel Smith wrote:
> Same issue with me as well after an upgrade from Wheezy to Jessie:
>
>
> [Jan 10 06:01:31] Asterisk 11.13.1~dfsg-2+b1 built by buildd @ brahms on a
> x86_64 running Linux on 2015-01-05 21:34:10 UTC
> [Jan 10 06:01:31] NOTICE[23936] cdr.c: CDR simple logging enabled.
> [Jan 10 06:01:32] NOTICE[23936] loader.c: 219 modules will be loaded.
> [Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
> 'res_agi.so': /usr/lib/asterisk/modules/res_agi.so: undefined symbol:
> ast_speech_change
> [Jan 10 06:01:32] WARNING[23936] loader.c: Error loading module
> 'res_calendar_caldav.so': /usr/lib/asterisk/modules/res_calendar_caldav.so:
> undefined symbol: ast_calendar_event_container_alloc

Please check that the module has indeed fails to load.

Asterisk's module loader has no information about module dependency, and
thus just tries loading modules in a loop, and keeps retrying. The
problem is that it emits those error messages each time it fails and not
just when it gives up.

And yes, this is a bug on its own.

--
Tzafrir Cohen | tza...@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tza...@cohens.org.il | | best
tza...@debian.org | | friend
0 new messages