Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 3:47 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Problem reloading asterisk
PostPosted: Sat Apr 03, 2010 3:17 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I have problem reloading asterisk after I include new sip user

I always get this error message

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


after I checked the manager.conf and values sets in a2billing admin UI I coudn't find any problem.
both sides match.

manager.conf
[myasterisk]
secret = mycode
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,config,call,log,verbose,command,agent,user
write = system,config,call,log,verbose,command,agent,user

a2billing user interface enclosed

Please any help would be appreciated.


Attachments:
a2billing UI.jpg
a2billing UI.jpg [ 25.48 KiB | Viewed 8615 times ]
Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sat Apr 03, 2010 7:35 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

My settings look like this, and work:-

Code:
; user added for a2billing
[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,originate
write = system,call,log,verbose,command,agent,user,originate


Picture attached.
Attachment:
manager.png
manager.png [ 5.67 KiB | Viewed 8525 times ]

Version 1.6.2

Joe


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 3:21 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Thanks for your reply Joe,

unffortunately I still didn't find out what is wrong.
when I edit using config editor from Admin UI I also get a permission error

User: myasterisk does not have access to this feature.
Write failed!


I double checked the configuration and everything seems to be fine


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 8:28 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Check you can ping "localhost"

Joe


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 2:10 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Yes Joe I can ping localhost

Still trying to figure it out what is wrong

the weird part is that I can log in astman as myasterisk:mycode

I thought it could be wrong version of php but it seems ok

[root@localhost ~]# rpm -qa | grep php
php-5.2.11-jason.1
php-gd-5.2.11-jason.1
php-cli-5.2.11-jason.1
php-ldap-5.2.11-jason.1
php-pdo-5.2.11-jason.1
php-mcrypt-5.2.11-jason.1
php-mysql-5.2.11-jason.1
php-mbstring-5.2.11-jason.1
php-jpgraph-1.19-1.2.el5.rf
php-common-5.2.11-jason.1
php-pgsql-5.2.11-jason.1


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 2:19 pm 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
renatofb,

Clearly permission problem, check amportal.conf

Code:
# AUTHTYPE: authentication type to use for web admin
# If type set to 'database', the primary AMP admin credentials will be the AMPDBUSER/AMPDBPASS above
# valid: none, database
AUTHTYPE=none


don't set AUTHTYPE=database, won't work let me know if this works.

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 3:58 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
thanks for your reply Eamonn

I agree with you it is defenatly a permission problem but I followed every documented step.

I have no such file, I am using plane asterisk 1.6.2 (neither asterisknow nor freepbx) and amportal was not created with installation.

I would like to avoid install freepbx

Do you believe that could be the problem?

Any advise?
Thanks in advance.
Regards
Renato


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 4:49 pm 
Offline

Joined: Mon Jan 08, 2007 6:56 pm
Posts: 345
Code:
when I edit using config editor from Admin UI I also get a permission error

User: myasterisk does not have access to this feature.
Write failed!


Check the ownership on files in /etc/asterisk/ , they should be owned and writable by the user apache is running as. This is needed by a2b/freepbx.

change ownership and group:

1. chown -rH apacheuser:apacheuser /etc/asterisk

There are also some other thing to check for the other problem:

1. verify asterisk manager is running on port 5038
2. check firewall is allowing port locally
3. check that mysql user "myasterisk" has all database privileges to a2b database
4. check that mysql user "myasterisk" has host localhost and/or 127.0.0.1


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 7:02 pm 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Renato,

what is your manager.conf permission, set this to 777 owned by asterisk. hope helps.

Rgds
Eamonn

http://www.eatelco.com


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Sun Apr 04, 2010 10:53 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
Hi Eamonn I already checked all permissions and changed every user running process to asterisk and the points you suggested. Also manager.conf is 777 owned by asterisk

this is really strange I can't find what is wrong, this should be something quite simple right?


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Mon Apr 05, 2010 11:52 am 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Post results of:

asterisk -rx "manager show users"

-Bruce


Top
 Profile  
 
 Post subject: Re: Problem reloading asterisk
PostPosted: Tue Apr 06, 2010 2:32 am 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I would like to thank you all for your tips.

I reinstalled everything from scratch adding the suggestions you guys gave me.

In resume I believe it was really a permission problem.

once more thank you very much

Regards,
Renato.


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


All times are UTC


Who is online

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