Interesting problem after updating Asterisk 13 to Asterisk 16

Last week I updated my Asterisk 13 to Asterisk 16
I am using Freepbx

After that update I saw that MWI on my extension 995 was not working. (it did not show any notifications and there was no notify message to this sip client when I checked with tcpdump)

Then I read on forums that MWI was not working with old chan_sip and that pjsip should be used.
I converted my extension to pjsip and changed the port from 5160 to 5060
It worked. And MWI was working fine.

But today I noticed that the extension was not registered. (“pjsip show endpoints” command showed unavailable)

Then I checked the logs and in “full” log I saw that Asterisk was showing “address already in use” for 5060 port.
I checked all log files but did not see any use of 5060 other than in pjsip configuration.
Also Freepbx GUI only shows 5060 in pjsip config, and 5160 in chan_sip config.

But the situation is:


13:50:12.049554 IP > SIP: REGISTER sip: SIP/2.0
13:50:12.049806 IP > ICMP udp port sip unreachable, length 528


[email protected]:/etc/asterisk# netstat -tulpn | grep 5060
udp 0 0* 15041/asterisk

After that, I changed the port on Freepbx GUI to 5062 for pjsip
I also changed the client config to register on Asterisk port 5062
It started working.


[email protected]:/etc/asterisk# netstat -tulpn | grep 5060
[email protected]:/etc/asterisk# netstat -tulpn | grep 5062
udp 0 0* 15240/asterisk

I can’t understand why it works with port 5062 and not with 5060

Any ideas ?
How can I troubleshoot this ?

Then I also checked my inbound trunks which were working on port 5160 previously (before update)

I saw that they were not working. (same situation, Asterisk binds to 5160 but does not work)
Then I changed chan_sip config from 5160 to 5162, and it started working.

Seems like my Asterisk is not working with default ports (although they bind) 5060 and 5160
but they work when bound to 5062 and 5162
is there a known reason for this ?

I also noticed that in my “sip_additional.conf” I have some weird extensions which I do not use.
I normally had chan_sip extensions 999 and 995 before updating to Asterisk 16.
After the update, I changed these 2 extensions to pjsip and they are fine in pjsip config files.
But I also see below extensions in files:

sip_additional.conf:callerid=Giris <99995>
sip_additional.conf:[email protected]
sip_additional.conf:callerid=WebRTC <9999995>
sip_additional.conf:[email protected]
sip_additional.conf:callerid=WebRTC <999999995>

what might be the reason for this and how can I remove them ? (should I ?)

Did you restart asterisk after changing ports?

yes of course I did.
ANd I can see that it stops listening 5060 + 5160 and starts listening 5062 + 5162

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