Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 26, 2024 8:35 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Error-Permission denied
PostPosted: Wed Oct 24, 2007 11:41 am 
Offline

Joined: Wed Oct 24, 2007 11:23 am
Posts: 9
hi all,
i'm unable to make a callback :( and get Error-Permission denied in cc_callback_spool table (field: manager_result).

a2billing-daemon-callback.log shows:

Code:
[2007-10-24 13:19:39] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 1 **
UPDATE cc_callback_spool SET status='PROCESSING' WHERE id='10'

WE ARE IN THE CHILD PROCESS
SQL =SELECT id, server_ip, manager_host, manager_username, manager_secret, las$

[2007-10-24 13:19:39]
[
[2007-10-24 13:19:39]]
::>>> IO::Socket::INET=GLOB(0x8499374)
[
[2007-10-24 13:19:39]]Response - Error - Message - Permission denied
[
[2007-10-24 13:19:39]]

## CALLBACK FAIL
UPDATE cc_callback_spool SET status='ERROR', manager_result='Error-Permission d$
[2007-10-24 13:19:39]]
UPDATE cc_server_manager SET lasttime_used=current_timestamp WHERE id ='1'[
[2007-10-24 13:19:39]]
[END SELECT]

WE ARE IN THE PARENT PROCESS -> CHILD PID = 2541 -> RECORD ID = 10

[2007-10-24 13:19:50] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 0 **


looks like some permission problem but where i suppose to look for reason?
My outbound trunk/routing works, so do my connection with Asterisk Manager. :?

any help will be appreciated...


ps
Asterisk 1.2.24 on Debian-40r1-etch
MySQL 5.0.32
A2Billing - Version 1.3.0 (stable)


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Wed Oct 24, 2007 12:55 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
tomanesq wrote:
My outbound trunk/routing works, so do my connection with Asterisk Manager.
Are you sure the callback daemon is correctly logging on to the Asterisk Manager Interface? I think if you watch the Asterisk console whilst the callback daemon tries a call you'll see it's failing to log on.
Edit the callback server in question in Admin -> Callback -> Show Server and verify the credentials listed match those in manager.conf.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 1:31 pm 
Offline

Joined: Wed Oct 24, 2007 11:23 am
Posts: 9
stavros,
i'm sure that callback deamon can login to AMI. For test i use default username/password in a2billing.conf:

Code:
;MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myasterisk
manager_secret = mycode


and in manager.conf:

Code:
[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


asterisk console shows:

Code:
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'myasterisk' logged on from 127.0.0.1
  == Manager 'myasterisk' logged off from 127.0.0.1


but no call back:( only this permission log in a2billing-daemon-callback.log :cry:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 1:48 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
tomanesq wrote:
i'm sure that callback deamon can login to AMI.
So why does a2billing-daemon-callback.log still say permission denied?

The callback daemon doesn't use the AMI credentials from a2billing.conf.
Did you:
stavros wrote:
Edit the callback server in question in Admin -> Callback -> Show Server and verify the credentials listed match those in manager.conf.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 2:23 pm 
Offline

Joined: Wed Oct 24, 2007 11:23 am
Posts: 9
Quote:
Edit the callback server in question in Admin -> Callback -> Show Server and verify the credentials listed match those in manager.conf.


yes, they match manager.conf.

Admin -> Callback -> Show Server:

SERVER GROUP default
SERVER HOSTNAME localhost
MANAGER HOST 127.0.0.1
MANAGER USERNAME myasterisk
MANAGER SECRET mycode

...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 2:48 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Reading the source and your debug log makes me realise that you are connecting to AMI successfully, it's just refusing the request that is sent.
tomanesq wrote:
Code:
[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
Try removing those extra spaces between "system" and "call".


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 24, 2007 3:33 pm 
Offline

Joined: Wed Oct 24, 2007 11:23 am
Posts: 9
Unbelievable but it works now! :D
That was those spaces... somehow I overlooked it. Syntax was ok for first look so i skipped that part :oops:

thank you stavros


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


All times are UTC


Who is online

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