Asterisk listening on random high UDP port?


I’m looking at an Asterisk 16.28 machine (don’t blame me; I’m recommending an
update) which has nothing registered to it and is not processing calls.

I see the following open listening ports:

netstat -plunt

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
udp 0 0* 1403/asterisk
udp 0 0* 1403/asterisk
udp6 0 0 :::40485 :::* 1403/asterisk

How can I find out what ports 36347 and 40485 are being used for?

A restart of Asterisk opens other ports instead - always one IPv4 and one
IPv6, but with random high numbers. What are they?



“Life is just a lot better if you feel you’re having 10 [small] wins a day
rather than a [big] win every 10 years or so.”

  • Chris Hadfield, former skiing (and ski racing) instructor

                                                Please reply to the list;
                                                      please *don't* CC me.

On Friday 22 March 2024 at 17:03:33, jcolp via Asterisk Community wrote:

Asterisk listens on ipv6 port

Hm, thanks.

Ironically enough, until this machine gets upgraded, the workaround might
therefore simply be not to load the pjsip modules, since this thing still uses
chan_sip :))

Incidentally, this is the first post I’ve created using the direct email-to-
forum interface Starting Threads Over Email and it worked fine :slight_smile:


I want to build a machine that will be proud of me.

  • Danny Hillis, creator of The Connection Machine

                                                Please reply to the list;
                                                      please *don't* CC me.