# Asterisk doesn't listen to port any port

**URL:** <https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267>\
**Category:** Asterisk SIP\
**Created:** [December 11, 2025, 3:17pm UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267 "2025-12-11T15:17:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rashadmlk](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/rashadmlk/32/9735_2.png) [@rashadmlk](https://community.asterisk.org/u/rashadmlk)\
**Post date:** [December 11, 2025, 3:17pm UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/1 "2025-12-11T15:17:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gjoseph](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/gjoseph/32/1690_2.png) [@gjoseph](https://community.asterisk.org/u/gjoseph)\
**Post date:** [December 11, 2025, 3:52pm UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/2 "2025-12-11T15:52:57Z")

</div>

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?

```auto
*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

```

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![tootai](https://avatars.discourse-cdn.com/v4/letter/t/e480ec/32.png) [@tootai](https://community.asterisk.org/u/tootai)\
**Post date:** [December 11, 2025, 4:05pm UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/3 "2025-12-11T16:05:07Z")

</div>

What’s the output of ip a|grep x.x.x.x ?

–  
Daniel

---

<div class="post-metadata">

**Author:** ![rashadmlk](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/rashadmlk/32/9735_2.png) [@rashadmlk](https://community.asterisk.org/u/rashadmlk)\
**Post date:** [December 12, 2025, 5:11am UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/4 "2025-12-12T05:11:18Z")

</div>

1. No objects found
2. Yes

4.Yes and allowed as 5060 SIP, udp SIP, tcp SIP

If no objects found, that means transport doesnt loaded successfully?

---

<div class="post-metadata">

**Author:** ![rashadmlk](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/rashadmlk/32/9735_2.png) [@rashadmlk](https://community.asterisk.org/u/rashadmlk)\
**Post date:** [December 12, 2025, 7:17am UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/5 "2025-12-12T07:17:46Z")

</div>

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](https://community.asterisk.org/t/pjsip-fails-cannot-be-reloaded/109313/22) , and this. @gjoseph

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [January 11, 2026, 7:18am UTC](https://community.asterisk.org/t/asterisk-doesnt-listen-to-port-any-port/111267/6 "2026-01-11T07:18:27Z")

</div>

Closed on January 11, 2026, 7:18am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
