Port 5060 is not listen (PJSIP)

Hi there,
I am using asterisk version 22.I trying to listen SIP signalling 5060 is not connected.
somebody help me please.

root@ivr:/etc/asterisk# netstat -a -n | grep udp
udp 0 0 127.0.0.1:323 0.0.0.0:*
udp 0 0 0.0.0.0:51027 0.0.0.0:*
udp 0 0 0.0.0.0:4569 0.0.0.0:*
udp 0 0 0.0.0.0:5000 0.0.0.0:*
udp 0 0 0.0.0.0:5060 0.0.0.0:*
udp 0 0 127.0.0.54:53 0.0.0.0:*
udp 0 0 127.0.0.53:53 0.0.0.0:*
udp 0 0 10.2.0.5:68 0.0.0.0:*
udp6 0 0 ::1:323 :::*
udp6 0 0 :::48570 :sparkles:

You’re going to need to be more specific and provide more information. It shows it is listening on port 5060.

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
external_media_address=52.123.45.67 
external_signaling_address=52.123.45.67  
local_net=10.2.0.0/24  
allow_reload=yes

[softphone-user]
type=endpoint
context=default
disallow=all
allow=ulaw
auth=softphone-auth
aors=softphone-user
transport=transport-udp   ; 

[softphone-auth]
type=auth
auth_type=userpass
username=softphone1
password=yoursecurepassword

[softphone-user]
type=aor
max_contacts=1

this is my basic pjsip.conf.

root@ivr:/etc/asterisk# sudo ss -taupen | grep asterisk
udp   UNCONN 0      0                0.0.0.0:51027           0.0.0.0:*     users:(("asterisk",pid=89840,fd=7)) uid:1001 ino:287425 sk:2 cgroup:/system.slice/asterisk.service <->                        
udp   UNCONN 0      0                0.0.0.0:4569            0.0.0.0:*     users:(("asterisk",pid=89840,fd=12)) uid:1001 ino:291091 sk:3 cgroup:/system.slice/asterisk.service <->                       
udp   UNCONN 0      0                0.0.0.0:5000            0.0.0.0:*     users:(("asterisk",pid=89840,fd=14)) uid:1001 ino:291094 sk:4 cgroup:/system.slice/asterisk.service <->                       
udp   UNCONN 0      0                0.0.0.0:5060            0.0.0.0:*     users:(("asterisk",pid=89840,fd=9)) uid:1001 ino:291087 sk:5 cgroup:/system.slice/asterisk.service <->                        
udp   UNCONN 0      0                   [::]:48570              [::]:*     users:(("asterisk",pid=89840,fd=8)) uid:1001 ino:287426 sk:a cgroup:/system.slice/asterisk.service v6only:1 <->               
root@ivr:/etc/asterisk# 

I am trying to Linphone app to cloud server through the public IP is not connected.
port 5060 is also UNCONN.

What does connected mean for a UDP port?

udp port 5060 is not connected showed a status UNCONN.

I trying to connect my asterisk cloud server through linphone mobile application over the internet is not connected. I debugging asterisk 5060 port is not listening.

UDP is a connectionless protocol. I doubt that it is possible for netstat to show a UDP port as connected.

You need to define connected. Do you mean registered? If so, you need the protocol logs from Asterisk. Asterisk has bound to the port, so “pjsip set logger on” should result in it logging the REGISTER request, if it gets as far as Asterisk. If it doesn’t get logged, you need to look at the firewall on the Asterisk machine, then everything upstream.

Being registered is not something that the Linux kernel, and therefore netstat, knows about.

Note that most phones, and presumably LInphone, register as the same user as they authenticate as, so one would expect both the endpoint and the aor to have the same name, which should be the name used in the From header from the device, so I suspect both are wrong.

Humm it sounds as firewall issue…

I am checking firewall. but its not firewall issue because other port are working well
now i dont know what i do?

Run tcpdump on UDP port 5060 of asterisk network interface(s). If there
is no traffic, problem lies upstream of asterisk.

Le 25/02/2025 à 14:23, aravindh-itgalax via Asterisk Community a écrit :

[aravindh-itgalax] aravindh-itgalax
https://community.asterisk.org/u/aravindh-itgalax
February 25

I am checking firewall. but its not firewall issue because other port
are working well
now i dont know what i do?


Visit Topic
https://community.asterisk.org/t/port-5060-is-not-listen-pjsip/107120/9
or reply to this email to respond.


    In Reply To

[Rmcgrath] Rmcgrath https://community.asterisk.org/u/rmcgrath
February 25

Humm it sounds as firewall issue…

Visit Topic
https://community.asterisk.org/t/port-5060-is-not-listen-pjsip/107120/9
or reply to this email to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here
<>.


Daniel

The AOR name issue is a sufficient cause.

If so, capture packets and analyze.

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