Koozali.org: home of the SME Server

Asterisk is down! - Cannot retrieve live values

Offline axessit

  • *****
  • 213
  • +0/-0
Asterisk is down! - Cannot retrieve live values
« on: August 23, 2011, 11:35:14 PM »
Just installed SAIL 3.1.0.128 on SME8b6 with Asterisk18. Trying to setup and configire, but get the above message when I click on the extensions tab. Asterisk is running - from CLI have done /etc/init.d/asterisk stop - start OK.

Message log shows:

Aug 24 01:24:48 pabx logger: Regenerating Asterisk
Aug 24 01:24:48 pabx logger: Regenerating Asterisk Finished
Aug 24 01:24:48 pabx logger: Reloading Asterisk
Aug 24 01:24:48 pabx php: PHP Warning:  fsockopen(): unable to connect to 127.0.0.1:5038 (Connection refused) in /opt/sark/generator/astreload.php on line 9
Aug 24 01:24:49 pabx logger: Reloading Asterisk Finished

Nothing in Asterisk log. Have rebooted etc.

Server is in server only mode - is a second SME server behind another in server-gateway - internet access all good as I downloaded and updated SAIL.

manager.conf looks OK:
Code: [Select]
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

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

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Asterisk is down! - Cannot retrieve live values
« Reply #1 on: August 25, 2011, 01:25:04 AM »
Hi there

You are getting the warning because the extensions (and trunk) panels use the asterisk manager interface and they are failing to connect. 

Is this an upgrade?  Your copy of manager.conf does not look correct.  It should be a standard Asterisk manager.conf (with lots of comments) and there should only be one include at the end,  for sark_manager.conf.  Your includes look suspiciously like they've come from a FreePBX install.

Kind Regards

S

 

Offline axessit

  • *****
  • 213
  • +0/-0
Re: Asterisk is down! - Cannot retrieve live values
« Reply #2 on: August 25, 2011, 02:33:52 AM »
It's quite possible it got corrupted as I tried to install FreePBX and ran into trouble. I downloaded the SME8b6 iso from Sail, but it was only 200MB and it errors when trying to install, so I gave up on that and went back to the standard SME8b6 install disk I had and manually installed Asterisk18. I tried to install FreePBX but that didn't work, so I then installed Sail by downloading the rpms and installing via rpm. I'll remove asterisk and re-install.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Asterisk is down! - Cannot retrieve live values
« Reply #3 on: August 26, 2011, 08:46:29 AM »
I'm not sure why your iso should only be 200MB.  The isos all look correct on the download site and all have checksum files so you can test the validity of your iso after you've downloaded it.  Were you downloading from here?

http://www.sailpbx.com/iso/SME8b6/

Kind Regards

S