Connect attempt from '127.0.0.1' unable to authenticate

Hi Guys,

I am using Elastix server and i am not receiving incoming call ,when i dial a number i can hear the ringing sound and the phone is not ringing.
i am getting the error
"Connect attempt from ‘127.0.0.1’ unable to authenticate"
Troubleshooting Measures Performed…
We checked on the asterisk log, and we are getting some error like unable to authenticate. Please find below for the exact log:

[2014-03-25 15:38:06] DEBUG[13842] dsp.c: dsp busy pattern set to 0,0
[2014-03-25 15:38:06] DEBUG[26560] chan_dahdi.c: Requested indication 3 on channel DAHDI/1-1
[2014-03-25 15:38:06] WARNING[26560] app_macro.c: No such context ‘macro-from-zaptel-1’ for macro ‘from-zaptel-1’
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] VERBOSE[26403] logger.c: == Manager ‘admin’ logged off from 54.254.160.240
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: ExecIf
[2014-03-25 15:38:06] DEBUG[26560] func_db.c: DB: DEVICE/9731847617/user not found in database.
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] func_db.c: DB: AMPUSER//cidname not found in database.
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Noop
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Macro
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] func_db.c: DB: CFU/5608 not found in database.
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] func_db.c: DB: CFB/5608 not found in database.
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Set
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] VERBOSE[26560] logger.c: recordingcheck|20140325-153806|1395742086.39: Inbound recording not enabled
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: AGI
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: Macro
[2014-03-25 15:38:06] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:06] VERBOSE[26560] logger.c: dialparties.agi: Starting New Dialparties.agi
[2014-03-25 15:38:06] VERBOSE[26563] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: [2014-03-25 15:38:06] VERBOSE[26563] logger.c: Found
[2014-03-25 15:38:06] VERBOSE[26563] logger.c: == Parsing ‘/etc/asterisk/manager_additional.conf’: [2014-03-25 15:38:06] VERBOSE[26563] logger.c: Found
[2014-03-25 15:38:06] VERBOSE[26563] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: [2014-03-25 15:38:06] VERBOSE[26563] logger.c: Found
[2014-03-25 15:38:06] VERBOSE[26563] logger.c: == Parsing ‘/etc/asterisk/users.conf’: [2014-03-25 15:38:06] VERBOSE[26563] logger.c: Found
[2014-03-25 15:38:06] NOTICE[26563] manager.c: 127.0.0.1 tried to authenticate with nonexistent user ‘’
[2014-03-25 15:38:07] VERBOSE[26563] logger.c: == Connect attempt from ‘127.0.0.1’ unable to authenticate
[2014-03-25 15:38:07] VERBOSE[26564] logger.c: == Parsing ‘/etc/asterisk/manager.conf’: [2014-03-25 15:38:07] VERBOSE[26564] logger.c: Found
[2014-03-25 15:38:07] VERBOSE[26564] logger.c: == Parsing ‘/etc/asterisk/manager_additional.conf’: [2014-03-25 15:38:07] VERBOSE[26564] logger.c: Found
[2014-03-25 15:38:07] VERBOSE[26564] logger.c: == Parsing ‘/etc/asterisk/manager_custom.conf’: [2014-03-25 15:38:07] VERBOSE[26564] logger.c: Found
[2014-03-25 15:38:07] VERBOSE[26564] logger.c: == Manager ‘admin’ logged on from 54.254.160.240
[2014-03-25 15:38:12] DEBUG[26560] res_agi.c: DAHDI/1-1 hungup
[2014-03-25 15:38:12] VERBOSE[26560] logger.c: == Spawn extension (macro-dial, s, 3) exited non-zero on ‘DAHDI/1-1’ in macro ‘dial’
[2014-03-25 15:38:12] VERBOSE[26560] logger.c: == Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘DAHDI/1-1’ in macro ‘exten-vm’
[2014-03-25 15:38:12] VERBOSE[26560] logger.c: == Spawn extension (from-did-direct, 5608, 1) exited non-zero on ‘DAHDI/1-1’
[2014-03-25 15:38:12] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:12] DEBUG[26560] app_macro.c: Executed application: Noop
[2014-03-25 15:38:12] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:12] DEBUG[26560] app_macro.c: Executed application: Noop
[2014-03-25 15:38:12] DEBUG[26560] app_macro.c: Executed application: GotoIf
[2014-03-25 15:38:12] VERBOSE[26560] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘DAHDI/1-1’ in macro ‘hangupcall’
[2014-03-25 15:38:12] VERBOSE[26560] logger.c: == Spawn extension (macro-dial, h, 1) exited non-zero on ‘DAHDI/1-1’
[2014-03-25 15:38:12] DEBUG[26560] chan_dahdi.c: Set option AUDIO MODE, value: ON(1) on DAHDI/1-1
[2014-03-25 15:38:12] DEBUG[26560] chan_dahdi.c: Not yet hungup… Calling hangup once with icause, and clearing call
[2014-03-25 15:38:12] DEBUG[26560] chan_dahdi.c: Set option AUDIO MODE, value: OFF(0) on DAHDI/1-1
System Info:
We are using XR2047 model with PRI line. We set up both incoming and outgoing call setup on XR2000.

Please Help!!!

I presume that is an AMI connect, and the only thing that should be doing AMI connects from the same machine is Elastix. Elastix is not supported here.

Otherwise, either your machine has already compromised, or someone is doing a sequence number prediction attack and your firewall doesn’t properly block sending source address 127.0.0.1 over the wire.

I suppose you could also have had a previous Asterisk GUI and not removed it properly before installing Asterisk.

Hi david,
Thanks for the reply!
Installation part are all correct! it all happened suddenly, previously all are working fine and we were able to make incoming calls.
Can you suggest me some possible solutions for this

Regards,
Roshan Issac

Call in a computer security expert.

Thanks david,
Finally we have figured it out!
:smiley:
We manually set the AGI username and password in dialparties.php

Now its Working!