prefixkit Ask an engineerAsk Support RU

Error reference · Asterisk

Asterisk: Failed to authenticate

Request 'REGISTER' from '<sip:101@…>' failed for '198.51.100.7:5060' - Failed to authenticate

What it means

A device (or someone) tried to register or call with a username that exists but a wrong password.

Why it happens

  • A phone or softphone with an old password.
  • Password guessing from the internet: many attempts from one IP for different extensions.
  • Auth username differs from the extension (auth section username).

How to fix it

  1. Compare the password in the phone with the type=auth section; re-provision the phone.
  2. Many attempts from foreign IPs: block them, enable fail2ban with the asterisk jail, use long random passwords.
  3. Never expose 5060 to the whole internet without a firewall allow-list.

Useful tools

SIP attack log analyzer · IP phone provisioning

Other Asterisk errors

Idea?