Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 12:00 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Error-Permission denied
PostPosted: Fri Jul 29, 2011 5:20 pm 
Offline

Joined: Tue Jul 05, 2011 5:18 pm
Posts: 16
Hello
I am unable to make a callback and get Error-Permission denied in cc_callback_spool table (field: manager_result).

a2billing-daemon-callback.log shows:
Code:
[2011-07-29 20:14:38] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 1 **
UPDATE cc_callback_spool SET status='PROCESSING' WHERE id='9'

WE ARE IN THE CHILD PROCESS
SQL =SELECT id, server_ip, manager_host, manager_username, manager_secret, lasttime_used FROM cc_server_manager WHERE id_group='1' ORDER BY lasttime_used ASC LIMIT 1 OFFSET 0

[2011-07-29 20:14:38]
[
[2011-07-29 20:14:38]]
::>>> IO::Socket::INET=GLOB(0x8a3bc30)
[
[2011-07-29 20:14:38]]Response - Error - Message - Permission denied
[
[2011-07-29 20:14:38]]

## CALLBACK FAIL
UPDATE cc_callback_spool SET status='ERROR', manager_result='Error-Permission denied', num_attempt='1', last_attempt_time=now(), id_server='1' WHERE id='9'[
[2011-07-29 20:14:38]]
UPDATE cc_server_manager SET lasttime_used=current_timestamp WHERE id ='1'[
[2011-07-29 20:14:38]]
[END SELECT]

[2011-07-29 20:14:39] : TRY TO FIND PENDING CALLBACK
** Number of PENDING callbacks 0 **

WE ARE IN THE PARENT PROCESS -> CHILD PID = 4841 -> RECORD ID = 9


There is a permission problem that i can't figure out.

your help will be appreciated.

Best regards
Dayib


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sat Jul 30, 2011 7:55 am 
Offline

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

Do your asterisk manager settings look like this:-

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


And do the manager username, password and server match in your A2Billing system / callback settings

Joe


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sat Jul 30, 2011 12:51 pm 
Offline

Joined: Tue Jul 05, 2011 5:18 pm
Posts: 16
Hi Joe,

Thanks , that helped me 100 times.
I am facing a new problem, which is error-originate failed
when the callback daemond service is trying to call me back , it shows on the CLI screen
Code:
[Jul 30 15:44:47] ERROR[3014]: utils.c:1068 ast_careful_fwrite: fwrite() returned error: Broken pipe
  == Manager 'myasterisk' logged off from 127.0.0.1

here is the a2billing-daemon callback log

Code:
WE ARE IN THE CHILD PROCESS
SQL =SELECT id, server_ip, manager_host, manager_username, manager_secret, lasttime_used FROM cc_server_manager WHERE id_group='1' ORDER BY lasttime_used ASC LIMIT 1 OFFSET 0

[2011-07-30 15:42:15]
[
[2011-07-30 15:42:15]]
::>>> IO::Socket::INET=GLOB(0x9da5560)
[
[2011-07-30 15:42:36]]Response - Error - Message - Originate failed
[
[2011-07-30 15:42:36]]

## CALLBACK FAIL
UPDATE cc_callback_spool SET status='ERROR', manager_result='Error-Originate failed', num_attempt='1', last_attempt_time=now(), id_server='1' WHERE id='37'[
[2011-07-30 15:42:36]]
UPDATE cc_server_manager SET lasttime_used=current_timestamp WHERE id ='1'[
[2011-07-30 15:42:36]]
[END SELECT]


pls help me
Best regards,


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sat Jul 30, 2011 4:09 pm 
Offline

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

If you turn up the verbosity of a2billing in the agi-conf, does that help?

Joe


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sat Jul 30, 2011 7:02 pm 
Offline

Joined: Tue Jul 05, 2011 5:18 pm
Posts: 16
Hi joe,

Even making verbose to 15 there is no more information about the error in agi-log,asterisk-CLI and a2billing-callback-damon log.

I will highly apperciate for help.

Best regards,
Dayib


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sun Jul 31, 2011 6:18 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
The agi-conf verbose'ness only goes from 0 to 4, set it to 4, and check again, meanwhile set the asterisk verboseness to something high with core set verbose 99. Also tail the full log for clues.

As long as your asterisk manager has permissions to originate the call, a context for the a-leg and the there is a rate for the a-leg, it will work.

Joe


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Sun Jul 31, 2011 12:49 pm 
Offline

Joined: Tue Jul 05, 2011 5:18 pm
Posts: 16
Hi Joe,

Now the callback-daemon is calling back me , but when I answer the call it is hunging up and shows the asterisk CLI as bellow
Code:
  == Manager 'myasterisk' logged on from 127.0.0.1
[Jul 31 15:45:34] WARNING[2520]: chan_dahdi.c:2005 dahdi_enable_ec: Unable to enable echo cancellation on channel 2 (No such device)
    -- Hungup 'DAHDI/2-1'
  == Manager 'myasterisk' logged off from 127.0.0.1


How do I set the verbose of the agi-conf to 4?

Thanks in advance.
Regards,
Dayib


Top
 Profile  
 
 Post subject: Re: Error-Permission denied
PostPosted: Mon Aug 01, 2011 6:04 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Read the contents of the agi-conf, it will become clear.


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


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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group