bar top left
bar top right
left curve
right curve
Welcome, Guest

Asterisk manager Connection Failure
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: Asterisk manager Connection Failure
#52520
Asterisk manager Connection Failure 1 Year, 9 Months ago Karma: 0
Hi. I have some problems with Elastix program. When I connect to unembedded freePBX, I found a error:

Asterisk Manager Connection Failure
Failed to connect to the Asterisk manager through port: 5038
Added 13 weeks, 4 days, 2 hours, 32 minutes ago
(retrieve_conf.FATAL)

I've read in some pages the problem could be that in manager.conf and amporta.conf I have different password, but I look it and they're the same:

In amportal.conf:
# AMPMGRUSER: the user to access the Asterisk manager interface
AMPMGRUSER=admin

# AMPMGRPASS: the password for AMPMGRUSER
# AMPMGRPASS=amp111
AMPMGRPASS=amp111


In manager.conf:
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = amp111
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

#include manager_additional. conf
#include manager_custom.conf


If anyone have the same problem or knows how I can resolve it I was very gratefully. Thanks.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
capizell
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#74705
Re:Asterisk manager Connection Failure 10 Months, 3 Weeks ago Karma: 0
hello,

even me too facing same kind of error message.

exit: 1

Checking for PEAR DB..OK
Checking for PEAR Console::Getopt..OK
Checking for /etc/amportal.conf ..OK
Bootstrapping /etc/amportal.conf ..OK
Parsing /etc/amportal.conf ..OK
Parsing /etc/asterisk/asterisk.conf ..OK
Connecting to database..OK
Connecting to Asterisk manager interface..Wed, 23 Mar 2011 14:31:10 +0530 - Failed to login.
FAILED
[FATAL] Asterisk Manager Connection Failure Failed to connect to the Asterisk manager through port: 5038
1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.

if any body found solution ...pls do let us know..

regds
wasi
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
wasi.syed
Live Like ALI (a.s) ,Die Like Hussain (a.s)
Fresh Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Gender: Male syedwasi2008 wasinawab wasinawab Location: mumbai Birthday: 12/23
Reply Quote
 
#74716
Re: Re:Asterisk manager Connection Failure 10 Months, 3 Weeks ago Karma: 118
asterisk is running?????
try ps -a -e | grep asterisk
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
fmvillares
Asterisk DCAP and Ex-Elastix Partner
Gold Boarder
Posts: 1785
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fernando (dot) villares Intelix Ingeniería fmvillares (at) hotmail.com Location: Rosario Birthday: 07/03
Reply Quote
 
#74774
Re: Asterisk manager Connection Failure 10 Months, 3 Weeks ago Karma: 0
hello,

given response on provided command.

[root@elastix /]# ps -a -e |grep asterisk
3820 ? 00:00:00 safe_asterisk
3828 ? 00:02:40 asterisk
[root@elastix /]#
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
wasi.syed
Live Like ALI (a.s) ,Die Like Hussain (a.s)
Fresh Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Gender: Male syedwasi2008 wasinawab wasinawab Location: mumbai Birthday: 12/23
Reply Quote
 
#74795
Re: Asterisk manager Connection Failure 10 Months, 3 Weeks ago Karma: 118
can you telnet to port 5038?? in localhost
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
fmvillares
Asterisk DCAP and Ex-Elastix Partner
Gold Boarder
Posts: 1785
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fernando (dot) villares Intelix Ingeniería fmvillares (at) hotmail.com Location: Rosario Birthday: 07/03
Reply Quote
 
#74871
Re:Asterisk manager Connection Failure 10 Months, 3 Weeks ago Karma: 0
telnet result...it does not work


wasisyed@wasisyed:~$ telnet 192.168.10.5 5038
Trying 192.168.10.5...
telnet: Unable to connect to remote host: Connection refused


whereas shell is working ..

asisyed@wasisyed:~$ sudo ssh root@192.168.10.5
[sudo] password for wasisyed:
root@192.168.10.5's password:
Last login: Thu Mar 24 11:34:34 2011 from 192.168.10.51

Welcome to Elastix
----------------------------------------------------

To access your Elastix System, using a separate workstation (PC/MAC/Linux)

Open the Internet Browser using the following URL:
192.168.10.5

[root@elastix ~]#


advise further...
REgsd
Wasi
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
wasi.syed
Live Like ALI (a.s) ,Die Like Hussain (a.s)
Fresh Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Gender: Male syedwasi2008 wasinawab wasinawab Location: mumbai Birthday: 12/23
Reply Quote
 
#74896
Re: Re:Asterisk manager Connection Failure 10 Months, 2 Weeks ago Karma: 118
then there is your problem.....u dont have acces to the asterisk manager interface...try search about manger.conf files and how to configure permissions
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
fmvillares
Asterisk DCAP and Ex-Elastix Partner
Gold Boarder
Posts: 1785
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fernando (dot) villares Intelix Ingeniería fmvillares (at) hotmail.com Location: Rosario Birthday: 07/03
Reply Quote
 
#74973
Re:Asterisk manager Connection Failure 10 Months, 2 Weeks ago Karma: 0
hello,
telnet 127.0.0.1 5038 able to connected

even check cli mode found something errror message on cli mode whenever disconnect calls
but does not understand meaning and solution ..

==connect attempt from '127.0.0.1' able to authenticate
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
wasi.syed
Live Like ALI (a.s) ,Die Like Hussain (a.s)
Fresh Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Gender: Male syedwasi2008 wasinawab wasinawab Location: mumbai Birthday: 12/23
Reply Quote
 
#74991
Re: Re:Asterisk manager Connection Failure 10 Months, 2 Weeks ago Karma: 118
then your problem is an auth problem between your program and managertry searching in manager.conf permits and ip validations
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
fmvillares
Asterisk DCAP and Ex-Elastix Partner
Gold Boarder
Posts: 1785
graphgraph
User Offline Click here to see the profile of this user
Gender: Male fernando (dot) villares Intelix Ingeniería fmvillares (at) hotmail.com Location: Rosario Birthday: 07/03
Reply Quote
 
#75104
Re:Asterisk manager Connection Failure 10 Months, 2 Weeks ago Karma: 0
hello,

this is my manager.conf file

AMI - Asterisk Manager interface
;
; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need
; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny).
; Also, remember to configure non-default port or IP-addresses in amportal.conf.
;
; The AMI connection is used both by the portal and the operator's panel in FreePBX.
;
; FreePBX assumes an AMI connection to localhost:5038 by default.
;
#include manager_additional.conf
#include manager_custom.conf

[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

[AMPMGRUSER]
secret = amp1234
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,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

can u pls chk and advise further troubleshoot.

regds
wasi
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
wasi.syed
Live Like ALI (a.s) ,Die Like Hussain (a.s)
Fresh Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Gender: Male syedwasi2008 wasinawab wasinawab Location: mumbai Birthday: 12/23
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: Bob, jgutierrez