STUN/ICE troubleshoot

Hello,

I’m trying to add stun server but I got

Ignoring STUN attribute Source Address (0004), length 8
Found STUN Attribute Changed Address (0005), length 8
Ignoring STUN attribute Changed Address (0005), length 8
Found STUN Attribute Non-RFC3489 Attribute (8020), length 8
Ignoring STUN attribute Non-RFC3489 Attribute (8020), length 8
Dunno what to do with STUN message 0101 (Binding Response)
STUN Packet, msg Binding Response (0101), length: 48
Found STUN Attribute Mapped Address (0001), length 8
Ignoring STUN attribute Mapped Address (0001), length 8
Found STUN Attribute Source Address (0004), length 8
Ignoring STUN attribute Source Address (0004), length 8
Found STUN Attribute Changed Address (0005), length 8
Ignoring STUN attribute Changed Address (0005), length 8
Found STUN Attribute Non-RFC3489 Attribute (8020), length 8
Ignoring STUN attribute Non-RFC3489 Attribute (8020), length 8
Dunno what to do with STUN message 0101 (Binding Response)

However stun show status said it was ok:

Hostname                  Port  Period  Retries  Status  ExternAddr       ExternPort
stun.stunprotocol.org     3478  30      3        OK       *                        56124

here are my configs:
pjsip.conf

[6001]
type=endpoint
context=from_internal
disallow=all
allow=ulaw
auth=6001
aors=6001
rtp_symmetric=yes
direct_media=no
force_rport=yes
rewrite_contact=yes
callerid=Alice <6001>
[6001]
type=aor
max_contacts=10

res_stun_monitor.conf

[general]
stunaddr=stun.stunprotocol.org:3478
stunrefresh=30

rtp.conf

[transport-udp]
type=transport
protocol=udp    ;udp,tcp,tls,ws,wss,flow
bind=0.0.0.0:5060
allow_reload=no
tos=cs3
cos=3

[general]
rtpstart=10000
rtpend=20000
icesupport=yes
stunaddr=stun.stunprotocol.org:3478

Please give me some ideas how I could troubleshoot this. Thank you!!

What exactly are you trying to… do? Why are you configuring STUN? What are you expecting it to do?

I want to migitate NAT problems… But i realized my Asterisk is on public network so it’s not necessary. I dunno. What should I do… I’m using this for real life usecases so I need to solve this. Sometimes linphones don’t work, sometimes they do. I need to make it more stable. It’s not port range problems. I opened all ports.

If Asterisk has a public IP then the STUN settings won’t do anything. If your problem is with remote endpoints behind NAT, then you’ve configured 6001 for that scenario. If it’s not working then you’d need to explain how it’s not working.

It works but it is not stable. Sometimes when I called, the phone didn’t ring but when I tried again a bit after that, it worked

Then you’d need to provide a SIP trace, using pjsip set logger on, when calling an endpoint does not work alongside the console output. It may be that the NAT Mapping is getting closed which would show as retransmissions. Setting “qualify_frequency” on the configured AOR can help with this by sending a SIP request at a given frequency. A value of 60 would send one every minute.

after a while, the solution to my problem is setting up acl. Abusers make asterisk to drop registrations and linphones didn’t actively try to reregister. With acl, it’s much more stable now.

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