Connecting endpoints to FreePBX and experiencing problems

hi i have a problem on my pbx i tryed to register extension only one works and the others gives me failed to authenticate i don’t why i tried to stop firewall and fail2ban and iptables but it doesnot work also after creating these extensions it makes a problem with working trunks so while the client trying to make a call to reach the pbx our pbx gives them 401 unauthorized so i deleted the extensions and the trunks works normally
utor.c: Request ‘REGISTER’ from ‘“999” sip:[email protected]’ failed for ‘178.20.188.194:50180’ (callid: YzM4NTdlMjQzMDIzMmIwMTYwODRjZmEyZGVjNzc1OWM.) - Failed to authenticate
[2025-06-22 09:56:09] VERBOSE[135797] res_pjsip_registrar.c: Added contact ‘sip:[email protected]:50180;rinstance=08d7c87b4dcfdd4f’ to AOR ‘301’ with expiration of 120 seconds
[2025-06-22 09:56:09] VERBOSE[13529] res_pjsip/pjsip_configuration.c: Endpoint 301 is now Reachable
[2025-06-22 09:56:09] VERBOSE[13529] res_pjsip/pjsip_options.c: Contact 301/sip:[email protected]:50180;rinstance=08d7c87b4dcfdd4f is now Reachable. RTT: 122.872 msec

It still could be the firewall - is it off only for a short while ? There are some automatic restarts when it does get turned off temporarily, and there’s also delayed activation of the firewall at system startup.