I had mis-configured my trunk URI and asterisk was giving an error and admin console was saying “Cannot connect to Asterisk”. Console would not let me edit the bad uri. So I used a VNC connection to server and manually edited files carefully to fix the bad uri.
After that “asterisk -r” showed that error went away. The full log also showed that the error was fixed.
But I was still getting “Cannot connect to Asterisk” in admin console. I did “fwconsole restart” a few times.
The fill log shows:
trunk uri is now reachable (good)
Several “Failed to authenticate” (bad). See screenshot for details. I think this has to do with something wrong with my extension configuration. The 1 is likely my extension “1” and the IP (111.111.11.11 in example) is the WAN address for my linux laptop in uri mentioned in error mesages sip:[email protected]. So It seems I should delete extension 1 to resolve the problem.
What I do not understand is why I cannot reach my freepbx admin console so I can look at and fix any mistakes with extension configuration or delete the extension.
To recover, how can I remove my extension “1” which is giving the error in full log. TIA for your help.
First problem (deleting extensions) was done using mysql commands in previous post. You would need to replace ‘1’ with the extension you are trying to delete. The following resource guided this:
Second problem, the reason why GUI was not available was that I had the WAN IP for my local networkl banned by fail2ban which scans logs for certain security related errors and bans an IP which caused it.
The following resource helped identify the root cause of the ban and to unban my ip: