Listing ss or netstat doesn’t show asterisk on list
sudo nmap -v -sU X.X.X.X -p 5060
PORT STATE SERVICE
5060/udp closed sip
sudo ss -tulnp | grep asterisk
udp UNCONN 0 0 0.0.0.0:4520 0.0.0.0:* users:((“asterisk”,pid=235576,fd=18))
udp UNCONN 0 0 0.0.0.0:4569 0.0.0.0:* users:((“asterisk”,pid=236351,fd=16))
udp UNCONN 0 0 0.0.0.0:4569 0.0.0.0:* users:((“asterisk”,pid=235576,fd=16))
udp UNCONN 0 0 0.0.0.0:58226 0.0.0.0:* users:((“asterisk”,pid=235576,fd=8))
udp UNCONN 0 0 0.0.0.0:5000 0.0.0.0:* users:((“asterisk”,pid=236351,fd=19))
udp UNCONN 0 0 0.0.0.0:5000 0.0.0.0:* users:((“asterisk”,pid=235576,fd=23))
udp UNCONN 0 0 0.0.0.0:56450 0.0.0.0:* users:((“asterisk”,pid=236351,fd=8))
udp UNCONN 0 0 [::]:47586 [::]:* users:((“asterisk”,pid=235576,fd=9))
udp UNCONN 0 0 [::]:39875 [::]:* users:((“asterisk”,pid=236351,fd=9))
The asterisk CLI, doesn’t show any message but tcpdump shows incoming packets fully.
[transport-udp]
type=transport
protocol=udp
bind=X.X.X.X:5060
local_net=192.0.2.0/24
local_net=127.0.0.1/32
external_media_address=X.X.X.X
external_signaling_address=X.X.X.X
allow_reload=yes
[6002]
type=endpoint
transport=transport-udp
context=from-internal
disallow=all
allow=ulaw
auth=6002
aors=6002
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes
[6002]
type=auth
auth_type=userpass
password=6002
username=6002
[6002]
type=aor
max_contacts=2
gjoseph
December 11, 2025, 3:52pm
2
Works for me.
What does pjsip show transports show?
Are you running nmap on the same machine?
If not, from a machine on the same network?
Are there firewalls involved?
*CLI> pjsip show transports
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress....................>
==========================================================================================
Transport: ipv4 udp 3 96 192.168.147.245:5060
Transport: ipv4-local udp 3 96 127.0.0.1:5060
Transport: ipv4-tls tls 3 96 0.0.0.0:5061
Transport: ws ws 0 0 0.0.0.0:5060
Transport: wss wss 0 0 0.0.0.0:5060
Objects found: 5
sudo ss -tulnp | grep asterisk
udp UNCONN 0 0 127.0.0.1:5060 0.0.0.0:* users:(("asterisk",pid=3234545,fd=16))
udp UNCONN 0 0 192.168.147.245:5060 0.0.0.0:* users:(("asterisk",pid=3234545,fd=15))
udp UNCONN 0 0 0.0.0.0:48130 0.0.0.0:* users:(("asterisk",pid=3234545,fd=13))
udp UNCONN 0 0 [::]:43197 [::]:* users:(("asterisk",pid=3234545,fd=14))
tcp LISTEN 0 5 0.0.0.0:5061 0.0.0.0:* users:(("asterisk",pid=3234545,fd=17))
tcp LISTEN 0 10 0.0.0.0:8088 0.0.0.0:* users:(("asterisk",pid=3234545,fd=8))
tcp LISTEN 0 10 0.0.0.0:8089 0.0.0.0:* users:(("asterisk",pid=3234545,fd=10))
tcp LISTEN 0 10 127.0.0.1:5038 0.0.0.0:* users:(("asterisk",pid=3234545,fd=11))
sudo nmap -v -sU 192.168.147.245 -p 5060
Starting Nmap 7.92 ( https://nmap.org ) at 2025-12-11 08:47 MST
Initiating Parallel DNS resolution of 1 host. at 08:47
Completed Parallel DNS resolution of 1 host. at 08:47, 0.00s elapsed
Initiating UDP Scan at 08:47
Scanning xxx.xxx.xxx (192.168.147.245) [1 port]
Completed UDP Scan at 08:47, 2.03s elapsed (1 total ports)
Nmap scan report for xxx.xxx.xxx (192.168.147.245)
Host is up.
PORT STATE SERVICE
5060/udp open|filtered sip
Read data files from: /usr/bin/../share/nmap
Nmap done: 1 IP address (1 host up) scanned in 2.12 seconds
Raw packets sent: 2 (56B) | Rcvd: 2 (56B)
tootai
December 11, 2025, 4:05pm
3
What’s the output of ip a|grep x.x.x.x ?
–
Daniel
No objects found
Yes
4.Yes and allowed as 5060 SIP, udp SIP, tcp SIP
If no objects found, that means transport doesnt loaded successfully?
I think the problem was i put encryption on file via vim. That is why it didn’t load transport. After recreating new file, asterisk started showing packets. To verify i redo same thing but now pjsip module doesn’t load entirely.
No such module ‘res_pjsip.so’
No such module ‘res_pjsip_authenticator_digest.so’
No such module ‘res_pjsip_endpoint_identifier_ip.so’
No such module ‘res_pjsip_mwi.so’
No such module ‘res_pjsip_notify.so’
No such module ‘res_pjsip_outbound_publish.so’
No such module ‘res_pjsip_publish_asterisk.so’
No such module ‘res_pjsip_outbound_registration.so’
Update: Yes , problem was file encryption. And thanks for Pjsip fails, cannot be reloaded - #22 by gjoseph , and this. @gjoseph
system
Closed
January 11, 2026, 7:18am
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.