Module question

Hello. I use Asterisk 13.11.2
I have a question about switching off unused modules. Now I have autoload=yes, but I want to optimize my Asterisk.
So how can I check if any module is required by my voip users?
I know about module show, but it shows only actual realtime using.
I just want to know which of modules I can switch off without any pain.
Thanks.

There is no out right mechanism which shows what modules end up being used in your deployment. You have to figure it out yourself.

1 Like

If you would like to optimize Asterisk by switching off unused modules it would be a good idea to compile from source and check out what you are not willing to use.
Other modules you could turn off by adding it to modules.conf with noload e.x.

noload => chan_alsa.so
noload => chan_oss.so
noload => chan_console.so
noload => res_calendar.so
noload => pbx_dundi.so
noload => res_stun_monitor.so
noload => res_hep.so
noload => res_hep_rtcp.so
noload => res_fax.so
noload => app_festival.so
noload => cel_radius.so
noload => cdr_radius.so

Buy unfortunately it is still manual job.

Oh, got it. Thanks
Well I will try to parse module show output and collect it to make some statistic.
But It have monstrous space separators between columns.
Is it possible to get module show without spaces, or without separators at all (raw view if you know what i mean)?

(or I must create a new question for it?)

CLI commands are meant for human consumption, so they show stuff in a way we can see. Nothing immediately springs to mind.

As well - usage count of a module can increase and decrease throughout the use of the system.

1 Like

I’m usually using asterisk -rx “module show” and parsing it using awk/grep

1 Like