RESOLVED: Can't Open ARI

tbooth

Guru
Joined
Nov 5, 2007
Messages
296
Reaction score
0
ARI does not appear to have access to the Asterisk Manager. ()
Check the ARI 'main.conf.php' configuration file to set the Asterisk Manager Account.
Check /etc/asterisk/manager.conf for a proper Asterisk Manager Account
make sure [general] enabled = yes and a 'permit=' line for localhost or the webserver.

My /etc/asterisk/manager.conf looks fine.
ANy ideas

RESOLVED, HERE IS THE SOLUTION IF THIS HAPPENS TO YOU.
IN THE ARI FILE: MAIN.CONG.PHP CHANGE ALL OF THE LINES THAT SAY LOCAL HOST TO 127.0.0.1
 

jdoiv

New Member
Joined
Dec 10, 2007
Messages
24
Reaction score
0
I'm having the same issue. I checked the /etc/asterisk/manager.conf file and enabled=yes and permit=127.0.0.1/255.255.255.0
Does the externip need to be specified? Or is this a problem in the main.conf.php?
 

tbooth

Guru
Joined
Nov 5, 2007
Messages
296
Reaction score
0
I posted the solution in the opening thread.
I worked for me, good luck.
 

jdoiv

New Member
Joined
Dec 10, 2007
Messages
24
Reaction score
0
Thanks. Where is the main.conf.php file located?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,236
Code:
sed -i 's|localhost|127\.0\.0\.1|' /var/www/html/recordings/includes/main.conf.php

See jroper notes below for better fix.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

The the ARI is installed by the FreePBX install, not by our script. I'll do some investigation, and see if it cannot be replicated.

The symptoms you describe would suggest that centos is not resolving localhost, have you changed any settings in respect of this, like hostname etc, using the IP address removes the need for resolution, but localhost should still resolve to itself.

Can you confirm that you have a line like this in /etc/hosts

127.0.0.1 pbx.local pbx localhost.localdomain localhost

Joe
 

jdoiv

New Member
Joined
Dec 10, 2007
Messages
24
Reaction score
0
Ok,
I had changed the etc/hosts file to show my FQDN in the front so email would be delivered. I thought this was what the install walk through suggested changing. I went back and put in the

127.0.0.1 pbx.local pbx localhost.localdomain localhost

and ARI works again.

I haven't tested out email delivery yet though.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
as long a you have localhost againt 127.0.0.1 in there, in addition to your modifications, it should be OK
 

tbooth

Guru
Joined
Nov 5, 2007
Messages
296
Reaction score
0
the only thing in my etc/host is:
order hosts,bind

I did set this server up with a DynDNS account.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

With a fresh install, 30 minutes ago, my hosts file looks like this

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 pbx.local pbx localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Given the problems you have been having with the ARI, I guess the advice offered in the file is valid.

Joe

 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,236
Adding an entry for your FQDN won't break anything either, and
your outbound email then will work. :)

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 yourserver.dyndns.org pbx.local pbx localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6


 

morejavi

New Member
Joined
Dec 1, 2007
Messages
4
Reaction score
0
I added localhost to my /etc/hosts file, it worked for me thanks.
 

telemach

New Member
Joined
Oct 21, 2007
Messages
36
Reaction score
0
Why when I select

Record INCOMING: Always
and then 'update'

then it doesn't change to Always, it just stays 'On-Demand'

is there way to setup recording to 'always' in conf file ?

I even tried to setup recording for a particular extension
but still nothing, it does not record

Call Recording Fixed. This update fixes inbound and outbound call recording which now works reliably. You can set your preferences for call recording when you set up each extension. The recordings are stored in /var/spool/asterisk/monitor unless you set other preferences in agents.conf.

is it something that may help me ? if yes then how to apply it ?
 

Members online

Forum statistics

Threads
25,834
Messages
167,892
Members
19,259
Latest member
dancosge
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top