Pjsip trunk receive 401 after time

I has a problem with PJSIP register.

My trunk work all day, after some time we start receive 401, but if restart asterisk or pjsip reload many times he go back work.

I have this problem in 3 different servers.

My configuration is:

[VOIP]
type=registration
auth_rejection_permanent=false
max_retries=10000000
outbound_auth=auth_VOIP
server_uri=sip:0238@XXX.XXX.XXX.XXX:5060
client_uri=sip:0238@XXX.XXX.XXX.XXX
transport = transport-udp
retry_interval=15
expiration=3600
forbidden_retry_interval=10
fatal_retry_interval=10
contact_user=VOIP
[auth_VOIP]
type=auth
password=qawsXXXXXXXXXX
username=XXXX
[VOIP]
type=aor
contact=sip:XXX.XXX.XXX.XXX
max_contacts=1
[VOIP]
type=endpoint
context=tronco
outbound_auth=auth_VOIP
aors=VOIP
from_user=XXXX
allow=g729
allow=gsm
allow=ulaw
inband_progress=yes
language=pt_BR
direct_media=no
sdp_session=TEST
subscribe_context=hint-test
t38_udptl=yes
t38_udptl_ec=redundancy
allow_subscribe=yes
[VOIP]
type=identify
endpoint=VOIP
match=XXX.XXX.XXX.XXX

You’ll need to provide console output with SIP trace (pjsip set logger on) and also clarify - are you referring to inbound or outbound calls?

Calls… Hà Hà Hà the install doesn’t work… calls cannot possibly happen before next week

@keithgrayaus Please don’t respond on threads with comments that are not helpful. In your case you are using AsteriskNOW, which is a combination of Linux + Asterisk + FreePBX. Many individuals don’t use that.