📜 ⬆️ ⬇️

Disable extra Asterisk modules

I continue the cycle of short notes on basic, but very necessary tricks for the popular PBX.

Asterisk has a modular structure, and contains in its composition dozens of modules responsible for certain functions, formats, protocols, and so on.
In each case, two thirds of these modules are not needed, and to increase the stability and performance of the system, they should be turned off.

When building from source, modules are selected with the command menuselect-newt:

image
')
But in other cases, the best option is to write into the modules.conf configuration file a list of those modules that are not needed, via the noload directive.

The network does not have a really fresh and detailed list of all modules, but as an option I would suggest these two sources:
One
Two

Below I offer my version of a set of such directives, which should be added to the modules.conf file and configured at your discretion.

; Resources -- ;noload => res_adsi.so ; ADSI Resource ;noload => res_config_odbc.so ; ODBC Configuration ;noload => res_indications.so ; Indications Configuration ;noload => res_odbc.so ; ODBC Resource ;noload => res_curl.so ; cURL Resource Module ;noload => res_config_curl.so ; Realtime Curl configuration ; PBX -- ;noload => pbx_dundi.so ; Do a DUNDi lookup of a phone number. - Requires res_crypto.so noload => pbx_ael.so ; For loading extensions.ael ; Functions -- ;noload => func_enum.s ; ENUMLOOKUP and TXTCIDNAME functions - Requres ? ;noload => func_uri.so ; URI encode/decode functions - Requires ? ;noload => func_iconv.so ; Charset conversions ;noload => func_srv.so ; SRV related dialplan functions ;noload => func_curl.so ; Load external URL ; Database Call Detail Records -- ;noload => cdr_odbc.so ; ODBC CDR Backend - Requires N/A noload => cdr_custom.so ; Customizable Comma Separated Values CDR noload => cdr_pgsql.so ; PostgreSQL CDR Backend noload => cdr_syslog.so ; Customizable syslog CDR Backend noload => cdr_sqlite3_custom.so ; SQLite3 Custom CDR Module noload => cdr_csv.so ; Comma Separated Values CDR Backend ; Channels -- noload => chan_mgcp.so ; Media Gateway Control Protocol (MGCP) - Requires res_features.so noload => chan_skinny.so ; Skinny Client Control Protocol (Skinny) - Requires res_features.so noload => chan_unistim.so ; Unistim control protocol ; DON'T load the chan_modem.so, as they are obsolete in * 1.2 noload => chan_modem.so noload => chan_modem_aopen.so noload => chan_modem_bestdata.so noload => chan_modem_i4l.so ; Load either OSS or ALSA, not both ; By default, load no console driver noload => chan_alsa.so noload => chan_oss.so ; Codecs -- ;noload => codec_gsm.so ; GSM/PCM16 (signed linear) Codec Translat - Requires N/A ;noload => codec_ilbc.so ; iLBC/PCM16 (signed linear) Codec Translat - Requires N/A noload => codec_lpc10.so ; LPC10 2.4kbps (signed linear) Voice Codec Translat - Requires N/A ;noload => codec_speex.so ; Speex/PCM16 (signed linear) Codec Translat - Requires N/A ; Formats -- noload => format_au.so ; Sun Microsystems AU format (signed linear) - Requires N/A noload => format_gsm.so ; Raw GSM data - Requires N/A noload => format_h263.so ; Raw h263 data - Requires N/A noload => format_ilbc.so ; Raw iLBC data - Requires N/A noload => format_jpeg.so ; JPEG (Joint Picture Experts Group) Image - Requires N/A noload => format_mp3.so ; MP3 - Requires N/A ; Applications -- ;noload => app_directory_odbcstorage.so ;noload => app_voicemail_odbcstorage.so ;noload => app_adsiprog.so ; Asterisk ADSI Programming Application - Requires res_adsi.so ;noload => app_alarmreceiver.so ; Alarm Receiver for Asterisk - Requires N/A noload => app_chanspy.so ; Listen to the audio of an active channel - Requires N/A ;noload => app_curl.so ; ? - Requires N/A ;noload => app_festival.so ; Simple Festival Interface - Requires N/A noload => app_flash.so ; Flashes a Zap Trunk - Requires ? noload => app_getcpeid.so ; Obtains and displays ADSI CPE ID for zapata. - Requires N/A noload => app_image.so ; Sends an image on a channel. - Requires N/A noload => app_meetme.so ; MeetMe conference bridge - Requires ? noload => app_mp3.so ; Play an MP3 file or stream - Requires N/A noload => app_saycountpl.so ; Polish counting grammar - Requires ? noload => app_zapateller.so ; Block Telemarketers with Special Information Tone - Requires N/A noload => app_zapbarge.so ; Barges in on a specified zap channel - Requires ? ;noload => app_zapras.so ; Executes a RAS server using pppd on the given channel - Requires ? noload => app_zapscan.so ; Scan Zap channels to monitor calls - Requires ? 

Source: https://habr.com/ru/post/207934/


All Articles