Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 1:11 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: New install error: Cannot connect to the asterisk manager
PostPosted: Mon Apr 16, 2012 6:25 pm 
Offline
User avatar

Joined: Mon Apr 16, 2012 6:09 pm
Posts: 22
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


Top
 Profile  
 
 Post subject: Re: New install error: Cannot connect to the asterisk manager
PostPosted: Mon Apr 16, 2012 8:46 pm 
Offline
User avatar

Joined: Mon Apr 16, 2012 6:09 pm
Posts: 22
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?


Top
 Profile  
 
 Post subject: Re: New install error: Cannot connect to the asterisk manager
PostPosted: Tue Apr 17, 2012 7:33 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group