PAP2 loses remote registration

Does anybody knows if this a problem with pap2 configuration or asterisk?
I have 1 remote pap2 that it registers ok, can make and receive calls but for no reason loses its registration randomly, sometimes minutes, or hours. I’ve tried using NAt=yes, qualify=yes/no, etc. Is using even a public IP but still loses registration…

any thoughts?