Hello,
I am trying to lock down and unload unneeded asteisk channel drivers and modules. However asterisk for some reason is opening up two ports I can’t seem to track down. Google is coming up empty and so it the community forms. I am not sure if there is a way in the asterisk console to track this this down besides unloading modules one at a time.
Ubuntu 18.04.03
Asterisk 16.6.1 (Fresh install with no configs, just make config from the install process.
–I did enable cdr_adaptic and setup ODBC+MYSQL for cdr records
These are the two ports I am trying to track down.
Port udp: 56314
Port udp6: 39794
root@Ast1:/etc/asterisk# lsof -i :39794
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 30112 asterisk 13u IPv6 1387895 0t0 UDP *:39794
root@Ast1:/etc/asterisk# lsof -i :56314
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
asterisk 30112 asterisk 12u IPv4 1387894 0t0 UDP *:56314
root@Ast1:/etc/asterisk# netstat -nl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
udp 0 0 0.0.0.0:5060 0.0.0.0:*
udp 0 0 0.0.0.0:56314 0.0.0.0:*
udp6 0 0 :::39794 :::*
raw6 0 0 :::58 :::* 7
SIP: udp port 5060
RTP Ports: 10000-20000
Thanks in advance
–sunder
Long list of modules loaded
Eric-Ast1*CLI> module show
Module Description Use Count Status Support Level
acl Named ACL system 2 Running core
-----Removed App Modules----
bridge_builtin_features.so Built in bridging features 1 Running core
bridge_builtin_interval_features.so Built in bridging interval features 0 Running core
bridge_holding.so Holding bridge module 0 Running core
bridge_native_rtp.so Native RTP bridging module 0 Running core
bridge_simple.so Simple two channel bridging module 0 Running core
bridge_softmix.so Multi-party software based channel mixin 0 Running core
ccss Call Completion Supplementary Services 4 Running core
cdr CDR Engine 12 Running core
cdr_adaptive_odbc.so Adaptive ODBC CDR backend 0 Running core
cdr_csv.so Comma Separated Values CDR Backend 0 Running extended
cdr_custom.so Customizable Comma Separated Values CDR 0 Running core
cdr_manager.so Asterisk Manager Interface CDR Backend 0 Running core
cdr_odbc.so ODBC CDR Backend 0 Running extended
cdr_pgsql.so PostgreSQL CDR Backend 0 Not Running extended
cdr_radius.so RADIUS CDR Backend 0 Not Running extended
cdr_sqlite3_custom.so SQLite3 Custom CDR Module 0 Not Running extended
cdr_tds.so FreeTDS CDR Backend 0 Not Running extended
cel CEL Engine 9 Running core
cel_custom.so Customizable Comma Separated Values CEL 0 Running core
cel_manager.so Asterisk Manager Interface CEL Backend 0 Running core
cel_odbc.so ODBC CEL backend 0 Running core
cel_pgsql.so PostgreSQL CEL Backend 0 Running extended
cel_radius.so RADIUS CEL Backend 0 Not Running extended
cel_sqlite3_custom.so SQLite3 Custom CEL Module 0 Not Running extended
cel_tds.so FreeTDS CEL Backend 0 Not Running extended
chan_bridge_media.so Bridge Media Channel Driver 0 Running core
chan_motif.so Motif Jingle Channel Driver 0 Running core
chan_oss.so OSS Console Channel Driver 0 Running deprecated
chan_phone.so Linux Telephony API Support 0 Running deprecated
chan_pjsip.so PJSIP Channel Driver 0 Running core
chan_rtp.so RTP Media Channel 0 Running core
chan_sip.so Session Initiation Protocol (SIP) 0 Running extended
codec_a_mu.so A-law and Mulaw direct Coder/Decoder 0 Running core
codec_adpcm.so Adaptive Differential PCM Coder/Decoder 0 Running core
codec_alaw.so A-law Coder/Decoder 0 Running core
codec_codec2.so Codec 2 Coder/Decoder 0 Running core
codec_g722.so ITU G.722-64kbps G722 Transcoder 0 Running core
codec_g726.so ITU G.726-32kbps G726 Transcoder 0 Running core
codec_gsm.so GSM Coder/Decoder 0 Running core
codec_ilbc.so iLBC Coder/Decoder 0 Running core
codec_lpc10.so LPC10 2.4kbps Coder/Decoder 0 Running core
codec_resample.so SLIN Resampling Codec 0 Running core
codec_speex.so Speex Coder/Decoder 1 Running core
codec_ulaw.so mu-Law Coder/Decoder 0 Running core
dnsmgr DNS Manager 3 Running core
dsp DSP 1 Running core
enum ENUM Support 2 Running core
extconfig Configuration 18 Running core
features Call Features 1 Running core
----Removed Function, Core, and format modules----
http Built-in HTTP Server 6 Running core
indications Indication Tone Handling 1 Running core
logger Logger 1 Running core
manager Asterisk Manager Interface 1 Running core
pbx_ael.so Asterisk Extension Language Compiler 0 Running extended
pbx_config.so Text Extension Configuration 0 Running core
pbx_loopback.so Loopback Switch 0 Running core
pbx_lua.so Lua PBX Switch 0 Running extended
pbx_realtime.so Realtime Switch 0 Running extended
pbx_spool.so Outgoing Spool Support 0 Running core
plc PLC 1 Running core
res_adsi.so ADSI Resource 3 Running deprecated
res_ael_share.so share-able code for AEL 1 Running extended
res_agi.so Asterisk Gateway Interface (AGI) 1 Running core
res_ari.so Asterisk RESTful Interface 10 Running core
res_ari_applications.so RESTful API module - Stasis application 0 Running core
res_ari_asterisk.so RESTful API module - Asterisk resources 0 Running core
res_ari_bridges.so RESTful API module - Bridge resources 0 Running core
res_ari_channels.so RESTful API module - Channel resources 0 Running core
res_ari_device_states.so RESTful API module - Device state resour 0 Running core
res_ari_endpoints.so RESTful API module - Endpoint resources 0 Running core
res_ari_events.so RESTful API module - WebSocket resource 0 Running core
res_ari_model.so ARI Model validators 10 Running core
res_ari_playbacks.so RESTful API module - Playback control re 0 Running core
res_ari_recordings.so RESTful API module - Recording resources 0 Running core
res_ari_sounds.so RESTful API module - Sound resources 0 Running core
res_calendar.so Asterisk Calendar integration 8 Running extended
res_calendar_caldav.so Asterisk CalDAV Calendar Integration 0 Running extended
res_calendar_ews.so Asterisk MS Exchange Web Service Calenda 0 Running extended
res_calendar_exchange.so Asterisk MS Exchange Calendar Integratio 0 Running extended
res_calendar_icalendar.so Asterisk iCalendar .ics file integration 0 Running extended
res_clialiases.so CLI Aliases 0 Running core
res_clioriginate.so Call origination and redirection from th 0 Running core
res_config_curl.so Realtime Curl configuration 0 Running core
res_config_ldap.so LDAP realtime interface 0 Running extended
res_config_odbc.so Realtime ODBC configuration 0 Running core
res_config_pgsql.so PostgreSQL RealTime Configuration Driver 0 Running extended
res_config_sqlite3.so SQLite 3 realtime config engine 0 Running core
res_convert.so File format conversion CLI command 0 Running core
res_crypto.so Cryptographic Digital Signatures 2 Running core
res_curl.so cURL Resource Module 3 Running core
res_fax.so Generic FAX Applications 1 Running core
res_fax_spandsp.so Spandsp G.711 and T.38 FAX Technologies 0 Running extended
res_format_attr_celt.so CELT Format Attribute Module 1 Running core
res_format_attr_g729.so G.729 Format Attribute Module 1 Running core
res_format_attr_h263.so H.263 Format Attribute Module 1 Running core
res_format_attr_h264.so H.264 Format Attribute Module 1 Running core
res_format_attr_ilbc.so iLBC Format Attribute Module 1 Running core
res_format_attr_opus.so Opus Format Attribute Module 1 Running core
res_format_attr_silk.so SILK Format Attribute Module 1 Running core
res_format_attr_siren14.so Siren14 Format Attribute Module 1 Running core
res_format_attr_siren7.so Siren7 Format Attribute Module 1 Running core
res_format_attr_vp8.so VP8 Format Attribute Module 1 Running core
res_http_media_cache.so HTTP Media Cache Backend 1 Running core
res_http_post.so HTTP POST support 0 Running core
res_http_websocket.so HTTP WebSocket Support 4 Running extended
res_limit.so Resource limits 0 Running core
res_manager_devicestate.so Manager Device State Topic Forwarder 0 Running core
res_manager_presencestate.so Manager Presence State Topic Forwarder 0 Running core
res_monitor.so Call Monitoring Resource 2 Running deprecated
res_musiconhold.so Music On Hold Resource 0 Running core
res_mutestream.so Mute audio stream resources 0 Running core
res_mwi_devstate.so MWI Device State Subscriptions 0 Running core
res_odbc.so ODBC resource 4 Running core
res_odbc_transaction.so ODBC transaction resource 0 Running core
res_parking.so Call Parking Resource 0 Running core
res_phoneprov.so HTTP Phone Provisioning 1 Running extended
res_pjproject.so PJPROJECT Log and Utility Support 4 Running core
res_pjsip.so Basic SIP resource 45 Running core
res_pjsip_acl.so PJSIP ACL Resource 0 Running core
res_pjsip_authenticator_digest.so PJSIP authentication resource 0 Running core
res_pjsip_caller_id.so PJSIP Caller ID Support 1 Running core
res_pjsip_config_wizard.so PJSIP Config Wizard 1 Running core
res_pjsip_dialog_info_body_generator.so PJSIP Extension State Dialog Info+XML Pr 0 Running core
res_pjsip_diversion.so PJSIP Add Diversion Header Support 1 Running core
res_pjsip_dlg_options.so SIP OPTIONS in dialog handler 0 Running core
res_pjsip_dtmf_info.so PJSIP DTMF INFO Support 0 Running core
res_pjsip_empty_info.so PJSIP Empty INFO Support 0 Running core
res_pjsip_endpoint_identifier_anonymous.so PJSIP Anonymous endpoint identifier 0 Running core
res_pjsip_endpoint_identifier_ip.so PJSIP IP endpoint identifier 0 Running core
res_pjsip_endpoint_identifier_user.so PJSIP username endpoint identifier 0 Running core
res_pjsip_exten_state.so PJSIP Extension State Notifications 0 Running core
res_pjsip_header_funcs.so PJSIP Header Functions 0 Running core
res_pjsip_history.so PJSIP History 0 Running extended
res_pjsip_logger.so PJSIP Packet Logger 0 Running core
res_pjsip_messaging.so PJSIP Messaging Support 0 Running core
res_pjsip_mwi.so PJSIP MWI resource 0 Running core
res_pjsip_mwi_body_generator.so PJSIP MWI resource 0 Running core
res_pjsip_nat.so PJSIP NAT Support 0 Running core
res_pjsip_notify.so CLI/AMI PJSIP NOTIFY Support 0 Running core
res_pjsip_one_touch_record_info.so PJSIP INFO One Touch Recording Support 0 Running core
res_pjsip_outbound_authenticator_digest.so PJSIP authentication resource 0 Running core
res_pjsip_outbound_publish.so PJSIP Outbound Publish Support 2 Running core
res_pjsip_outbound_registration.so PJSIP Outbound Registration Support 0 Running core
res_pjsip_path.so PJSIP Path Header Support 0 Running core
res_pjsip_phoneprov_provider.so PJSIP Phoneprov Provider 0 Running extended
res_pjsip_pidf_body_generator.so PJSIP Extension State PIDF Provider 0 Running core
res_pjsip_pidf_digium_body_supplement.so PJSIP PIDF Digium presence supplement 0 Running core
res_pjsip_pidf_eyebeam_body_supplement.so PJSIP PIDF Eyebeam supplement 0 Running core
res_pjsip_publish_asterisk.so PJSIP Asterisk Event PUBLISH Support 0 Running core
res_pjsip_pubsub.so PJSIP event resource 12 Running core
res_pjsip_refer.so PJSIP Blind and Attended Transfer Suppor 1 Running core
res_pjsip_registrar.so PJSIP Registrar Support 0 Running core
res_pjsip_rfc3326.so PJSIP RFC3326 Support 0 Running core
res_pjsip_sdp_rtp.so PJSIP SDP RTP/AVP stream handler 0 Running core
res_pjsip_send_to_voicemail.so PJSIP REFER Send to Voicemail Support 0 Running core
res_pjsip_session.so PJSIP Session resource 15 Running core
res_pjsip_sips_contact.so UAC SIPS Contact support 0 Running core
res_pjsip_t38.so PJSIP T.38 UDPTL Support 0 Running core
res_pjsip_transport_websocket.so PJSIP WebSocket Transport Support 0 Not Running core
res_pjsip_xpidf_body_generator.so PJSIP Extension State PIDF Provider 0 Running core
res_realtime.so Realtime Data Lookup/Rewrite 0 Running core
res_resolver_unbound.so Unbound DNS Resolver Support 1 Running core
res_rtp_asterisk.so Asterisk RTP Stack 0 Running core
res_rtp_multicast.so Multicast RTP Engine 1 Running core
res_security_log.so Security Event Logging 0 Running core
res_smdi.so Simplified Message Desk Interface (SMDI) 1 Running extended
res_snmp.so SNMP [Sub]Agent for Asterisk 0 Running extended
res_sorcery_astdb.so Sorcery Astdb Object Wizard 2 Running core
res_sorcery_config.so Sorcery Configuration File Object Wizard 16 Running core
res_sorcery_memory.so Sorcery In-Memory Object Wizard 7 Running core
res_sorcery_memory_cache.so Sorcery Memory Cache Object Wizard 0 Running core
res_sorcery_realtime.so Sorcery Realtime Object Wizard 0 Running core
res_speech.so Generic Speech Recognition API 2 Running core
res_srtp.so Secure RTP (SRTP) 0 Running core
res_stasis.so Stasis application support 17 Running core
res_stasis_answer.so Stasis application answer support 1 Running core
res_stasis_device_state.so Stasis application device state support 1 Running core
res_stasis_playback.so Stasis application playback support 3 Running core
res_stasis_recording.so Stasis application recording support 4 Running core
res_stasis_snoop.so Stasis application snoop support 1 Running core
res_statsd.so Statsd client support 2 Running extended
res_stun_monitor.so STUN Network Monitor 0 Running core
res_timing_pthread.so pthread Timing Interface 0 Running extended
res_timing_timerfd.so Timerfd Timing Interface 0 Running core
res_xmpp.so Asterisk XMPP Interface 1 Running core
sounds Sounds Index 1 Running core
udptl UDPTL 3 Running core
329 modules loaded