Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 2:58 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Unable to connect to manager localhost:5038
PostPosted: Wed Mar 03, 2010 8:58 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
Hi friends,

I installed A2billing on my Centos and i can login to a2billing webpage. whenever i try to reload asterisk from a2billing web i am getting the below error:

Cannot connect to the asterisk manager!
Please check your manager configuration.

when i check in /etc/httpd/logs/error.log
i got the below error

[Wed Mar 03 11:27:54 2010] [error] [client 192.168.1.26] Wed, 03 Mar 2010 11:27:54 +0300 - Unable to connect to manager localhost:5038 (13): Permission denied, referer: http://192.168.1.88/a2billing/admin/Pub ... &section=1

my manager.conf is

[general]
;displaysystemname = yes
;displayconnects = yes
enabled = yes
webenabled = 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
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

the rest all are commented with ;

please help me what is wrong here... many thanks in advance.


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Wed Mar 03, 2010 4:06 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Make sure you can ping localhost and 127.0.0.1

Joe


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 8:30 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
Hi Joe,

Yes i can ping localhost ip: 127.0.0.1

[root@localhost ~]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.179 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.032 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.028 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.028 ms

And i am using this a2b as vitual machine in HyperV(windows 2008).


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 8:50 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
As you are posting in this section, I'm assuming you are using 1.3.4 or earlier - check the manager settings in a2billing.conf

In later versions, check system settings in the UI for the manager settings,

Joe


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 9:15 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
thanks for your quick reply.

i am using 1.6.0

and i followed the installation instruction from the below url:

http://www.asterisk2billing.org/cgi-bin ... lation-deb

I downloaded A2billing from the below url:

http://www.asterisk2billing.org/downloa ... 6.0.tar.gz


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 9:30 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
So you have posted in the 1.2.x section.

Therefore my second comment still applies.

check system settings in the UI for the manager settings, to see that they match with the manager.conf settings you have configured

Joe


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 9:45 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
can you please help me how to check the UI settings in a2billing for asterisk manager.config

I already pasted my manager.conf here in my first msg.

This is my complete /etc/a2billing.conf below:
================================================================
[database]
hostname = localhost
; port for postgres is 5432 by default
port = 3306
user = a2billinguser
password = a2billing
dbname = mya2billing
; dbtype setting can either be mysql or postgres
dbtype = mysql

; config for the daemon process
[daemon-info]
uid =
gid =
pidfile = /var/run/a2billing/a2b-callback-daemon.pid
;pidfile = ./a2b-callback-daemon.pid


; config for the logger
; article on http://www.red-dove.com/python_logging.html
[loggers]
keys=root,callbackLogger


[handlers]
keys=consoleHandler,FileHandler,RotatingFileHandler


[formatters]
keys=callbackFormatter


[logger_root]
;level=DEBUG
level=INFO
handlers=consoleHandler,RotatingFileHandler

[logger_root]
;level=DEBUG
level=INFO
handlers=consoleHandler,RotatingFileHandler


[logger_callbackLogger]
;level=DEBUG
level=INFO
handlers=consoleHandler,RotatingFileHandler
qualname=callbackLogger
propagate=0


[handler_consoleHandler]
class=StreamHandler
;level=DEBUG
level=INFO
formatter=callbackFormatter
args=(sys.stdout,)


[handler_FileHandler]
class=FileHandler
level=DEBUG
formatter=callbackFormatter
args=('/var/log/a2billing/a2b-callback-daemon.log', 'a')
filename=/var/log/a2billing/a2b-callback-daemon.log
mode=a


[handler_RotatingFileHandler]
;class=handlers.RotatingFileHandler
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=callbackFormatter
; TimedRotatingFileHandler
args=('/var/log/a2billing/a2b-callback-daemon.log', 'midnight', 1)


[formatter_callbackFormatter]
format="%(asctime)s - %(name)s - %(threadName)-10s - %(levelname)s - %(message)s"
datefmt=

========================================================================

I do not see any manager related configuration in a2billing.conf file.

Thanks
Samy


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 10:14 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
On the demo machine:-

http://demo.asterisk2billing.org/a2b_ad ... config.php

Global section

Joe


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Thu Mar 04, 2010 12:59 pm 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
Hello Joe,

Thanks..

I verified the settings, it is same as manager.conf in /etc/asterisk

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

after this i tried with 127.0.0.1 instead of localhost. for this also the same error.pls check the attachment.

and i think my asterisk is not listening on port 5038

i can not tellnet to this port

telnet localhost 5038
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

And netstat -a | grep 5038 is not giving any output.


Attachments:
config.jpg
config.jpg [ 63.44 KiB | Viewed 18628 times ]
Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Tue Mar 09, 2010 11:58 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
Hi Joe,

It seems there was a problem in my asterisk installation, it was not listening to port 5038.

So i re-installed asterisknow freepbx and i got the web page and i can hear the prepaid voice menus.

Thanks for you help.

but i have now new problem.. please help me,

I do not see my sip trunk settings which i created in a2b web page in sip.conf or sip_customer.conf or any other sip related config files in asterisk.


Top
 Profile  
 
 Post subject: Re: Unable to connect to manager localhost:5038
PostPosted: Tue Apr 13, 2010 10:51 am 
Offline

Joined: Wed Mar 03, 2010 8:46 am
Posts: 7
Hi Joe,

I successfully completed the A2billing installation. now almost all the cases are working fine, including web callback, all-callback, calling cards.

Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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