Solution Asterisk: manager.c: 127.0.0.1 tried to authenticate with nonexistent user ‘user’

If you get this error message with your Asterisk install, it’s because you have installed some kind of remote gui web manager, such as the op-panel.

manager.c: 127.0.0.1 tried to authenticate with nonexistent user ‘user’

The reason is because ot is trying to login with “user” + “secret” as a password and you haven’t yet added it to /etc/asterisk/manager.conf

So edit like this:

vim /etc/asterisk/manager.conf

Which should only have:

;
; Asterisk Call Management support
;

; By default asterisk will listen on localhost only.
[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

; No access is allowed by default.
; To set a password, create a file in /etc/asterisk/manager.d
; use creative permission games to allow other serivces to create their own
; files
include “manager.d/*.conf”

Edit it so it looks like this with “user” added:

;
; Asterisk Call Management support
;

; By default asterisk will listen on localhost only.
[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

[user]
secret = secret
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

; No access is allowed by default.
; To set a password, create a file in /etc/asterisk/manager.d
; use creative permission games to allow other serivces to create their own
; files
include “manager.d/*.conf”

Now reload asterisk:

/etc/init.d/asterisk reload

And connect:

asterisk -r

And it should tell you that “user” has logged in successfully on 127.0.0.1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s