Bryce Nesbitt (mailing list account)
2004-Aug-21 10:37 UTC
[Asterisk-Users] How to minimally configure modules.conf loading?
I'm trying to somewhat reduce the security risk of Asterisk, by loading less modules. In my installation I use SIP and IAX2 for incoming calls, and that's it. No voicemail, no call parking, it just plays back voice clips. I can remove /etc/asterisk/modules.conf modules one by one: ------------------------------------ [modules] autoload=yes noload => pbx_gtkconsole.so noload => pbx_kdeconsole.so noload => app_intercom.so ;obsolete noload => chan_alsa.so noload => chan_oss.so noload => chan_skinny.so noload => chan_phone.so noload => app_voicemail.so noload => chan_zap.so noload => app_meetme.so ------------------------------------ But I've not made it very far building up just what I need: ------------------------------------ [modules] autoload=yes load => res_crypto.so load => res_features.so load => chan_iax2.so load => chan_sip.so load => codec_gsm.so load => codec_ulaw.so ------------------------------------ I get hard to track down symbol errors like: [chan_iax2.so]Aug 21 10:37:02 WARNING[16384]: loader.c:242 ast_load_resource: /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_check_signature Aug 21 10:37:02 WARNING[16384]: loader.c:374 load_modules: Loading module chan_iax2.so failed! [chan_iax2.so]Aug 21 10:38:12 WARNING[16384]: loader.c:242 ast_load_resource: /usr/lib/asterisk/modules/chan_iax2.so: undefined symbol: ast_moh_stop Does anyone know a better way to do this? Grep'ing the soruce by trial and error is not working. Modules have to be in just the right order. -Bryce