asterisk2billing.org
http://forum.asterisk2billing.org/

New install error: Cannot connect to the asterisk manager
http://forum.asterisk2billing.org/viewtopic.php?f=33&t=9714
Page 1 of 1

Author:  thaspius [ Mon Apr 16, 2012 6:25 pm ]
Post subject:  New install error: Cannot connect to the asterisk manager

This is a new install of Asterisk 10.1.2, A2Billing 1.9.4 (Cuprum), a fresh Centos 6.2, php 5.3, mysql 5.1

This occurs when I attempt to reload asterisk after making a change to the voip settings:
Cannot connect to the asterisk manager!
Please check your manager configuration.


Asterisk is running as root, so it isn't a permissions problem.

I've checked the a2billing UI settings:
Manager Host manager_host localhost Manager Host Address global
Manager User ID manager_username myasterisk Manger Host User Name global
Manager Password manager_secret mycode Manager Host Password global

##############################
[]# cat manager.conf
;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[myasterisk]
secret = mycode
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=172.22.1.0/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

##############################

From the PC I am on, I can telnet to port 5038 on the asterisk box and receive "Asterisk Call Manager/1.2"
From the asterisk server, it can ping its IP address, localhost, and 127.0.0.1 and I can telnet to 127.0.0.1 5038

For testing purposes, I have stopped iptables and have disabled SELinux

Author:  thaspius [ Mon Apr 16, 2012 8:46 pm ]
Post subject:  Re: New install error: Cannot connect to the asterisk manager

I do have use_realtime set to yes, so even if I cannot reload from the webui, the newly added sip peers should show up in the asterisk cli when i run "sip show peers". Right?

Author:  jroper [ Tue Apr 17, 2012 7:33 am ]
Post subject:  Re: New install error: Cannot connect to the asterisk manager

Hi

I've not played with Asterisk 10 as yet, but as long as:-

1. Your manager credentials in manager.conf match those in A2Billing.
2. A2Billing knows how to find localhost.

Sip peers in realtime do not appear in the Asterisk CLI until the endpoint is actually registered.

In realtime, you don't have to reload unless you are changing (rather than adding) a VoIP entry, and you have rtcachefriends = yes

Joe

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/