Help me please. I was tormented, I can’t solve the problem. There is an Astersik version 16.4. A trunk with a provider has been created. The trunk is working fine. Everything is good, there are incoming, there are outgoing. But if do not call for a while, an error appears. 401 - "[Aug 10 00:27:08] WARNING : res_pjsip_outbound_registration.c: 1000 handle_registration_response: ‘401’ fatal response received from ‘sip: sirena1.reconn.ru’ on registration attempt to 'sip: 749541xxxxx @ sirena1 .reconn.ru ‘, retrying in’ 30 'second ". It is necessary to restart the asterisk. After a reboot, if there are calls, again, everything is clear, everything is fine. But after the office closes, there are no calls at night, on morning again the problem repeats. At the command prompt, the output of the command “pjsip show registrations” shows “registered”. If try to disconnect “pjsip send unregister 749541xxxxx”, then the same error “401” pops up, if you try to connect to the command “pjsip send register 749541xxxxx”, again an error, and can’t connect in any way. 401 - Rejected. Calls do not go. Only reboot helps. After the reboot, everything is clear. I downloaded Astersik 16.5, everything is the same. On the provider side, he says that everything is fine and the problem is not from him … I think if there was a problem from him, then after the restart, everything would not work well either.
There is configuration of psjsip.conf