VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Минимальный modules.conf

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
LA_
Сообщения: 28
Зарегистрирован: 12 ноя 2012, 20:57

Минимальный modules.conf

Сообщение LA_ »

Подскажите, плз, как настроить modules.conf, чтоб работали лишь входящие и исходящие SIP звонки. Как отключить все остальные модули? (asterisk установлен на роутере, ресурсов там не много)

Можно ли осуществить все нужные звонки, а потом полагаться на Use count в выводе module show?
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

[RTR*CLI> module show

RTR*CLI> 
[0KModule                         Description                              Use Count 
res_crypto.so                  Cryptographic Digital Signatures         0         
res_monitor.so                 Call Monitoring Resource                 0         
res_speech.so                  Generic Speech Recognition API           0         
res_calendar.so                Asterisk Calendar integration            0         
res_stun_monitor.so            STUN Network Monitor                     0         
res_musiconhold.so             Music On Hold Resource                   0         
func_dialplan.so               Dialplan Context/Extension/Priority Chec 0         
app_senddtmf.so                Send DTMF digits Application             0         
app_record.so                  Trivial Record Application               0         
func_timeout.so                Channel timeout dialplan functions       0         
func_env.so                    Environment/filesystem dialplan function 0         
app_waitforsilence.so          Wait For Silence                         0         
app_userevent.so               Custom User Event Application            0         
format_h263.so                 Raw H.263 data                           0         
app_celgenuserevent.so         Generate an User-Defined CEL event       0         
func_sysinfo.so                System information related functions     0         
app_confbridge.so              Conference Bridge Application            0         
app_image.so                   Image Transmission Application           0         
app_morsecode.so               Morse code                               0         
app_controlplayback.so         Control Playback Application             0         
format_sln.so                  Raw Signed Linear Audio support (SLN)    0         
func_cut.so                    Cut out information from a string        0         
func_volume.so                 Technology independent volume control    0         
app_sms.so                     SMS/PSTN handler                         0         
res_agi.so                     Asterisk Gateway Interface (AGI)         1         
app_stack.so                   Dialplan subroutines (Gosub, Return, etc 0         
func_sprintf.so                SPRINTF dialplan function                0         
cdr_manager.so                 Asterisk Manager Interface CDR Backend   0         
bridge_softmix.so              Multi-party software based channel mixin 0         
app_playtones.so               Playtones Application                    0         
chan_local.so                  Local Proxy Channel (Note: used internal 0         
format_gsm.so                  Raw GSM data                             0         
format_siren14.so              ITU G.722.1 Annex C (Siren14, licensed f 0         
func_extstate.so               Gets an extension's state in the dialpla 0         
func_callerid.so               Party ID related dialplan functions (Cal 0         
app_originate.so               Originate call                           0         
app_softhangup.so              Hangs up the requested channel           0         
format_jpeg.so                 jpeg (joint picture experts group) image 0         
func_audiohookinherit.so       Audiohook inheritance function           0         
format_wav_gsm.so              Microsoft WAV format (Proprietary GSM)   0         
func_config.so                 Asterisk configuration file variable acc 0         
res_timing_pthread.so          pthread Timing Interface                 0         
format_ilbc.so                 Raw iLBC data                            0         
func_realtime.so               Read/Write/Store/Destroy values from a R 0         
bridge_simple.so               Simple two channel bridging module       0         
format_g719.so                 ITU G.719                                0         
chan_agent.so                  Agent Proxy Channel                      0         
func_vmcount.so                Indicator for whether a voice mailbox ha 0         
res_adsi.so                    ADSI Resource                            0         
app_getcpeid.so                Get ADSI CPE ID                          0         
format_g723.so                 G.723.1 Simple Timestamp File Format     0         
func_version.so                Get Asterisk Version/Build Info          0         
app_dictate.so                 Virtual Dictation Machine                0         
app_macro.so                   Extension Macros                         0         
app_speech_utils.so            Dialplan Speech Applications             0         
func_pitchshift.so             Audio Effects Dialplan Functions         0         
func_blacklist.so              Look up Caller*ID name/number from black 0         
chan_bridge.so                 Bridge Interaction Channel               0         
app_while.so                   While Loops and Conditional Execution    0         
app_adsiprog.so                Asterisk ADSI Programming Application    0         
func_rand.so                   Random number dialplan function          0         
func_md5.so                    MD5 digest dialplan functions            0         
app_db.so                      Database Access Functions                0         
func_module.so                 Checks if Asterisk module is loaded in m 0         
chan_multicast_rtp.so          Multicast RTP Paging Channel             0         
cel_custom.so                  Customizable Comma Separated Values CEL  0         
codec_alaw.so                  A-law Coder/Decoder                      0         
res_clioriginate.so            Call origination and redirection from th 0         
res_realtime.so                Realtime Data Lookup/Rewrite             0         
app_minivm.so                  Mini VoiceMail (A minimal Voicemail e-ma 0         
app_sendtext.so                Send Text Applications                   0         
chan_phone.so                  Linux Telephony API Support              0         
func_srv.so                    SRV related dialplan functions           0         
format_h264.so                 Raw H.264 data                           0         
app_verbose.so                 Send verbose output                      0         
bridge_multiplexed.so          Multiplexed two channel bridging module  0         
format_pcm.so                  Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0         
func_strings.so                String handling dialplan functions       0         
func_aes.so                    AES dialplan functions                   0         
codec_gsm.so                   GSM Coder/Decoder                        0         
app_channelredirect.so         Redirects a given channel to a dialplan  0         
func_global.so                 Variable dialplan functions              0         
app_ices.so                    Encode and Stream via icecast and ices   0         
cel_manager.so                 Asterisk Manager Interface CEL Backend   0         
bridge_builtin_features.so     Built in bridging features               1         
app_mp3.so                     Silly MP3 Application                    0         
format_vox.so                  Dialogic VOX (ADPCM) File Format         0         
app_saycountpl.so              Say polish counting words                0         
cdr_custom.so                  Customizable Comma Separated Values CDR  0         
app_chanspy.so                 Listen to the audio of an active channel 0         
app_dumpchan.so                Dump Info About The Calling Channel      0         
func_base64.so                 base64 encode/decode dialplan functions  0         
format_siren7.so               ITU G.722.1 (Siren7, licensed from Polyc 0         
res_phoneprov.so               HTTP Phone Provisioning                  0         
app_sayunixtime.so             Say time                                 0         
app_zapateller.so              Block Telemarketers with Special Informa 0         
func_math.so                   Mathematical dialplan function           0         
format_g726.so                 Raw G.726 (16/24/32/40kbps) data         0         
func_lock.so                   Dialplan mutexes                         0         
app_parkandannounce.so         Call Parking and Announce Application    0         
app_cdr.so                     Tell Asterisk to not maintain a CDR for  0         
res_limit.so                   Resource limits                          0         
cdr_csv.so                     Comma Separated Values CDR Backend       0         
app_disa.so                    DISA (Direct Inward System Access) Appli 0         
app_alarmreceiver.so           Alarm Receiver for Asterisk              0         
pbx_loopback.so                Loopback Switch                          0         
pbx_config.so                  Text Extension Configuration             0         
format_wav.so                  Microsoft WAV/WAV16 format (8kHz/16kHz S 0         
app_talkdetect.so              Playback with Talk Detection             0         
res_security_log.so            Security Event Logging                   0         
app_privacy.so                 Require phone number to be entered, if n 0         
codec_adpcm.so                 Adaptive Differential PCM Coder/Decoder  0         
func_dialgroup.so              Dialgroup dialplan function              0         
app_followme.so                Find-Me/Follow-Me Application            0         
app_system.so                  Generic System() application             0         
app_milliwatt.so               Digital Milliwatt (mu-law) Test Applicat 0         
func_callcompletion.so         Call Control Configuration Function      0         
func_curl.so                   Load external URL                        0         
format_sln16.so                Raw Signed Linear 16KHz Audio support (S 0         
res_curl.so                    cURL Resource Module                     0         
app_setcallerid.so             Set CallerID Presentation Application    0         
func_cdr.so                    Call Detail Record (CDR) dialplan functi 0         
app_waituntil.so               Wait until specified time                0         
app_test.so                    Interface Test Application               0         
func_uri.so                    URI encode/decode dialplan functions     0         
format_g729.so                 Raw G.729 data                           0         
app_echo.so                    Simple Echo Application                  0         
app_url.so                     Send URL Applications                    0         
codec_a_mu.so                  A-law and Mulaw direct Coder/Decoder     0         
res_mutestream.so              Mute audio stream resources              0         
func_sha1.so                   SHA-1 computation dialplan function      0         
res_clialiases.so              CLI Aliases                              0         
func_groupcount.so             Channel group dialplan functions         0         
func_channel.so                Channel information dialplan functions   0         
app_chanisavail.so             Check channel availability               0         
pbx_spool.so                   Outgoing Spool Support                   0         
cdr_syslog.so                  Customizable syslog CDR Backend          0         
res_convert.so                 File format conversion CLI command       0         
app_transfer.so                Transfers a caller to another extension  0         
app_forkcdr.so                 Fork The CDR into 2 separate entities    0         
func_devstate.so               Gets or sets a device state in the dialp 0         
app_directed_pickup.so         Directed Call Pickup Application         0         
codec_ulaw.so                  mu-Law Coder/Decoder                     0         
func_shell.so                  Collects the output generated by a comma 0         
func_iconv.so                  Charset conversions                      0         
func_enum.so                   ENUM related dialplan functions          0         
res_rtp_asterisk.so            Asterisk RTP Stack                       0         
func_logic.so                  Logical dialplan functions               0         
app_directory.so               Extension Directory                      0         
app_read.so                    Read Variable Application                0         
func_db.so                     Database (astdb) related dialplan functi 0         
chan_sip.so                    Session Initiation Protocol (SIP)        0         
codec_g722.so                  ITU G.722-64kbps G722 Transcoder         0         
pbx_realtime.so                Realtime Switch                          0         
app_playback.so                Sound File Playback Application          0         
res_smdi.so                    Simplified Message Desk Interface (SMDI) 0         
app_voicemail.so               Comedian Mail (Voicemail System)         0         
app_readexten.so               Read and evaluate extension validity     0         
app_externalivr.so             External IVR Interface Application       0         
app_authenticate.so            Authentication Application               0         
func_frame_trace.so            Frame Trace for internal ast_frame debug 0         
app_readfile.so                Stores output of file into a variable    0         
app_dial.so                    Dialing Application                      0         
res_rtp_multicast.so           Multicast RTP Engine                     0         
app_exec.so                    Executes dialplan applications           0         
codec_g726.so                  ITU G.726-32kbps G726 Transcoder         0         
app_nbscat.so                  Silly NBS Stream Application             0         
app_waitforring.so             Waits until first ring after time        0         
168 modules loaded
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Минимальный modules.conf

Сообщение Vlad1983 »

"Use Count" только в момент задействования модуля показывает счетчик сколько раз задействован, а не историю хранит
ЛС: @rostel
LA_
Сообщения: 28
Зарегистрирован: 12 ноя 2012, 20:57

Re: Минимальный modules.conf

Сообщение LA_ »

Пометил единицей те модули, что вроде мне нужны. Ничего не упустил?
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:

Код: Выделить всё

RTR*CLI>
Module                           Description                                Нужен (1 - да, 0 - нет)
res_crypto.so                  Cryptographic Digital Signatures         0         
res_monitor.so                 Call Monitoring Resource                 0         
res_speech.so                  Generic Speech Recognition API           0                   
res_calendar.so                Asterisk Calendar integration            0         
res_stun_monitor.so            STUN Network Monitor                     0         
res_musiconhold.so             Music On Hold Resource                   0         
func_dialplan.so               Dialplan Context/Extension/Priority Chec 1         
app_senddtmf.so                Send DTMF digits Application             1         
app_record.so                  Trivial Record Application               0         
func_timeout.so                Channel timeout dialplan functions       1         
func_env.so                    Environment/filesystem dialplan function 1         
app_waitforsilence.so          Wait For Silence                         0         
app_userevent.so               Custom User Event Application            0         
format_h263.so                 Raw H.263 data                           0         
app_celgenuserevent.so         Generate an User-Defined CEL event       0         
func_sysinfo.so                System information related functions     1         
app_confbridge.so              Conference Bridge Application            0         
app_image.so                   Image Transmission Application           0         
app_morsecode.so               Morse code                               0         
app_controlplayback.so         Control Playback Application             0         
format_sln.so                  Raw Signed Linear Audio support (SLN)    0         
func_cut.so                    Cut out information from a string        0         
func_volume.so                 Technology independent volume control    0         
app_sms.so                     SMS/PSTN handler                         0         
res_agi.so                     Asterisk Gateway Interface (AGI)         1         
app_stack.so                   Dialplan subroutines (Gosub, Return, etc 0         
func_sprintf.so                SPRINTF dialplan function                0         
cdr_manager.so                 Asterisk Manager Interface CDR Backend   0         
bridge_softmix.so              Multi-party software based channel mixin 0         
app_playtones.so               Playtones Application                    0         
chan_local.so                  Local Proxy Channel (Note: used internal 0         
format_gsm.so                  Raw GSM data                             1        
format_siren14.so              ITU G.722.1 Annex C (Siren14, licensed f 0         
func_extstate.so               Gets an extension's state in the dialpla 1         
func_callerid.so               Party ID related dialplan functions (Cal 0         
app_originate.so               Originate call                           1         
app_softhangup.so              Hangs up the requested channel           0         
format_jpeg.so                 jpeg (joint picture experts group) image 0         
func_audiohookinherit.so       Audiohook inheritance function           0         
format_wav_gsm.so              Microsoft WAV format (Proprietary GSM)   0         
func_config.so                 Asterisk configuration file variable acc 1         
res_timing_pthread.so          pthread Timing Interface                 0         
format_ilbc.so                 Raw iLBC data                            0         
func_realtime.so               Read/Write/Store/Destroy values from a R 0         
bridge_simple.so               Simple two channel bridging module       0         
format_g719.so                 ITU G.719                                0         
chan_agent.so                  Agent Proxy Channel                      0         
func_vmcount.so                Indicator for whether a voice mailbox ha 0         
res_adsi.so                    ADSI Resource                            0         
app_getcpeid.so                Get ADSI CPE ID                          0         
format_g723.so                 G.723.1 Simple Timestamp File Format     0         
func_version.so                Get Asterisk Version/Build Info          1         
app_dictate.so                 Virtual Dictation Machine                0         
app_macro.so                   Extension Macros                         0         
app_speech_utils.so            Dialplan Speech Applications             0         
func_pitchshift.so             Audio Effects Dialplan Functions         0         
func_blacklist.so              Look up Caller*ID name/number from black 0         
chan_bridge.so                 Bridge Interaction Channel               0         
app_while.so                   While Loops and Conditional Execution    0         
app_adsiprog.so                Asterisk ADSI Programming Application    0         
func_rand.so                   Random number dialplan function          0         
func_md5.so                    MD5 digest dialplan functions            0         
app_db.so                      Database Access Functions                0         
func_module.so                 Checks if Asterisk module is loaded in m 0         
chan_multicast_rtp.so          Multicast RTP Paging Channel             0         
cel_custom.so                  Customizable Comma Separated Values CEL  0         
codec_alaw.so                  A-law Coder/Decoder                      1         
res_clioriginate.so            Call origination and redirection from th 0         
res_realtime.so                Realtime Data Lookup/Rewrite             0         
app_minivm.so                  Mini VoiceMail (A minimal Voicemail e-ma 0         
app_sendtext.so                Send Text Applications                   0         
chan_phone.so                  Linux Telephony API Support              0         
func_srv.so                    SRV related dialplan functions           0         
format_h264.so                 Raw H.264 data                           0         
app_verbose.so                 Send verbose output                      1         
bridge_multiplexed.so          Multiplexed two channel bridging module  0         
format_pcm.so                  Raw/Sun uLaw/ALaw 8KHz (PCM,PCMA,AU), G. 0         
func_strings.so                String handling dialplan functions       0         
func_aes.so                    AES dialplan functions                   0         
codec_gsm.so                   GSM Coder/Decoder                        1         
app_channelredirect.so         Redirects a given channel to a dialplan  1         
func_global.so                 Variable dialplan functions              1         
app_ices.so                    Encode and Stream via icecast and ices   0         
cel_manager.so                 Asterisk Manager Interface CEL Backend   0         
bridge_builtin_features.so     Built in bridging features               1         
app_mp3.so                     Silly MP3 Application                    0         
format_vox.so                  Dialogic VOX (ADPCM) File Format         0         
app_saycountpl.so              Say polish counting words                0         
cdr_custom.so                  Customizable Comma Separated Values CDR  0         
app_chanspy.so                 Listen to the audio of an active channel 0         
app_dumpchan.so                Dump Info About The Calling Channel      0         
func_base64.so                 base64 encode/decode dialplan functions  0         
format_siren7.so               ITU G.722.1 (Siren7, licensed from Polyc 0         
res_phoneprov.so               HTTP Phone Provisioning                  0         
app_sayunixtime.so             Say time                                 0         
app_zapateller.so              Block Telemarketers with Special Informa 0         
func_math.so                   Mathematical dialplan function           0         
format_g726.so                 Raw G.726 (16/24/32/40kbps) data         0         
func_lock.so                   Dialplan mutexes                         0         
app_parkandannounce.so         Call Parking and Announce Application    0         
app_cdr.so                     Tell Asterisk to not maintain a CDR for  0         
res_limit.so                   Resource limits                          0         
cdr_csv.so                     Comma Separated Values CDR Backend       0         
app_disa.so                    DISA (Direct Inward System Access) Appli 0         
app_alarmreceiver.so           Alarm Receiver for Asterisk              0         
pbx_loopback.so                Loopback Switch                          0         
pbx_config.so                  Text Extension Configuration             0         
format_wav.so                  Microsoft WAV/WAV16 format (8kHz/16kHz S 0         
app_talkdetect.so              Playback with Talk Detection             0         
res_security_log.so            Security Event Logging                   0         
app_privacy.so                 Require phone number to be entered, if n 0         
codec_adpcm.so                 Adaptive Differential PCM Coder/Decoder  0         
func_dialgroup.so              Dialgroup dialplan function              0         
app_followme.so                Find-Me/Follow-Me Application            0         
app_system.so                  Generic System() application             1         
app_milliwatt.so               Digital Milliwatt (mu-law) Test Applicat 0         
func_callcompletion.so         Call Control Configuration Function      0         
func_curl.so                   Load external URL                        0         
format_sln16.so                Raw Signed Linear 16KHz Audio support (S 0         
res_curl.so                    cURL Resource Module                     0         
app_setcallerid.so             Set CallerID Presentation Application    0         
func_cdr.so                    Call Detail Record (CDR) dialplan functi 0         
app_waituntil.so               Wait until specified time                0         
app_test.so                    Interface Test Application               0         
func_uri.so                    URI encode/decode dialplan functions     0         
format_g729.so                 Raw G.729 data                           0         
app_echo.so                    Simple Echo Application                  0         
app_url.so                     Send URL Applications                    0         
codec_a_mu.so                  A-law and Mulaw direct Coder/Decoder     0         
res_mutestream.so              Mute audio stream resources              0         
func_sha1.so                   SHA-1 computation dialplan function      0         
res_clialiases.so              CLI Aliases                              0         
func_groupcount.so             Channel group dialplan functions         0         
func_channel.so                Channel information dialplan functions   0         
app_chanisavail.so             Check channel availability               0         
pbx_spool.so                   Outgoing Spool Support                   0         
cdr_syslog.so                  Customizable syslog CDR Backend          0         
res_convert.so                 File format conversion CLI command       0         
app_transfer.so                Transfers a caller to another extension  1         
app_forkcdr.so                 Fork The CDR into 2 separate entities    0         
func_devstate.so               Gets or sets a device state in the dialp 0         
app_directed_pickup.so         Directed Call Pickup Application         0         
codec_ulaw.so                  mu-Law Coder/Decoder                     0         
func_shell.so                  Collects the output generated by a comma 0         
func_iconv.so                  Charset conversions                      0         
func_enum.so                   ENUM related dialplan functions          0         
res_rtp_asterisk.so            Asterisk RTP Stack                       1         
func_logic.so                  Logical dialplan functions               0         
app_directory.so               Extension Directory                      0         
app_read.so                    Read Variable Application                0         
func_db.so                     Database (astdb) related dialplan functi 0         
chan_sip.so                    Session Initiation Protocol (SIP)        0         
codec_g722.so                  ITU G.722-64kbps G722 Transcoder         0         
pbx_realtime.so                Realtime Switch                          0         
app_playback.so                Sound File Playback Application          0         
res_smdi.so                    Simplified Message Desk Interface (SMDI) 0         
app_voicemail.so               Comedian Mail (Voicemail System)         0         
app_readexten.so               Read and evaluate extension validity     0         
app_externalivr.so             External IVR Interface Application       0         
app_authenticate.so            Authentication Application               1         
func_frame_trace.so            Frame Trace for internal ast_frame debug 0         
app_readfile.so                Stores output of file into a variable    0         
app_dial.so                    Dialing Application                      1         
res_rtp_multicast.so           Multicast RTP Engine                     0         
app_exec.so                    Executes dialplan applications           1         
codec_g726.so                  ITU G.726-32kbps G726 Transcoder         0         
app_nbscat.so                  Silly NBS Stream Application             0         
app_waitforring.so             Waits until first ring after time        0        
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: Минимальный modules.conf

Сообщение Vlad1983 »

делается просто
module unload res_speech.so
этот точно c остальными также
проверяет все работает метите его через noload
и погнали пока не останеться необходимый минимум большая часть вычистится по названиям

я обычно сразу забиваю минимум эти
noload => pbx_ael.so
noload => res_ael_share.so
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
noload => chan_skinny.so
noload => chan_unistim.so
noload => chan_mgcp.so
noload => chan_iax2.so
noload => pbx_dundi.so
noload => cdr_adaptive_odbc.so
noload => cdr_custom.so
noload => res_speech.so
noload => res_realtime.so
noload => res_timing_pthread.so
noload => res_timing_timerfd.so
noload => app_festival.so
noload => app_zapateller.so
noload => pbx_realtime.so
noload => app_ivrdemo.so
noload => app_sms.so
noload => app_morsecode.so
noload => res_stun_monitor.so
noload => res_pktccops.so
noload => app_dictate.so
noload => res_phoneprov.so
noload => res_config_ldap.so
noload => app_flite.so

вообще если еcть время покопаться в menuselect стараюсь их и не собирать
ЛС: @rostel
Ответить
© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH